aspose file tools*
The moose likes Servlets and the fly likes I am not able to run servlet class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "I am not able to run servlet class" Watch "I am not able to run servlet class" New topic
Author

I am not able to run servlet class

satish badarayani
Greenhorn

Joined: Oct 06, 2009
Posts: 8
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
Marshal

Joined: Mar 22, 2005
Posts: 42919
    
  68
There's no need to restart the server - a reload of the web app should be sufficient.
Santhosh Reddy
Greenhorn

Joined: Sep 25, 2006
Posts: 27
Reload of the applications is more than enought for this. What is the server you are using?
satish badarayani
Greenhorn

Joined: Oct 06, 2009
Posts: 8
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

Joined: Apr 01, 2008
Posts: 75
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?


Pankaj Vijay (SCJP, SCBCD)
Learn Core Java,Learn Servlet Jsp, SCJP Questions,Struts Tutorial
satish badarayani
Greenhorn

Joined: Oct 06, 2009
Posts: 8
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
Marshal

Joined: Mar 22, 2005
Posts: 42919
    
  68
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

Joined: Oct 06, 2009
Posts: 8
that is ok.
but could you tell me how to reload the web application ?
pankaj vijay
Ranch Hand

Joined: Apr 01, 2008
Posts: 75
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

Joined: Oct 06, 2009
Posts: 8
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

Joined: Jun 06, 2002
Posts: 181
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.


love your job and not your company;
...because you never know when your company will stop loving you!
pankaj vijay
Ranch Hand

Joined: Apr 01, 2008
Posts: 75
ok thanks for trying to resolve my problem.....



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I am not able to run servlet class