Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with tomcat settings

 
Veena Pointi
Ranch Hand
Posts: 442
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In core Serclets and JSP by marty hall 2nd edition book it is given ,to uncomment line servlet-mapping element in web.xml file in order to enable invoker servlet.But when I do that and verify by running command catalina run from c:\tomcat\bin directory I am getting the following error.
SEVERE: Parse error in default web.xml
java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name invoker
Please Can anybody help me out?
Veena
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24965

A known, and unfortunately, "won't fix" bug.
 
Veena Pointi
Ranch Hand
Posts: 442
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Mike,
Thanks for the reply.Does this mean we can't use Tomcat5.0 yet?Which version of Tomcat do u suggest to run Servlet2.4 and Jsp2.0 applications?
Thank you very much again.
Veena
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suggest 5.0.16, but I also *Strongly* suggest you ignore the advice to enable the invoker servlet.

There is a FAQ on this site (and on Tomcat's FAQ) detailing why the invoker is a bad idea.
http://test.javaranch.com/wiki/view?InvokerServlet

You will need to then modify any examples in the book or tutorial you're using to use a servlet mapping, rather than the invoker mapping.

I'm also moving this to Apache/Tomcat
 
Veena Pointi
Ranch Hand
Posts: 442
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mike,
Please read the following discussion.
http://www.coderanch.com/t/167247/java-Web-Component-SCWCD/certification/page-not-found-error
It is working now after making further changes to web.xml
Veena
[ January 06, 2004: Message edited by: Veena Point ]
[ January 06, 2004: Message edited by: Veena Point ]
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic