aspose file tools*
The moose likes Servlets and the fly likes <url-pattern> not woking 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 "<url-pattern> not woking" Watch "<url-pattern> not woking" New topic
Author

<url-pattern> not woking

Alejandro Barrero
Ranch Hand

Joined: Aug 01, 2005
Posts: 319
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


Your help will be greatly appreciated,
Alejandro Barrero
J. Kevin Robbins
Bartender

Joined: Dec 16, 2010
Posts: 1001
    
  13

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".


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." -- Ted Nelson
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: <url-pattern> not woking