File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Tutorial Chapter r not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Tutorial Chapter r not working" Watch "Tutorial Chapter r not working" New topic
Author

Tutorial Chapter r not working

Jan Paul Vos
Greenhorn

Joined: Aug 10, 2005
Posts: 5
Hi,

I tried the turorial in Chapter five, but can't get it going;
If i open the browser with :
http://localhost:8080/listenerTester/ListenTest.do
I get the following respons:
"The requested resource (/listenerTest/ListenTest.do) is not available."

This suggest that something is wrong with my web.xml file, but i cannot spot it:


Any ideas what's going wrong?
Sergey Tyulkin
Ranch Hand

Joined: May 10, 2005
Posts: 87
<servlet-mapping> is not a child node of <servlet> element.
Change to
<servlet>
<servlet-name>ListenerTester</servlet-name>
<servlet-class>com.example.ListenerTester</servlet-class>

</servlet>
<servlet-mapping>
<servlet-name>ListenerTester</servlet-name>
<url-pattern>/ListenTest.do</url-pattern>
</servlet-mapping>
Jan Paul Vos
Greenhorn

Joined: Aug 10, 2005
Posts: 5
spaciba

Looking over that for more than an hour, i feel blind...

JP
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tutorial Chapter r not working
 
Similar Threads
ListenerTester
NullPointer Exception
Tomcat deployment environment
Error 'element type listener not declared' when starting Tomcat
HFSJ p.171-176 example need help