java - org.springframework.web.context.ConfigurableWebApplicationContext.setId(Ljava/lang/String;) and chain reaction -


i trying make web application (not coded me) run, but, upon deployment, getting following exceptions.

  1. java.lang.nosuchmethoderror: org.springframework.web.context.configurablewebapplicationcontext.setid(ljava/lang/string;)v

i have checked , validated there no version conflicts spring-blabla jars in web-inf/libs folder (i using spring version 3.2.0.m1) , dependecies in pom.xml file have following form.

    <dependency>       <groupid>org.springframework</groupid>       <artifactid>spring-web</artifactid>       <version>${org.springframework.version}</version>     </dependency> 

i have been quite desperate, so, last resort, checked chinese site , experimented following listener in *web.xml*file

<listener> <listener-class>org.springframework.web.util.introspectorcleanuplistener</listener-class> 

under existing one:

<listener>     <listener-class>org.springframework.web.context.contextloaderlistener</listener-class> </listener> 

when running application, no longer receiving previous exception, one,

context initialization failed org.springframework.beans.beaninstantiationexception: not instantiate bean class [org.springframework.web.context.support.xmlwebapplicationcontext]: constructor threw exception; nested exception java.lang.nosuchmethoderror: org.springframework.jndi.jndilocatordelegate.isdefaultjndienvironmentavailable()z

and have no idea ...

it's runtime reading spring 2.0 instead of 3.2. take @ spring 2 configurablewebapplicationcontext, doesn't have setid(string) method.

i start debugging problem checking jar/war file, see if duplicate version of spring. check web container classpath (eg: tomcat lib folder). if there's spring 2 jars in there cause confusion


Comments