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.
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.
Joined: Mar 17, 2008
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.
Joined: Oct 06, 2008
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
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.
sorry by mistake i have written here.. i don't k now how to delete the message
Joined: Oct 06, 2008
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.