Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Maven Integration (M2E) » problem with maven tomcat plugin
problem with maven tomcat plugin [message #689760] Tue, 28 June 2011 09:47
Ger  is currently offline Ger
Messages: 3
Registered: June 2011
Junior Member
Hi everybody,
I have this situation:

Environment:

Eclipse
Tomcat 5.5
M2E
(I also tried with an external maven tool.)

Projects:

pom (main maven project, only used to run maven goals, does not have any code)
project-jar (module)
project-war (module)

project-jar contains java classes and jsp's.

project-war contains java classes (also servlets) and jsp's.
project-war has a dependency with project-jar.

Action:

I generate a jar file from project-jar.

When I try to generate de war file from project-war, I make an overlay with the jar file for getting all the jsp's and placing in the same path as the original jsp in project-war.

Finally, when I try to make a tomcat:run, it deploys without problems, but I can't access to the jsp's that had been overlayed to the war (404 - request resource not available).
Otherwhise, if I run the tomcat externally using the war file, I can access to all the jsp's.

I enabled the tomcat listing property to see what's in the jsp folder. If I run with maven tomcat plugin, only lists the original jsp, but if I run tomcat externally, lists all the jsp's.

This situation avoid me the possibility of debugging from eclipse, and I need the debugging tool.

Anyone else had a problem like this?
I tried to explain as better as I can, but if you need anything else to understand something, please ask.

I appreciate your time.

Thank you
Previous Topic:Tomcat error deploy in eclipse galileo maven web project
Next Topic:Correct update site?
Goto Forum:
  


Current Time: Tue Sep 23 16:43:43 GMT 2014

Powered by FUDForum. Page generated in 0.08280 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software