aspose 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


Win a copy of Spring in Action this week in the Spring forum!
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