This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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
Author

<url-pattern> not woking

Alejandro Barrero
Ranch Hand

Joined: Aug 01, 2005
Posts: 325
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: 1425
    
  14

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: <url-pattern> not woking
 
It's not a secret anymore!