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

<url-pattern> not woking

 
Alejandro Barrero
Ranch Hand
Posts: 335
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My web.xml is:

com.menutab.MenuTab exists and it is a Servlet:

On "localhost:8080/MenuTab/" I am getting:
HTTP Status 404 -
type Status report
message
descriptionThe requested resource () is not available.
GlassFish Server Open Source Edition 3.1.2.2
 
J. Kevin Robbins
Bartender
Posts: 1725
19
Chrome Firefox Browser jQuery Linux MySQL Database Netbeans IDE
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is "MenuTab" the name of the servlet AND the name of your context? If so, your URL should be "http://localhost:8080/MenuTab/MenuTab", but I suspect your context is something else entirely in which case it should be "http://localhost:8080/<context>/MenuTab".

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic