• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet mapping problem

 
Lucas Smith
Ranch Hand
Posts: 808
1
Android Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Lucas Smith
Ranch Hand
Posts: 808
1
Android Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A miracle.

It works now with a new application
 
Ove Lindström
Ranch Hand
Posts: 326
Android Firefox Browser Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lucas Smith wrote:A miracle.

It works now with a new application


Did you use another container??
 
Lucas Smith
Ranch Hand
Posts: 808
1
Android Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hell, no!

I have just created a new application in netbeans and deploy it on glassfish.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic