Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

the application is not deployed on tomcat in eclipse

 
Komal Amaresh
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the IDEs forum.
 
samir singha
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry by mistake i have written here.. i don't k now how to delete the message
 
Komal Amaresh
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic