• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

I am not able to run servlet class

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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



 
reply
    Bookmark Topic Watch Topic
  • New Topic