This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
    Bookmark Topic Watch Topic
  • New Topic

Servlets are not accessible but jsps are accessible.

 
Narasimha Rao B.
Ranch Hand
Posts: 205
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,

Please help me out resolving the below issues - Just now i have installed tomcat 5.0, through the url i couldn't access any of my own servlets and also examples that were installed through tomcat installation but through the url i could access the jsps. Here is the tree structure of my servlet class file,
Installation_directory/webapps/ch1/WEB-INF/classes/Ch1Servlet.class
In the URL i am giving the path as,
http://localhost:8080/ch1/Ch1Servlet
I am getting the error as "The requested resource (/ch1/Ch1Servlet) is not available."
Even this problem persist with the tomcat examples, One of the servlet class is located at --
instal_directoty\webapps\servlets-examples\WEB-INF\classes\HelloWorldExample
I am trying to access this servlet through -
http://localhost:8080/servlets-examples/HelloWorldExample
but i am getting the error -
"The requested resource (/servlets-examples/HelloWorldExample) is not available."
But i could access successfully jsps, please help me out in resolving the issue.
Thanks in Advance,
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Narasimha, you posted the right question in the wrong place...
There are Servlet forum and JSP forum out there to post about them...

This forum is about Sun Certified J2EE Web Sevices Certification Exam... There in those forums, you will find more experts on Servlets and JSPs...

Hope it helps....
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not crosspost the same question in multiple forums. You have already asked this question in the Apache Tomcat forum. Please continue this discussion at http://www.coderanch.com/t/84266/Tomcat/Servlets-not-accessible-but-jsps

Thank you
 
    Bookmark Topic Watch Topic
  • New Topic