It's not a secret anymore!
The moose likes Servlets and the fly likes HELP ME.... PLEASE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "HELP ME.... PLEASE" Watch "HELP ME.... PLEASE" New topic


Tanveer Mehmood
Ranch Hand

Joined: Feb 23, 2001
Posts: 51
Page cannot be displayed.... I encounter this error when I type, and I'm not behind the firewall even. When I type http://localhost:8080 in address bar, dialog appears and asks me "Work Offline or Try Again". Is there anything wrong with my tomcat configuration. It starts fine when I type "tomcat run" in command window. But when I stop tomcat (shutdown) it generates lots of exception.
All examples which come with tomcat work fine. So whats wrong??? Where should I place my servlets and html contents will be my next question.
I'm stucked up.... Please help me. Waiting for an earliest reply.
Reeha Shah

Joined: May 18, 2001
Posts: 4
hi tanveer,
use the url http://localhost:8080/.....
there is no hard-and-fast rule for placing jsp pages/servlets/beans. u can place them anywhere in tomcat folder. i usually put my jsp pages in a folder placed in example folder. [u can find example folder in ur tomcat/webapps/examples] nad class files [servlets + beans] in tomcat/webapps/examples/web-inf/classes/myfolder
try this, u'll get ur page running. double click startup.bat file for starting server and shutdown.bat file for stopping it. if it ask whether to work offline/try again then click on try again, ket c wht happen
hope this will help u.
Jimi Rock
Ranch Hand

Joined: Feb 19, 2001
Posts: 134
Hi Tanveer,
It was strage for me that you have posted a new topic. Please try to reply in the same topic in order for me to contact you easily, I want to help you.
As I see it , you are using explorer browser, am I right? this connection request is appeared by default. I advise you to use netscape as it does not do so. No problem with your tomcat of course, your pages should work fine.
Waiting for your comments (in the same topic )
Peter Gragert
Ranch Hand

Joined: Jan 16, 2001
Posts: 424
I do not agree,
If you have not opened a directory structure under
You should first try to put your jsp files in
"your tomcatdir"/webapps/ROOT/"your.jsp".
Replace ".." by the good names!
At least that is recommended (and works with me) by books.
I agree. Here's the link:
subject: HELP ME.... PLEASE
It's not a secret anymore!