Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » How does webapp deployment works?
How does webapp deployment works? [message #157575] Fri, 20 January 2006 21:32 Go to next message
Eclipse UserFriend
Originally posted by: qiaoxin6.yahoo.com

Hi,

I just tried the webtool. I deployed a JSP and Servlet webapp under
tomcat5.0.28 following the tutorial. But I do not know how the deployment
works.

1. I did not see my app is copied under ${Tomcat_dir}/webapps directory.
The docBase of the app is "/SchoolSchedule". I think I should see
${Tomcat_dir}/webapps/SchoolSchedule dir.
2. where is the context defined? I could not see schoolschedule.xml file
under Tomcat_dir/conf/catalina/localhost dir.
3.After I deployed the webapp use "Run on server" webtool, I loaded the
page "localhost:8080". It did not show the tomcat page (index.html under
ROOT dir)I had when I started tomcat from terminal. I could not load the
JSP example or servlet examples that downloaded with Tomcat.

I am not sure if I did something wrong or eclipse webtool deployment is
specific?

Thank you for advance.

Qiao
Re: How does webapp deployment works? [message #157691 is a reply to message #157575] Mon, 23 January 2006 14:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bela.mobil-serv.cluj.astral.ro

Hi.

By default wtp uses only the engine of tomcat, it does not map your
webapps directory. If you look into your eclipse workspace, you'll see a
directory called Servers and in it other directories representing the
server instances you configured in WTP. Every such directory contains
configuration files that are used by WTP to tell tomcat where is the
"current" webapps directory.

All in all, if you want to see the apps deployed to tomcats original
"webapps" dir, you should uncheck the checkbox saying "Run modules
directly from the workspace (do not modify Tomcat installation)".

Regards,
Bela.

Qiao Xin wrote:
> Hi,
>
> I just tried the webtool. I deployed a JSP and Servlet webapp under
> tomcat5.0.28 following the tutorial. But I do not know how the
> deployment works.
>
> 1. I did not see my app is copied under ${Tomcat_dir}/webapps directory.
> The docBase of the app is "/SchoolSchedule". I think I should see
> ${Tomcat_dir}/webapps/SchoolSchedule dir. 2. where is the context
> defined? I could not see schoolschedule.xml file under
> Tomcat_dir/conf/catalina/localhost dir.
> 3.After I deployed the webapp use "Run on server" webtool, I loaded the
> page "localhost:8080". It did not show the tomcat page (index.html under
> ROOT dir)I had when I started tomcat from terminal. I could not load the
> JSP example or servlet examples that downloaded with Tomcat.
>
> I am not sure if I did something wrong or eclipse webtool deployment is
> specific?
>
> Thank you for advance.
>
> Qiao
>
>
Re: How does webapp deployment works? [message #157717 is a reply to message #157691] Mon, 23 January 2006 18:57 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 4
Registered: July 2009
Junior Member
Which web.xml file has to be used ? I found one under the project's
webContent directory and an other one under the server directory ?

I tried to declare the servlet in the web.xml file of the webcontent
directory and it didn't work.
Re: How does webapp deployment works? [message #157778 is a reply to message #157717] Tue, 24 January 2006 02:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jazeltine.sbcglobal.net

rdaniel@neuf.fr (bob) wrote in news:c90002dcebc1061aed579fcd184d69cf$1
@www.eclipse.org:

> Which web.xml file has to be used ? I found one under the project's
> webContent directory and an other one under the server directory ?
>
> I tried to declare the servlet in the web.xml file of the webcontent
> directory and it didn't work.
>
>
>
>

When you use the wizard to create a new servlet, it modifies the web.xml
file that is under the WebContent/WEB-INF of the project. When you go to
"run on server" it will publish it to the tomcat instance. You should not
need to be editing the web.xml manually if you use the wizard.
Re: How does webapp deployment works? [message #158286 is a reply to message #157778] Sun, 29 January 2006 10:28 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 4
Registered: July 2009
Junior Member
that's right, when I use the "create servlet" wizzard, the web.xml file is
updated.
But I have still http 404, tomcat does not find the servlet, I will try to
find where is the problem
Re: How does webapp deployment works? [message #159088 is a reply to message #158286] Mon, 06 February 2006 00:12 Go to previous message
Max Giesbert is currently offline Max GiesbertFriend
Messages: 38
Registered: July 2009
Member
It might be possible that the files (especially web.xml) are not copied
from the workapce/yourproject to
workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp 0/webapps/yourproject/WEB-INF

try copying it by hand

cheers

max


bob wrote:
> that's right, when I use the "create servlet" wizzard, the web.xml file
> is updated.
> But I have still http 404, tomcat does not find the servlet, I will try
> to find where is the problem
>
Previous Topic:Can't add Web App Libraries
Next Topic:Exploded deployment and auto reconcile
Goto Forum:
  


Current Time: Fri Apr 26 05:33:52 GMT 2024

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

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

Back to the top