Debugging with Eclipse and Tomcat - deployment issues [message #1014433] |
Mon, 25 February 2013 15:28  |
Eclipse User |
|
|
|
Hi all,
I'm trying some very basic servlet development using Eclipse Juno with WTP, m2eclipse and Tomcat 7.0, but I'm having trouble making debugging work.
What I've done so far is basically as follows, all using the Java EE perspective:
* Create a very simple Maven project called "foo" with packaging=war containing only an index.jsp welcome page
* Right click pom.xml, choose Run As Maven Build..., enter war:war as target and click run. This builds target/foo.war
* Right click project, choose Properties, Project Facets and enable the Dynamic Web Module project facet
* Create a Tomcat server from a local installation
* Right click server, select Add and Remove..., choose foo in the lefthand list and click Add>
* Right click the war file, select Debug As..., choose the default configuration for my Tomcat server
The server starts up and the console output seems fine except for a line that says
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:foo' did not find a matching property.
Now accessing localhost:8080/foo results in a 404, whereas manually copying the war file to the webapps folder and manually starting Tomcat outside of Eclipse works as expected.
Do I need to do anything else in order to identify foo.war as the artifact that should be deployed when starting debugging, or is something else misconfigured?
Best regards & thanks,
Mikkel Lauritsen
|
|
|
|
|
Re: Debugging with Eclipse and Tomcat - deployment issues [message #1014933 is a reply to message #1014904] |
Tue, 26 February 2013 16:08  |
Eclipse User |
|
|
|
Thanks! My initial expectation was that the war file would automatically be deployed since I did Debug As... on it, but I'll try poking at the Deployment Assembly settings and see if I can get things working. So far the icon for the war file has changed slightly, so I'll take that as a good sign.
And thanks for the pointer to the Tomcat FAQ. I've already been through it but AFAIR it doesn't really cover the whole "what actually gets deployed" issue - which I guess isn't surprising since that's not Tomcat specific.
Best regards,
Mikkel Lauritsen
|
|
|
Powered by
FUDForum. Page generated in 0.18135 seconds