java - Spring BeanCreationException due to NoSuchMethodError in Property class -


i trying start server side of application, built maven; clean install succesful, tomcat7:run fails following spring error message

04:21:19,059 [localhost-startstop-1] error org.springframework.web.context.contextloader -  context initialization failed org.springframework.beans.factory.beancreationexception: error creating bean name 'properties' defined in class path resource [context.xml]:  initialization of bean failed; nested exception java.lang.nosuchmethoderror:  org.springframework.core.convert.property.<init>(ljava/lang/class;ljava/lang/reflect/method; ljava/lang/reflect/method;ljava/lang/string;)v 

the concerned bean definition in context.xml follows

<bean id="properties" class="org.springframework.beans.factory.config.propertyplaceholderconfigurer">     <property name="location" value="classpath:server.properties"/>     <property name="ignoreunresolvableplaceholders" value="true"/> </bean> 

research shows these kind of errors related incorrect jar versions on classpath. in particular application, spring version 3.2.4.release dependencies defined in maven pom.xml, , checking out api of concerned org.springframework.core.convert.property class seems constructor property(class objecttype, method readmethod, method writemethod, string name) available in version. ideas appreciated

try run java -verbose option.

it shows wich jar has been loaded class from.

looks there spring jar in bootstrap classloader of tomcat - older version of spring.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -