程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 更多編程語言 >> 編程綜合問答 >> app-resion報錯很奇怪,明明已經加載到累了

app-resion報錯很奇怪,明明已經加載到累了

編輯:編程綜合問答
resion報錯很奇怪,明明已經加載到累了

resin 報錯,哪位大神可以指點一二
[15-03-10 22:38:38.778] {main} java.lang.ClassNotFoundException: org.apache.commons.fileupload.FileItemFactory in EnvironmentClassLoader[web-app:production/webapp/default/ROOT]
at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1499)
at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1476)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2658)
at java.lang.Class.getDeclaredConstructors(Class.java:2007)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:234)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:994)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:967)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:299)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:295)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:665)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:658)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:606)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:672)
at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:525)
at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:466)
at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
at javax.servlet.GenericServlet.init(GenericServlet.java:70)
at com.caucho.server.dispatch.ServletConfigImpl.createServletImpl(ServletConfigImpl.java:1377)
at com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:1210)
at com.caucho.server.dispatch.ServletManager.init(ServletManager.java:232)
at com.caucho.server.webapp.WebApp.start(WebApp.java:3586)
at com.caucho.env.deploy.DeployController.startImpl(DeployController.java:688)
at com.caucho.env.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:77)
at com.caucho.env.deploy.DeployController.startOnInit(DeployController.java:538)
at com.caucho.env.deploy.DeployContainer.start(DeployContainer.java:170)
at com.caucho.server.webapp.WebAppContainer.start(WebAppContainer.java:728)
at com.caucho.server.host.Host.start(Host.java:677)
at com.caucho.env.deploy.DeployController.startImpl(DeployController.java:688)
at com.caucho.env.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:77)
at com.caucho.env.deploy.DeployController.startOnInit(DeployController.java:538)
at com.caucho.env.deploy.DeployContainer.start(DeployContainer.java:170)
at com.caucho.server.host.HostContainer.start(HostContainer.java:542)
at com.caucho.server.cluster.ServletService.start(ServletService.java:1337)
at com.caucho.server.cluster.ServletSystem.start(ServletSystem.java:72)
at com.caucho.env.service.ResinSystem.startServices(ResinSystem.java:529)
at com.caucho.env.service.ResinSystem.start(ResinSystem.java:496)
at com.caucho.server.resin.Resin.start(Resin.java:819)
at com.caucho.server.resin.Resin.initMain(Resin.java:951)
at com.caucho.server.resin.Resin.main(Resin.java:1403)

[15-03-10 22:38:38.778] {main} WebApp[production/webapp/default/ROOT] fail

最佳回答:


參考How to solve this java.lang.NoClassDefFoundError: org/apache/commons/io/output/DeferredFileOutputStream?

And indeed, Commons FileUpload has Commons IO as a dependency. You need to download and drop commons-io.jar in the /WEB-INF/lib as well.

Commons FileUpload有依賴項Commons IO,請檢查一下你是否包含了這個包,如果沒有,上面的回答中有下載鏈接,你可以下載,然後放到相應的目錄裡面。或者檢查一下配置文件裡面有沒有設置好這個依賴項。

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved