Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 385898

Summary: Jars omitted from classpath
Product: [Technology] M2E-WTP Reporter: benson margulies <bimargulies>
Component: CoreAssignee: Project Inbox <m2e-wtp.core-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: fbricon, manderse, snjezana.peco
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description benson margulies CLA 2012-07-24 17:51:34 EDT
Build Identifier: 20120614-1722

The pom.xml of my war project includes:

    <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-web</artifactId>
        </dependency>

(there is a dependencyManagement for the version above)

The war file built by maven contains spring-web.jar.

But, if I try to launch the webapp in tomcat with m2e-wtp, I get:

SEVERE: Error configuring application listener of class org.springframework.web.util.Log4jConfigListener
java.lang.ClassNotFoundException: org.springframework.web.util.Log4jConfigListener
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1678)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1523)
	at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:525)
	at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:507)
	at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:126)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4660)
	at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
	at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

Reproducible: Always

Steps to Reproduce:
1. make a web project with no code in it but dependencies.
2. try to launch in tomcat7
3. have a problem like the above.
Comment 1 Fred Bricon CLA 2012-07-25 07:37:04 EDT
- Can you attach a sample project reproducing this?
- What exact version of m2e-wtp are you using?
- have you tried cleaning your tomcat instance?
Comment 2 Fred Bricon CLA 2012-09-18 05:11:31 EDT
Benson, any progress on this( sample test project)? 
Have you tried diff'ing the WTP deployed war against  a CLI gen'd war?
Comment 3 benson margulies CLA 2012-09-18 18:00:36 EDT
Fred, bz never delivered your email to me requesting a test case, and I've since abandoned Eclipse altogether due to my many frustrations with m2e. Please feel free to close this if the simple repro steps don't repro.
Comment 4 Fred Bricon CLA 2013-01-15 03:53:39 EST
Closing as can't reproduce and per Benson's comment. 
Feel free to reopen if needed, along some test sample(s).