Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Deploy Path for tomcat - wtpwebapps
Deploy Path for tomcat - wtpwebapps [message #520714] Sun, 14 March 2010 14:32 Go to next message
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 04:46 Go to previous message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1287
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
Previous Topic:multiple project question
Next Topic:WSDL 2.0?
Goto Forum:
  


Current Time: Wed Apr 16 12:05:13 EDT 2014

Powered by FUDForum. Page generated in 0.12745 seconds