File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes servlet mapping problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet mapping problem" Watch "servlet mapping problem" New topic
Author

servlet mapping problem

Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 804
    
    1

Hi,

When I use deployment descriptor the mapping works fine. But when I use @WebServlet(name = "NewServlet2", urlPatterns = {"/NewServlet2"}) the mapping is not preserved.

Does anyone have any idea?


SCJP6, SCWCD5, OCE:EJBD6.
BLOG: http://leakfromjavaheap.blogspot.com
Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 804
    
    1

A miracle.

It works now with a new application
Ove Lindström
Ranch Hand

Joined: Mar 10, 2008
Posts: 326

Lucas Smith wrote:A miracle.

It works now with a new application


Did you use another container??
Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 804
    
    1

Hell, no!

I have just created a new application in netbeans and deploy it on glassfish.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servlet mapping problem
 
Similar Threads
component mapping in hibernate.
when we need to fill MIME-MAPPING in web.xml?
How to use middlegen to generate hibernate3.0 mapping file
Can I use a JDBC driver installed on another PC ?
XML to Java object using JAXB