Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes Problem inmy Servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem inmy Servlets" Watch "Problem inmy Servlets" New topic
Author

Problem inmy Servlets

Nadeem Ahmad
Greenhorn

Joined: Oct 20, 2003
Posts: 28
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
lali virdi
Greenhorn

Joined: Feb 09, 2004
Posts: 19
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

Joined: Oct 20, 2003
Posts: 28
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.
Satheesh Chandra
Greenhorn

Joined: Feb 19, 2004
Posts: 2
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....
Ravikumar Jambunathan
Ranch Hand

Joined: Aug 25, 2003
Posts: 66
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
 
 
subject: Problem inmy Servlets