Debugging with Eclipse and Tomcat - deployment issues [message #1014433] |
Mon, 25 February 2013 20:28 |
Mikkel Lauritsen Messages: 3 Registered: February 2013 |
Junior Member |
|
|
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
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02469 seconds