该帖已经被评为新手帖
|
|
---|---|
作者 | 正文 |
发表时间:2008-09-14
java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException
这个没有,加上他的依赖包,试试 |
|
返回顶楼 | |
发表时间:2008-10-10
jiangzy 写道 错误信息:如下: 2008-1-21 19:40:55 org.apache.catalina.core.AprLifecycleListener init 信息: The Apache Tomcat Native library which allows optimal performance in produ ction environments was not found on the java.library.path: D:\WorkTools\JavaTool s\JDK6\jdk1.6.0_03\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS; C:\Python\;C:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D :\WorkTools\JavaTools\JDK6\jdk1.6.0_03\bin ;C:\Program Files\Perforce;D:\WorkToo ls\JavaTools\PHP5;C:\Program Files\SSH Communications Security\SSH Secure Shell 2008-1-21 19:40:55 org.apache.coyote.http11.Http11Protocol init 信息: Initializing Coyote HTTP/1.1 on http-8080 2008-1-21 19:40:55 org.apache.catalina.startup.Catalina load 信息: Initialization processed in 574 ms 2008-1-21 19:40:55 org.apache.catalina.core.StandardService start 信息: Starting service Catalina 2008-1-21 19:40:55 org.apache.catalina.core.StandardEngine start 信息: Starting Servlet Engine: Apache Tomcat/6.0.14 2008-01-21 19:40:57,820 ERROR [org.springframework.web.context.ContextLoader] - <Context initialization failed> org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Config uration problem: Failed to import bean definitions from relative location [sprin g-xml/applicationContext-DB.xml] Offending resource: class path resource [applicationContext.xml]; nested excepti on is org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [spring-xml/application Context-DB.xml]; nested exception is java.lang.NoClassDefFoundError: org/aspectj /weaver/reflect/ReflectionWorld$ReflectionWorldException at org.springframework.beans.factory.parsing.FailFastProblemReporter.err or(FailFastProblemReporter.java:68) at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderC ontext.java:85) at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderC ontext.java:76) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentRe ader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:201) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentRe ader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:147) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentRe ader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:132) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentRe ader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registe rBeanDefinitions(XmlBeanDefinitionReader.java:488) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB eanDefinitions(XmlBeanDefinitionReader.java:383) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea nDefinitions(XmlBeanDefinitionReader.java:327) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea nDefinitions(XmlBeanDefinitionReader.java:295) at org.springframework.beans.factory.support.AbstractBeanDefinitionReade r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143) at org.springframework.beans.factory.support.AbstractBeanDefinitionReade r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178) at org.springframework.beans.factory.support.AbstractBeanDefinitionReade r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) at org.springframework.web.context.support.XmlWebApplicationContext.load BeanDefinitions(XmlWebApplicationContext.java:124) at org.springframework.web.context.support.XmlWebApplicationContext.load BeanDefinitions(XmlWebApplicationContext.java:92) at org.springframework.context.support.AbstractRefreshableApplicationCon text.refreshBeanFactory(AbstractRefreshableApplicationContext.java:97) at org.springframework.context.support.AbstractApplicationContext.obtain FreshBeanFactory(AbstractApplicationContext.java:411) at org.springframework.context.support.AbstractApplicationContext.refres h(AbstractApplicationContext.java:338) at org.springframework.web.context.ContextLoader.createWebApplicationCon text(ContextLoader.java:261) at org.springframework.web.context.ContextLoader.initWebApplicationConte xt(ContextLoader.java:199) at org.springframework.web.context.ContextLoaderListener.contextInitiali zed(ContextLoaderListener.java:45) at com.common.util.LocalContextLoaderListener.contextInitialized(LocalCo ntextLoaderListener.java:30) at org.apache.catalina.core.StandardContext.listenerStart(StandardContex t.java:3830) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4 337) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase .java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77 1) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav a:920) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j ava:883) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492 ) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java :311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443 ) at org.apache.catalina.core.StandardService.start(StandardService.java:5 16) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710 ) at org.apache.catalina.startup.Catalina.start(Catalina.java:566) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Unexp ected exception parsing XML document from class path resource [spring-xml/applic ationContext-DB.xml]; nested exception is java.lang.NoClassDefFoundError: org/as pectj/weaver/reflect/ReflectionWorld$ReflectionWorldException at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB eanDefinitions(XmlBeanDefinitionReader.java:405) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea nDefinitions(XmlBeanDefinitionReader.java:327) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea nDefinitions(XmlBeanDefinitionReader.java:295) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentRe ader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:190) ... 43 more Caused by: java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/Reflection World$ReflectionWorldException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at org.springframework.aop.config.ConfigBeanDefinitionParser.class$(Conf igBeanDefinitionParser.java:209) at org.springframework.aop.config.ConfigBeanDefinitionParser.createPoint cutDefinition(ConfigBeanDefinitionParser.java:535) at org.springframework.aop.config.ConfigBeanDefinitionParser.parsePointc utProperty(ConfigBeanDefinitionParser.java:509) at org.springframework.aop.config.ConfigBeanDefinitionParser.parseAdviso r(ConfigBeanDefinitionParser.java:187) at org.springframework.aop.config.ConfigBeanDefinitionParser.parse(Confi gBeanDefinitionParser.java:146) at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(N amespaceHandlerSupport.java:69) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.pa rseCustomElement(BeanDefinitionParserDelegate.java:1246) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.pa rseCustomElement(BeanDefinitionParserDelegate.java:1236) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentRe ader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentRe ader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registe rBeanDefinitions(XmlBeanDefinitionReader.java:488) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB eanDefinitions(XmlBeanDefinitionReader.java:383) ... 46 more 2008-1-21 19:40:57 org.apache.catalina.core.StandardContext start 严重: Error listenerStart 2008-1-21 19:40:57 org.apache.catalina.core.StandardContext start 严重: Context [/xmweb] startup failed due to previous errors 2008-1-21 19:40:58 org.apache.coyote.http11.Http11Protocol start 信息: Starting Coyote HTTP/1.1 on http-8080 2008-1-21 19:40:58 org.apache.jk.common.ChannelSocket init 信息: JK: ajp13 listening on /0.0.0.0:8009 2008-1-21 19:40:58 org.apache.jk.server.JkMain start 信息: Jk running ID=0 time=0/47 config=null 2008-1-21 19:40:58 org.apache.catalina.startup.Catalina start 信息: Server startup in 3123 ms 你这个错误是少了一个包:aspectjweaver.jar 到spring2.5原包下面去找 |
|
返回顶楼 | |
发表时间:2008-10-10
终于把spring2.5 的事务配好了,记录一下
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:aop="http://www.springframework.org/schema/aop" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd"> 上面红色标记的不能少,否侧会报如下错误,俺在网上找了好久,好多人都报这样的错,但就是没人回答,而且都是 E文的,自己终于摸索出来了,哈哈。。。。。。 cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'tx:advice'. cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'aop:config'. |
|
返回顶楼 | |