Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

I am not able to run servlet class

 
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.
 
Rancher
Posts: 43016
76
  • 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.
 
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 ?
 
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: 43016
76
  • 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.....


 
Ranch Hand
Posts: 182
  • 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.....



 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic