java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/exc/InvalidDefinitionException

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://lixuekai.blog.csdn.net/article/details/84768654

java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/exc/InvalidDefinitionException

NoClassDefFoundError: com/fasterxml/jackson/annotation/JsonMerge

Error:(27, 35) java: 无法访问com.fasterxml.jackson.core.Versioned 找不到com.fasterxml.jackson.core.Versioned的类文件

记录个报错的问题的解决方案

出现问题的原因:

由spring 4.1.4升级到5.1.3

然后这个spring的jackson就不OK了

然后怎么处理呢。

版本升级一下就好啦。2.2.3升级到2.9.5版本或者更高。

大师兄

还有就是下面的三个相关的依赖需要保持版本一致

大师兄

不需要一个个的去声明依赖,因为,他们三个之间就有相互依赖的关系,只需要声明一个,另外的会自动带上的。如下图:

大师兄

简单吧,简单就简单了,我就记录下问题。

我写完文章,给自己点个赞,不过分吧,
不过分,那我可就点啦啊。
我先点为敬,你们随意。大家随意。不要客气。。。

 

展开阅读全文

java.lang.NoClassDefFoundError: com/jspsmart/upload/SmartUploadException

06-14

小弟在用[color=#800000]Smartupload[/color]上传图片时出现了这个问题,我的上传代码是在[color=#800000]servlet层[/color]操作的,我的想法是想将图片上传到指定的文件夹,然后将路径存入数据库。希望各位大虾可以帮助小弟,小弟现在在做实训项目,所以很急,在此小弟拜求了rnrnrntype Exception reportrnrnmessagernrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexceptionrnrnjavax.servlet.ServletException: Error instantiating servlet class com.OlineBookStores.servlet.BookActionrn org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)rn org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)rn org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)rn org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)rn java.lang.Thread.run(Unknown Source)rnrnroot causernrnjava.lang.NoClassDefFoundError: com/jspsmart/upload/SmartUploadExceptionrn java.lang.Class.getDeclaredConstructors0(Native Method)rn java.lang.Class.privateGetDeclaredConstructors(Unknown Source)rn java.lang.Class.getConstructor0(Unknown Source)rn java.lang.Class.newInstance0(Unknown Source)rn java.lang.Class.newInstance(Unknown Source)rn org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)rn org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)rn org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)rn org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)rn java.lang.Thread.run(Unknown Source)rnrnnote The full stack trace of the root cause is available in the Apache Tomcat/6.0.10 logs.rnrnrn[color=#800000]我的上传代码是[/color]rnrnrn//图书封面rn rn SmartUpload su=new SmartUpload();rn final int MAXFILESIZE=100000; //上传文件大小限制rn String errMsg=null; //错误信息rn boolean err=false; //错误标志rn String fileName = "";rn String fileType ="";rnrn String url="OlineBookStores/upload/"; //应保证在根目录中有此目录的存在rn su.initialize(this.getServletConfig(),request,response);//初始化rn rn tryrn rn final String upFileType="jpg|JPG|GIF|gif|bmp|BMP"; //上传文件类型rn rn rn// String image=request.getParameter("bookImage");rn su.upload();rn int count = su.getSize();rn if(count>MAXFILESIZE)rn rn out.print (" ");rn rn rn elsern rn com.jspsmart.upload.File myFile = su.getFiles().getFile(0);rn rn if (!myFile.isMissing()) rn String myFileName=myFile.getFileName();//得到文件名 rn rn fileType=myFile.getFileExt();//得到文件扩展名rn fileType=fileType.toLowerCase(); //将扩展名转换成小写rn if (upFileType.indexOf(fileType)==-1)rn err=true;rn errMsg="文件"+myFileName+"上传失败!只允许上传以下格式的文件:"+upFileType;rn rn rn if(err==false)rn rn Calendar calendar = Calendar.getInstance();rn String filename = String.valueOf(calendar.getTimeInMillis());rn String saveurl=request.getRequestDispatcher("/")+url;rn saveurl+=filename+"."+fileType; //保存路径rn myFile.saveAs(saveurl,su.SAVE_PHYSICAL);rn// getBookInfor.setBookImages(saveurl);rn rn rnrnrn rn catch(SmartUploadException e)rn rn System.out.println(e);rnrn 论坛

江湖救急!!! java.lang.NoClassDefFoundError: com/google/common/cache/CacheLoader

12-09

十二月 09, 2017 12:16:20 下午 org.apache.catalina.core.ApplicationContext logrn严重: StandardWrapper.Throwablernjava.lang.NoClassDefFoundError: com/google/common/cache/CacheLoaderrn at java.lang.Class.getDeclaredMethods0(Native Method)rn at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)rn at java.lang.Class.getDeclaredMethods(Class.java:1975)rn at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:571)rn at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:490)rn at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:474)rn at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:241)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1057)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1030)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:762)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)rn at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:663)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:629)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:677)rn at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:548)rn at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:489)rn at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)rn at javax.servlet.GenericServlet.init(GenericServlet.java:158)rn at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1269)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1182)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1072)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5368)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5660)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561)rn at java.util.concurrent.FutureTask.run(FutureTask.java:266)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: java.lang.ClassNotFoundException: com.google.common.cache.CacheLoaderrn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1892)rn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1735)rn ... 37 morernrn十二月 09, 2017 12:16:20 下午 org.apache.catalina.core.StandardContext loadOnStartuprn严重: Servlet [springMvc] in web application [/partyshoppingtravelagency] threw load() exceptionrnjava.lang.ClassNotFoundException: com.google.common.cache.CacheLoaderrn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1892)rn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1735)rn at java.lang.Class.getDeclaredMethods0(Native Method)rn at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)rn at java.lang.Class.getDeclaredMethods(Class.java:1975)rn at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:571)rn at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:490)rn at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:474)rn at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:241)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1057)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1030)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:762)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)rn at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:663)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:629)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:677)rn at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:548)rn at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:489)rn at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)rn at javax.servlet.GenericServlet.init(GenericServlet.java:158)rn at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1269)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1182)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1072)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5368)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5660)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561)rn at java.util.concurrent.FutureTask.run(FutureTask.java:266)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn at java.lang.Thread.run(Thread.java:745)rnrn十二月 09, 2017 12:16:20 下午 org.apache.coyote.AbstractProtocol startrn信息: Starting ProtocolHandler ["http-bio-8080"]rn十二月 09, 2017 12:16:20 下午 org.apache.coyote.AbstractProtocol startrn信息: Starting ProtocolHandler ["ajp-bio-8009"]rn十二月 09, 2017 12:16:20 下午 org.apache.catalina.startup.Catalina startrn信息: Server startup in 9287 ms 论坛

java.lang.NoClassDefFoundError: com/opensymphony/xwork/config/ConfigurationExcep

10-15

缺包,我已添加了xwoke.2.2.1.1找到了.com/opensymphony/[[color=#FF0000]u]xwork2[/u]/[/color]config/ConfigurationExceptionrn总是报java.lang.NoClassDefFoundError: com/opensymphony/[color=#FF0000]xwork/[/color]config/ConfigurationException 异常rn java.lang.NoClassDefFoundError: com/opensymphony/xwork/config/ConfigurationExceptionrn at com.opensymphony.webwork.dispatcher.ServletDispatcher.init(ServletDispatcher.java:74)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4350)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4659)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)rn at org.apache.catalina.core.StandardService.start(StandardService.java:519)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:581)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rnCaused by: java.lang.ClassNotFoundException: com.opensymphony.xwork.config.ConfigurationExceptionrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn ... 27 morern 论坛

Caused by: java.lang.NoClassDefFoundError: com/opensymphony/xwork2/spring/Spring

05-30

Unable to load configuration. - bean - jar:file:/D:/SSH%e6%a1%86%e6%9e%b6%e5%8c%85/lib/struts2-spring-plugin-2.2.1.jar!/struts-plugin.xml:29:132rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:428)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4340)rn at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1105)rn at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1203)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: Unable to load configuration. - bean - jar:file:/D:/SSH%e6%a1%86%e6%9e%b6%e5%8c%85/lib/struts2-spring-plugin-2.2.1.jar!/struts-plugin.xml:29:132rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415)rn ... 16 morernCaused by: Unable to load bean: type:com.opensymphony.xwork2.ObjectFactory class:org.apache.struts2.spring.StrutsSpringObjectFactory - bean - jar:file:/D:/SSH%e6%a1%86%e6%9e%b6%e5%8c%85/lib/struts2-spring-plugin-2.2.1.jar!/struts-plugin.xml:29:132rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:232)rn at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:180)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)rn ... 18 morernCaused by: java.lang.NoClassDefFoundError: com/opensymphony/xwork2/spring/SpringObjectFactoryrn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:800)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)rn at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)rn at java.net.URLClassLoader.access$100(URLClassLoader.java:71)rn at java.net.URLClassLoader$1.run(URLClassLoader.java:361)rn at java.net.URLClassLoader$1.run(URLClassLoader.java:355)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:354)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:425)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:358)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1273)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)rn at com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:149)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:203)rn ... 21 morernCaused by: java.lang.ClassNotFoundException: com.opensymphony.xwork2.spring.SpringObjectFactoryrn at java.net.URLClassLoader$1.run(URLClassLoader.java:366)rn at java.net.URLClassLoader$1.run(URLClassLoader.java:355)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:354)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:425)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:358)rn ... 37 more 论坛

java.lang.NoClassDefFoundError: com/sun/faces/spi/InjectionPro异常

12-25

信息: Reloading context [/ZHFServer]rn2013-12-25 1:35:04 org.apache.catalina.core.StandardContext listenerStoprn严重: Exception sending context destroyed event to listener instance of class com.sun.faces.application.WebappLifecycleListenerrnjava.lang.NoClassDefFoundError: com/sun/faces/spi/InjectionProviderExceptionrn at com.sun.faces.application.WebappLifecycleListener.handleAttributeEvent(WebappLifecycleListener.java:224)rn at com.sun.faces.application.WebappLifecycleListener.contextDestroyed(WebappLifecycleListener.java:275)rn at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3882)rn at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4523)rn at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1108)rn at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1214)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)rn at java.lang.Thread.run(Thread.java:662)rnCaused by: java.lang.ClassNotFoundException: com.sun.faces.spi.InjectionProviderExceptionrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)rn ... 13 morern2013-12-25 1:35:04 org.apache.catalina.core.StandardContext listenerStoprn严重: Exception sending context destroyed event to listener instance of class com.sun.faces.config.ConfigureListenerrnjava.lang.NoClassDefFoundError: com/sun/faces/config/ConfigureListener$ServletContextAdapterrn at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:489)rn at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3882)rn at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4523)rn at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1108)rn at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1214)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)rn at java.lang.Thread.run(Thread.java:662)rnCaused by: java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener$ServletContextAdapterrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)rn ... 12 morern2013-12-25 1:35:25 org.apache.catalina.startup.HostConfig checkResources 论坛

java.lang.NoClassDefFoundError: com/ibatis/common/xml/NodeletException

10-21

严重: Context initialization failedrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in class path resource [applicationContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: com/ibatis/common/xml/NodeletExceptionrn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)rn at org.springframework.web.struts.ContextLoaderPlugIn.createWebApplicationContext(ContextLoaderPlugIn.java:354)rn at org.springframework.web.struts.ContextLoaderPlugIn.initWebApplicationContext(ContextLoaderPlugIn.java:295)rn at org.springframework.web.struts.ContextLoaderPlugIn.init(ContextLoaderPlugIn.java:225)rn at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)rn at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)rn at javax.servlet.GenericServlet.init(GenericServlet.java:211)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3880)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4141)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:910)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:873)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)rn at org.apache.catalina.core.StandardService.start(StandardService.java:450)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:680)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:540)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)rnCaused by: java.lang.NoClassDefFoundError: com/ibatis/common/xml/NodeletExceptionrn at java.lang.Class.getDeclaredConstructors0(Native Method)rn at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)rn at java.lang.Class.getConstructor0(Class.java:2640)rn at java.lang.Class.getDeclaredConstructor(Class.java:1953)rn at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:54)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877)rn ... 45 morernrnrnrn这个原本是我在MyEclipse上的项目的错误(昨天),但是我用intellij idea运行其他的项目时,也报这个;但是奇怪的是同事在他本机上运行缺什么问题都没有,很正常在网上查了,也没见说出个所以然的,请教下CSDN的各位大侠! 论坛

java.lang.NoClassDefFoundError: com/hd123/rumba/ejb/rt/AsManager

07-05

小弟在启动JBOSS的时候发现如下错误:rn望大虾们指教rnjava.lang.NoClassDefFoundError: com/hd123/rumba/ejb/rt/AsManagerrn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:620)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)rn at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)rn at java.net.URLClassLoader.access$100(URLClassLoader.java:56)rn at java.net.URLClassLoader$1.run(URLClassLoader.java:195)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:188)rn at org.jboss.mx.loading.RepositoryClassLoader.findClassLocally(RepositoryClassLoader.java:682)rn at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:662)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:306)rn at org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:200)rn at org.jboss.mx.loading.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:131)rn at org.jboss.mx.loading.LoadMgr3.nextTask(LoadMgr3.java:399)rn at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:527)rn at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:251)rn at org.jboss.ejb3.Ejb3AnnotationHandler.populateBaseInfo(Ejb3AnnotationHandler.java:293)rn at org.jboss.ejb3.Ejb3DescriptorHandler.populateBaseInfo(Ejb3DescriptorHandler.java:215)rn at org.jboss.ejb3.Ejb3AnnotationHandler.getContainers(Ejb3AnnotationHandler.java:138)rn at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:486)rn at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:442)rn at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:423)rn at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:384)rn at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:327)rn at org.jboss.ejb3.Ejb3Module.createService(Ejb3Module.java:77)rn at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)rn at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243)rn at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)rn at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)rn at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)rn at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)rn at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)rn at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)rn at $Proxy0.create(Unknown Source)rn at org.jboss.system.ServiceController.create(ServiceController.java:330)rn at org.jboss.system.ServiceController.create(ServiceController.java:273)rn at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)rn at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)rn at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)rn at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)rn at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)rn at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)rn at $Proxy33.create(Unknown Source)rn at org.jboss.ejb3.EJB3Deployer.create(EJB3Deployer.java:492)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)rn at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)rn at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)rn at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)rn at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)rn at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)rn at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)rn at org.jboss.wsf.container.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:76)rn at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.creat 论坛

没有更多推荐了,返回首页