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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 302
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
Ranch Hand

Joined: Dec 16, 2010
Posts: 632
    
    7

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


"There is no reason for any individual to have a computer in his home" ~ Ken Olson, Co-founder of DEC, 1977
 
 
subject: <url-pattern> not woking
 
Similar Threads
jsp:useBean problem
Getting error "Oops! This link appears to be broken."
Solved: JDBC Connection Pool Problem
Problem with JSPs in web application
404 Not Found - Servlet runs locally (GlassFish), but Not Found on web site