Page cannot be displayed.... I encounter this error when I type http://127.0.0.1, 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. Tanveer.
hi tanveer, use the url http://localhost:8080/..... or http://127.0.0.1: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. Reeha.
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 ) Regards, Jimi.
I do not agree, If you have not opened a directory structure under ...\webapps 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.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop