How does webapp deployment works? [message #157575] |
Fri, 20 January 2006 21:32 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 #157778 is a reply to message #157717] |
Tue, 24 January 2006 02:18 |
Eclipse User |
|
|
|
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.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04072 seconds