• Post Reply Bookmark Topic Watch Topic
  • New Topic

Deployment of an WEB application on Tomcat 4.1.31  RSS feed

 
Varsha Pardeshi
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the first time I m developing an application in JSP.I have finished one module. Now I want to deploye it on server. I followed the following procedure:

/Test - all JSP & HTML pages
/Test/WEB-INF - no servelets so no web.xml
/Test/WEB-INF/classes - class file in TestPackage
/Test/WEB-INF/lib - no jar file

then created war file as (in the same directory)
jar cvf Test.war .

then copied this file in /tomcat_home/webapps/Test.war

also added the servlet context path to tomcat_home/conf/server.xml as:
<Context path="/Test" docBase="Test" debug="0" reloadable="true" />

But if I put like this & try to startup the server it doesn't get started.

if I remove this context path entry from server.xml, then server works properly.
how to solve this problem?
Please help me. Thanks in advanced.
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Varsha, remove let .war file in webapp folder, but remove entry that you made in server.xml.
Restart your server and Tomcat will automatically deploy your application and will make an entry also in server.xml.
Try this and let us know what happen.
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can find many small applications here.
Just download them and deploy on your own.
You will get more experience on deployment and will learn new concept that applications those has.
 
Stefan Evans
Bartender
Posts: 1836
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would have a web.xml file, even if it is just a base empty one, with minimal entries. The presence of web.xml is what tells Tomcat that this is a webapp, and to deploy it as such.


Cheers,
evnafets
 
Varsha Pardeshi
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Chetan & Stefan.
Now I m able to deploy & run the application on webserver. I had removed the context path enrty from server.xml & kept .war file in tomcat_home/webapps directory.The application get deployed.
Thanks for u r help.

Regards,
Varsha
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!