My gae + spring + maven project works perfectly. But I can't make it work using eclipse.
Seems like the spring-web dependency declared in my pom.xml is disappearing from WEB-INF/lib when I run my project using GAE from eclipse (using Google Plugin, Run As > Web Application). So without spring-web this is the exception:
Could not instantiate listener org.springframework.web.context.ContextLoaderListener
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
(Full GAE stacktrace here)
From console, running mvn clean package gae:run
, the app works like a charm and spring-web is placed under WEB-INF/lib directory as expected.
Just published my test project at BitBucket: https://bitbucket.org/jelies/gae-spring-maven
Any idea why spring-web is not being published to WEB-INF/lib when launching webapp from eclipse?
Using:
Update: spring-web dependency is being published to WEB-INF/lib when using spring version 3.1.4.RELEASE. This is not happening with any 3.2.X version.
Added a Jira issue for this problem with my configuration (Eclipse 4.2, WAS 7.0, mvn 3): https://jira.springsource.org/browse/SPR-10494
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With