• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in starting tomcat server  RSS feed

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
while starting tomcat error eclipse is showing following error
 
Ranch Hand
Posts: 51
2
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It seems that you have mixed @WebServlet annotation and web.xml based configuration.

you should use the one or the other, not both. Remove the mapping from web.xml and go ahead with using only the @WebServlet annotation.
 
ashok movva
Greenhorn
Posts: 17
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Mark Spencers wrote:It seems that you have mixed @WebServlet annotation and web.xml based configuration.

You should use the one or the other, not both. Remove the mapping from web.xml and go ahead with using only the @WebServlet annotation.



Thank you Mark Spencers. It's working.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!