What's wrong with eclipse and tomcat? Driven me crazy! [message #1697402] |
Wed, 03 June 2015 12:34  |
Eclipse User |
|
|
|
These days, I was totally confused by Eclipse when debugging my web-app using tomcat. Here is the situation:
There are several multi-module MAVEN projects in my eclipse's workspace. To look it more friendly, I separated them into different working sets.
Simply put and for example, there are 3 working sets: A-set, B-set, C-set. A-set contains one parent project (labeled as Ap) which has four children projects(Ac1,Ac2,Ac3,Ac4). B-set contains Bp, Bc1, Bc2... and Bc2 is a web app which references the Ac2 in A-set (via maven dependency).
Now, I right click Bc2 and debug as a web-app using tomcat 7. Some interesting things happened, the Ac2 was packaged into WEB-INF/lib (named as Ac2.jar ), but only classes! Other resources of Ac2 like config files (xml) are not packaged in the jar.
I tried all the ways as I can (Clean or delete), but nothing changed. The Ac2.jar in the maven repository is complete (all files packaged in), but the Ac2.jar under the website's WEB-INF/lib always miss some files.
Any one can save me ?
My friends have already recommended me to use IntelliJ IDEA for many times! I am almost giving up.
[Updated on: Thu, 04 June 2015 09:09] by Moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03538 seconds