-
Jul 26th, 2012, 02:13 PM
#1
NoSuchMethodError: org/springframework/beans/factory/annotation/InjectionMetadata
Hi,
I am getting error below in web application running on Web Sphere 7 (jdk 1.6) test server in RAD 7.5. Could you please tell me the root cause of this error? Do I have incompatible jars on my class path?
Here is the list of third parth jar files included in WEB-XML\lib of this application
04/22/2010 11:16 AM 245,780 axiom-api-1.2.8.jar
04/22/2010 11:16 AM 131,352 axiom-impl-1.2.8.jar
04/22/2010 04:36 PM 245,274 commons-lang-2.3.jar
12/18/2007 04:16 PM 367,444 log4j-1.2.14.jar
04/27/2010 01:47 PM 53,081 spring-asm-3.0.0.RELEASE.jar
04/27/2010 01:47 PM 551,967 spring-beans-3.0.0.RELEASE.jar
04/27/2010 01:47 PM 657,492 spring-context-3.0.0.RELEASE.jar
04/27/2010 01:47 PM 359,338 spring-core-3.0.0.RELEASE.jar
04/27/2010 01:47 PM 154,200 spring-expression-3.0.0.RELEASE.jar
04/27/2010 01:47 PM 68,544 spring-oxm-1.5.8.jar
04/27/2010 01:47 PM 359,154 spring-web-3.0.0.RELEASE.jar
04/27/2010 01:47 PM 386,749 spring-webmvc-3.0.0.RELEASE.jar
04/21/2010 01:09 PM 429,343 spring-ws-core-1.5.8.jar
04/21/2010 01:09 PM 22,615 spring-ws-core-tiger-1.5.8.jar
04/21/2010 01:09 PM 91,853 spring-xml-1.5.8.jar
04/22/2010 04:36 PM 148,429 wsdl4j.jar
Caused by: java.lang.NoSuchMethodError: org/springframework/beans/factory/annotation/InjectionMetadata.<init>(Ljava/lang/Class
V
at org.springframework.context.annotation.CommonAnnot ationBeanPostProcessor.findResourceMetadata(Common AnnotationBeanPostProcessor.java:318)
at org.springframework.context.annotation.CommonAnnot ationBeanPostProcessor.postProcessMergedBeanDefini tion(CommonAnnotationBeanPostProcessor.java:277)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyMergedBeanDefiniti onPostProcessors(AbstractAutowireCapableBeanFactor y.java:787)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:487)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:450)
at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 90)
at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:222)
at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:287 )
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:189)
at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:557)
at org.springframework.context.support.AbstractApplic ationContext.finishBeanFactoryInitialization(Abstr actApplicationContext.java:716)
at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:383)
at org.springframework.web.servlet.FrameworkServlet.c reateWebApplicationContext(FrameworkServlet.java:4 47)
at org.springframework.web.servlet.FrameworkServlet.i nitWebApplicationContext(FrameworkServlet.java:342 )
at org.springframework.web.servlet.FrameworkServlet.i nitServletBean(FrameworkServlet.java:308)
at org.springframework.web.servlet.HttpServletBean.in it(HttpServletBean.java:127)
at javax.servlet.GenericServlet.init(GenericServlet.j ava:241)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.ini t(ServletWrapper.java:358)
... 23 more
thanks
-
Jul 26th, 2012, 02:16 PM
#2
I meant to say I have those jars in WebContent\WEB-INF\lib
-
Jul 27th, 2012, 12:57 AM
#3
Please use [ code][/code ] tags when posting code.
Check your full classpath (i.e. your server) as you probably have some spring jars somewhere else or you are mixing spring versions (also spring-ws is an older version which might not fully work with Spring 3.0 you want the new 2.x line for that).
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules