Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I am not able to run servlet class

 
satish badarayani
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

If I made any changes in servlet I need to restart the server to see the reflection.

I am not able to run servlet class file without restarting the server.

Please give me solution for this.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's no need to restart the server - a reload of the web app should be sufficient.
 
Santhosh Reddy
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Reload of the applications is more than enought for this. What is the server you are using?
 
satish badarayani
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using jboss as application server.

and edit plus as an editor..

how to reload the web application instead of restart the server ?
 
pankaj vijay
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
server need to restart if you modify web.xml file. If you are modifying servlet then no need to restart server. If you are facing this problem then may be it is related to your ID on which you are working. Could you tell which ID you are using?
 
satish badarayani
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
pankaj vijay wrote:server need to restart if you modify web.xml file. If you are modifying servlet then no need to restart server. If you are facing this problem then may be it is related to your ID on which you are working. Could you tell which ID you are using?


i am not using any ID for development.
I am using editplus Version 2.12 for the same..
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
pankaj vijay wrote:server need to restart if you modify web.xml file.

No. That, too, is covered by a reload of the web app in question.
 
satish badarayani
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
that is ok.
but could you tell me how to reload the web application ?
 
pankaj vijay
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dittmer i am totally agree with you, I was just trying to say that there is no need to think about server restart & reloading until unless you are not modifying wex.xml file.
JBOSS is unknown for me. i never worked on this server.
 
satish badarayani
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
pankaj vijay wrote:Dittmer i am totally agree with you, I was just trying to say that there is no need to think about server restart & reloading until unless you are not modifying wex.xml file.
JBOSS is unknown for me. i never worked on this server.


ok thanks for trying to resolve my problem.....


 
manoj r patil
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
satish, as long as hot deployment is turned on, you can do "touch" (on Linux) to web.xml of your web-app and jboss will redeploy your application without touching other services. The URLDeploymentScanner MBean service provides the JBoss hot deployment capability.

You can do this on dev environment but its not recommended on live application as the active users would lost their sessions in that case.
 
pankaj vijay
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok thanks for trying to resolve my problem.....



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic