aspose file tools*
The moose likes Servlets and the fly likes Servlet Basic Error !! 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
Bookmark "Servlet Basic Error !!" Watch "Servlet Basic Error !!" New topic
Author

Servlet Basic Error !!

Kush Kush
Greenhorn

Joined: Apr 27, 2004
Posts: 11
Problem :-
My web.xml is :
<?xml version="1.0" encoding="ISO-8859-1" ?>
<web-app>
<servlet>
<servlet-name>Hello</servlet-name>
<servlet-class>Hello</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Hello</servlet-name>
<url-pattern>/Hello</url-pattern>
</servlet-mapping>
</web-app>
My FILES stored in :
/webapps/Test/WEB-INF/classes/Hello.java
/webapps/Test/WEB-INF/classes/Hello.class
When I run Tomcat i reached succesfully upto index.html when i enter my name on page then i get following error statements:-
**
1.type Status report
2.message /classes/Hello
3.description The requested resource (/classes/Hello) is not available.
**
DO ANYBODY HAVE SOLUTION ?


Smile with JAVA
N S Raju
Greenhorn

Joined: Apr 23, 2004
Posts: 6
Hai Kush,
Keep ur class in a package and try ur servlet. Guess that shud do the job
bye
Surya
TECH ZALA
Greenhorn

Joined: May 03, 2004
Posts: 5
you haven't written what to type in browser ???
you may need to write as
http://localhost:8080/Test/servlet/hello
try it........
Dreams are Wings of Success.
-----------------------------
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet Basic Error !!