You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Deepa Paranjpe <de...@yahoo.com> on 2007/07/09 18:21:29 UTC
Changing tomcat version
Hi all,
I was using tomcat's version of 4.1 for a long time and it was working fine. But then I decided to move to version 6. I kept getting these errors -->
javax.servlet.ServletException: Cannot allocate servlet instance for path /mystuff/servlet/RelatedQuestions
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:389)
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:134)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
When I tried to move back to version 4 -- even the main page
i.e. localhost:8080/ doesn't show anything.
How can I fix this problem? Please help.
Thanks much in advance,
Deepa
---------------------------------
Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.
Re: Changing tomcat version
Posted by Jacob Rhoden <ja...@uptecs.com>.
Hi,
I am by no means an expert, however generally I too have had problems
running the latest versions of tomcat using Java < 1.6.0.
I am not sure of the reason but using Java 1.6.0_02 makes most problems
go away. (I am guessing the tomcat 6 distro is compiled with java 1.6?)
Try this to get a working tomcat 1.6.0 (unix only)
- Make an empty directory (i do "adduser appserver")
- Download and install java 1.6.0 into it
- Download and isntall tomcat 6 into it
- Edit catalina.sh to force it to use java 1.6.0.
- Copy your web apps over.
This usually takes me all of 5 minutes on a linux box, and gets me a
stable working version of tomcat every time. (Which we have running
production). When it comes time to upgrade I just repeat above steps
with newer versions in a new directory. The beauty if this is that if
there is a problem you can always go back.
And not only this but I find that ubuntu and some other distros make
some strange changes that cause me problems. (ie, like Ubuntu's
predilections to not use Suns Java. I agree with the philosophy, but in
reality causes much grief).
Best Regards,
Jacob
Deepa Paranjpe wrote:
> Hi all,
>
> I was using tomcat's version of 4.1 for a long time and it was working fine. But then I decided to move to version 6. I kept getting these errors -->
>
> javax.servlet.ServletException: Cannot allocate servlet instance for path /mystuff/servlet/RelatedQuestions
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org