• 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

Problem inmy Servlets

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I m new to servlet...
I wrote the servlet and put it in the classes directory of Jrun.And run it directly from the URL with out compiling..it is running fine..and made the class file HelloWorld.class.
Now If i do some changes in the Servlets and then trying to running it then it is whowing the old Result only.
and If I do restart the Server again then it shows the changes if there is no ERROR in the Server.
But if i left any ERROR in the Servlets and try to run it..Then it does not Show the ERROR.
It shows this message
"
Oops! We couldn't find your document.
The file that you requested could not be found on this server. "
and one more thing..I am running it by giving "http://localhost:8100/servlet/HelloWorld"
What I hv to do if want to run i from my own directory.
Thank in advance
Nadeem
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi i think that after making changes you are not saving your servlet
save the servlet and then call it
it will run fine
 
Nadeem Ahmad
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am saving it after making changes..and if restart the server then it shows the changes on the brwoser.but if there is any ERROR in the servlet then it does not show any Error on the browser.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
What version of Jrun u are using??? In JRun ver 4, there is a option called Dynamically reload the class. If the Option is checked as 'Yes' then you dont need to restart the server. Or else otherwise you should load restart the server to make the effect on your new compiled class.
Satheesh Chandra....
 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi nadeem

and one more thing..I am running it by giving "http://localhost:8100/servlet/HelloWorld"
What I hv to do if want to run i from my own directory


you must type your context directory in the url, under which your WEB-INF/classes directory exits.
try out using this url http://localhost:8001/<context-path>/servlet/HelloWrold
good luck.
ravi.
SCJP,SCWCD
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic