| Author |
the application is not deployed on tomcat in eclipse
|
Komal Amaresh
Ranch Hand
Joined: Oct 06, 2008
Posts: 67
|
|
Hi,
I' am trying to run a servlet on eclipse-sdk 3.5.0 .the application is not displayed on tomcat manager after starting tomcat 6.0 on eclipse. I' am creating the web.xml under WEB-INF and using doGet() method to print a small sentence using printwriter.
My project name is Pro1. But after starting tomcat and the application dosen' t seem to have deployed on the server. the path http://localhost:8080/Pro1/hello displays the following error.
Http status 404 The requested resource (/Pro1/hello) is not available.
i' am running it on vista. Does vista create problems or any mistake in my configuration. I had used the sysdeo plugin in eclipse.
please help me in this regard.
Thanks in advance.
regards,
Komal
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56528
|
|
|
Moved to the IDEs forum.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
samir singha
Greenhorn
Joined: Mar 17, 2008
Posts: 23
|
|
|
Check the webapps folder of your tomcat root directory whether Pro1 is deployed or not? if deployed check the correct file structure and web.xml file. Vista do not create problem with tomcat. it's your application / deployment having problem.
|
 |
samir singha
Greenhorn
Joined: Mar 17, 2008
Posts: 23
|
|
|
Check the webapps folder of your tomcat root directory whether Pro1 is deployed or not? if deployed check the correct file structure and web.xml file. Vista do not create problem with tomcat. it's your application / deployment having problem. what is hello? is it a servlet or a jsp? if jsp then you have to write hello.jsp in your url.
|
 |
Komal Amaresh
Ranch Hand
Joined: Oct 06, 2008
Posts: 67
|
|
hi,
Do i have to check while running an application on eclipse. When i created it on notepad, i created a war file on the command prompt and and pasted the war file in webapps folder of tomcat in the c drive. I presumed eclipse as an IDE would deploy the application. But the war file is not created web-apps root folder in c drive.
I see no mistake in my web.xml defined.
the servlet is
My servlet dir is
Pro1/WEB-INF/src/pack1/MySrv1.java
the class file is created in the classes folder
web.xml is in WEB-INF
Any mistake? let me know
i thought the servlet would be automatically deployed if i create it in an ide.
help me deploy the application
thanks in advance.
regards,
Komal
|
 |
ShaikSalam Bashoeb
Greenhorn
Joined: Dec 10, 2008
Posts: 24
|
|
|
sorry by mistake i have written here.. i don't k now how to delete the message
|
 |
Komal Amaresh
Ranch Hand
Joined: Oct 06, 2008
Posts: 67
|
|
Hi,
I just made the same application on eclipse in windows xp. i could run it well there. it is not getting getting deployed on my system. I have tomcat 6.0.
I wonder what the problem is in this. I had checked on XP. The war file is not created in the root folder. it is shown in the applications in the tomcat manager.
I'm unable to do it on my system. Seems like it is a vista problem or a port or should it be some authectication.
please help me.
thanks and regards,
Komal
|
 |
 |
|
|
subject: the application is not deployed on tomcat in eclipse
|
|
|