aspose file tools*
The moose likes Servlets and the fly likes Servlet  is not displaying from browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet  is not displaying from browser" Watch "Servlet  is not displaying from browser" New topic
Author

Servlet is not displaying from browser

Ghazala Islam
Ranch Hand

Joined: Nov 22, 2000
Posts: 73
hi,
my problem is very simple,my servlet
is not displaying.I saved my servelt code in
tomcat/webapps/examples/classes directory and
execute it through http://localhost:8080/servlet/examples/servletname.
it gives differnt kind of errors,sometimes it shows
in status line 'Connecting to localhost' and
afterwards shows 'Done' and then stops.Sometimes
it gives ' Error 207:Cannot access proxy cache server
through url you entered'.
I have tomcat 3.1,I thought may be there is some
problem in server so I again downloaded tomcat 3.3
but the same thing is happening,no change.
YEs one more thing,when I give http://127.0.0.1:8080/
it shows tomcat home page.anybody can tell
what could be the problem?
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1506
Try putting your classes in the following directory, if you have it.
yourTomcatDir/webpages/WEB-INF/classes/
I use Tomcat 3.2.1 and that's where I put mine.
Bosun


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Ghazala Islam
Ranch Hand

Joined: Nov 22, 2000
Posts: 73
I downloaded tomcat 3.2.1,there is no such directory
webpages where you've asked to save servlets,instead
there is webapps directory.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet is not displaying from browser
 
Similar Threads
tomcat 3.2 and invoking a servlet
Error loading file
where to put war
problem with running servlets using tomcat3.2.4
Apache -> Tomcat servlet problem