Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to manually deploy a servlet

 
Sree kanth
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all

What all are the setps which i have to perform if i am deployin a servlet without deploytool. I am using J2ee1.4 server

Rgds
Sree
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Copy your Servlet class to the WEB-INF/classes folder
2. Add servlet and url-mapping entry in the web.xml file.
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pradip Bhat:
1. Copy your Servlet class to the WEB-INF/classes folder
2. Add servlet and url-mapping entry in the web.xml file.


And don't forget to tell the server that the on-disk configuration has changed. The generic "brute force" way is to restart the server, but most modern servers also support some form of "ping" to tell them to reload their configurations.
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sree kanth:
hi all

What all are the setps which i have to perform if i am deployin a servlet without deploytool. I am using J2ee1.4 server

Rgds
Sree


if you are using tomcat (not sure about the other servers/containers) you can create a .war file and then put it into the deployment directory.the server would automatically deploy that for you when you restart the server..

Cheers!
 
Sree kanth
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thnk you verymuch

Rgds
Sree
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic