aspose file tools*
The moose likes Servlets 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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
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
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61420
    
  67

You already asked this question here. Please do not cross-post the same question in multiple forums.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlets are not accessible but jsps are accessible