This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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