File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet is not displaying from browser

 
Ghazala Islam
Ranch Hand
Posts: 73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1510
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ghazala Islam
Ranch Hand
Posts: 73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic