首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

Error applicationContext.xml求大侠高手帮帮忙!各种求.该怎么处理

2013-09-11 
Error applicationContext.xml求大侠高手帮帮忙!!各种求...新手使用SSI框架,下午配置这个[applicationCont

Error applicationContext.xml求大侠高手帮帮忙!!各种求...
新手使用SSI框架,下午配置这个[applicationContext.xml]文件,然后发布到tomcat里面就报如下错误,使用的包是org.springframework.jdbc.datasource(3.06版)还有看见有得大侠说是Sprong和ibatis的jar包冲突,求解决办法,是以Sprong还是以ibatis的冲突的jar包为主呢????

严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [applicationContext.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0': Cannot resolve reference to bean 'allManagerMethod' while setting bean property 'pointcut'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'allManagerMethod': Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:452)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)


Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0': Cannot resolve reference to bean 'allManagerMethod' while setting bean property 'pointcut'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'allManagerMethod': Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'allManagerMethod': Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException

Caused by: java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException

2011-9-20 15:45:44 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2011-9-20 15:45:44 org.apache.catalina.core.StandardContext start
严重: Context [/Five] startup failed due to previous errors
2011-9-20 15:45:44 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
2011-9-20 15:45:44 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2011-9-20 15:45:44 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2011-9-20 15:45:44 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/31 config=null
2011-9-20 15:45:44 org.apache.catalina.startup.Catalina start
信息: Server startup in 3134 ms
2011-9-20 15:57:24 org.apache.catalina.startup.HostConfig checkResources
信息: Reloading context [/Five]
2011-9-20 15:57:24 org.apache.catalina.core.StandardContext stop
信息: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/Five] has not been started
2011-9-20 15:57:25 org.apache.catalina.core.StandardContext addApplicationListener
信息: The listener "com.sun.faces.util.ReflectionUtils$ReflectionUtilsListener" is already configured for this context. The duplicate definition has been ignored.
2011-9-20 15:57:25 org.apache.catalina.core.StandardContext addApplicationListener
信息: The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.
2011-9-20 15:57:25 org.apache.catalina.core.StandardContext addApplicationListener
信息: The listener "com.sun.faces.application.WebappLifecycleListener" is already configured for this context. The duplicate definition has been ignored.


2011-9-20 15:57:25 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
2011-9-20 15:57:26 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [applicationContext.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0': Cannot resolve reference to bean 'allManagerMethod' while setting bean property 'pointcut'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'allManagerMethod': Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0': Cannot resolve reference to bean 'allManagerMethod' while setting bean property 'pointcut'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'allManagerMethod': Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'allManagerMethod': Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException

Caused by: java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.getDeclaredConstructor(Unknown Source)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:65)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:958)
... 43 more
2011-9-20 15:57:26 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2011-9-20 15:57:26 org.apache.catalina.core.StandardContext start
严重: Context [/Five] startup failed due to previous errors
2011-9-20 15:57:26 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext

[解决办法]
org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException
没有aspectj相关的包,需要aspect-core以有aspect-weaver包
[解决办法]
jar包冲突一直觉得是个搞得头大的问题。顶下
[解决办法]
换个jar试试
[解决办法]
初略的看应该是少包
org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException
需要aspect-core以有aspect-weaver包

应该不是包冲突,mybatis没有用到aspect的包吧
[解决办法]
jar包的问题只能自己多留点神了
[解决办法]


很头疼
[解决办法]
不用为这些事头痛,在不知道是不是会冲突的情况下,稍微花点时间去看一下文档就能解决了,一般都有release note

热点排行