File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "<url-pattern> not woking" Watch "<url-pattern> not woking" New topic

<url-pattern> not woking

Alejandro Barrero
Ranch Hand

Joined: Aug 01, 2005
Posts: 327
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
descriptionThe requested resource () is not available.
GlassFish Server Open Source Edition

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

Joined: Dec 16, 2010
Posts: 1522

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
I agree. Here's the link:
subject: <url-pattern> not woking
jQuery in Action, 3rd edition