File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse Tomcat Plugin Issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse Tomcat Plugin Issue" Watch "Eclipse Tomcat Plugin Issue" New topic
Author

Eclipse Tomcat Plugin Issue

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243
    
    1

Guys,

I have a Maven artifact which is named as XYZ and when I try to add it as a web module to my Tomcat server in eclipse, it gets added and I could immediately see a Host xml entry being added to my Tomcat server.xml as below:



But in my pom.xml, I have the following defined:



I would assume that the docBase should have been MyWebApp instead of web as it is above in the server.xml. I even tried to change it manually in the server.xml, but nothing seems to work. The context that I would like to start it not simply working. Any suggestions on how to get this fixed?


SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243
    
    1

I have got one step better. I right clicked on the web project and opened properties and under Deployment Assembly, modified the source. I get to see the following error:



I got suspicious that the lib folder might be missing and my guess was correct. I checked under the Tomcat directory and I do not see the lib folder under WEB-INF. Since this is a Maven project, the lib folder would simply be empty and will be populated as a result of Maven build. But how to handle this case here? How to add the dependent libraries so that they end up in the lib folder?

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243
    
    1

I guess I found the solution. Thanks to the post here:

http://www.mkyong.com/maven/maven-dependency-libraries-not-deploy-in-eclipse-ide/

But I do not see the Java EE Dependency Modules under properties. Is this changed in Eclipse Indigo?
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243
    
    1

Finally got rid of this problem as well. Did the following:

Right click on the web project > properties > Deployment Assembly > Add > Java Build Path Entries and add all the jars that need to be added for the web project. Then clean and publish to the tomcat server and it started to recognize the project and my context starts up properly.

I use Eclipse Indigo.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Eclipse Tomcat Plugin Issue
 
Similar Threads
Tomcat lbfactor weight not working
Tomcat warnings
Upgrading tomcat; help with context container
tomcat problem
Tomcat - sessions do not expire