Skip to content
This repository has been archived by the owner on Nov 11, 2022. It is now read-only.

Spring MVC 3.2.4 compatible #7

Open
shvaber opened this issue Jan 21, 2014 · 2 comments
Open

Spring MVC 3.2.4 compatible #7

shvaber opened this issue Jan 21, 2014 · 2 comments

Comments

@shvaber
Copy link

shvaber commented Jan 21, 2014

Good day team, I'm getting an issue with this plugin.
Exception is:
ERROR org.springframework.web.context.ContextLoader - Context initialization failed
java.lang.NoSuchMethodError: org.springframework.beans.factory.xml.XmlBeanDefinitionReader.setEnvironment(Lorg/springframework/core/env/Environment;)V
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:87)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:537)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

Trying to use latest version - 0.7.1, downloaded from Maven repo
here is my config:

I commented out all configuration paramters, firstly tried with

messages application

If required, I can post pom.xml and applicationContext.xml

@amitsaluja
Copy link

Can you please, post your applicationContext.xml

@shvaber
Copy link
Author

shvaber commented Jan 22, 2014

thanks for your reply, I found an issue, I had to avoid loading Spring 3.0.5 dependencies of messagesource in pom.xml

< dependency >
< groupId>org.synyx
< artifactId>messagesource
< version>0.7.1
< exclusions>
< exclusion>
< groupId>org.springframework
< artifactId>spring-beans
</ exclusion>
< exclusion>
< groupId>org.springframework
< artifactId>spring-jdbc
</ exclusion>
< exclusion>
< groupId>org.springframework
< artifactId>spring-context-support
</ exclusion>
</ exclusions>
</ dependency>

and for now it is working. Not yet running messagesource, but my app started working back, so I can continue with implementing.
Thanks a lot!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants