Deploy Path for tomcat - wtpwebapps [message #520714] |
Sun, 14 March 2010 18:32 |
Eclipse User |
|
|
|
Originally posted by: hodaie.in.tum.de
Hi,
when I add a new tomcat server to eclipse, the default deploy path in
server properties (when I double click on the server in servers view) is
wtpwebapps. If I drag and drop a dynamic web project on this server, it
will be deployed to [workspace tomcat base]/wtpwebapps, as expected.
However when enter the http://localhost:8080/my_proj_name in browser it
looks for my project in [workspace tomcat base]/webapps and finds
nothing. Is this the expected behavior, and if yes, what should i enter
as URL to my project?
Thanks for your help.
Zardosht.
|
|
|
Re: Deploy Path for tomcat - wtpwebapps [message #520821 is a reply to message #520714] |
Mon, 15 March 2010 08:46 |
Larry Isaacs Messages: 1354 Registered: July 2009 |
Senior Member |
|
|
Zardosht Hodaie wrote:
> Hi,
> when I add a new tomcat server to eclipse, the default deploy path in
> server properties (when I double click on the server in servers view) is
> wtpwebapps. If I drag and drop a dynamic web project on this server, it
> will be deployed to [workspace tomcat base]/wtpwebapps, as expected.
> However when enter the http://localhost:8080/my_proj_name in browser it
> looks for my project in [workspace tomcat base]/webapps and finds
> nothing. Is this the expected behavior, and if yes, what should i enter
> as URL to my project?
>
> Thanks for your help.
> Zardosht.
The <Context> that gets added to server.xml for your "my_proj_name" will
contain an absolute path for the docBase attribute, so "webapps" is
not where Tomcat will look for this project. Note that the URL you cite
will always display a 404 error unless you have added a welcome-file,
such as index.jsp, to your project. Other than that, there is isn't
enough information to speculate further about why your URL doesn't
display what you expect.
Cheers,
Larry
|
|
|
Powered by
FUDForum. Page generated in 0.03625 seconds