wood burning stoves 2.0*
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Servlets are not accessible but jsps are accessible. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Reply locked New topic
Author

Servlets are not accessible but jsps are accessible.

Narasimha Rao B.
Ranch Hand

Joined: Aug 26, 2002
Posts: 205
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,


Narasimha
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
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....


Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
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


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlets are not accessible but jsps are accessible.
 
Similar Threads
Servlets are not accessible but jsps are accessible
Servlets are not accessible but jsps are accessible.
Running Simple Servlets
Having trouble getting Tomcat up and running
HTTP Status 404 The requested resource () is not available