Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Deploy Path for tomcat - wtpwebapps
Deploy Path for tomcat - wtpwebapps [message #520714] Sun, 14 March 2010 18:32 Go to next message
Eclipse UserFriend
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 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
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
Previous Topic:multiple project question
Next Topic:WSDL 2.0?
Goto Forum:
  


Current Time: Thu Apr 18 14:54:51 GMT 2024

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

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

Back to the top