Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tutorial Chapter r not working

 
Jan Paul Vos
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
spaciba

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

JP
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic