You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Christian Billen <cb...@mail.com> on 2001/02/20 18:02:01 UTC

RE: Problem: Struts under Tomcat 3.2.1

Hello,

I am trying to run the struts-example.war from the 20010216 nightly build in
my tomcat 3.2.1

On initialization I can see it initializing properly (reading User from xml
file and all) and I can even bring the main page in the browser
http://localhost/struts-example

If I try to click the Register link in the example app: (which does
http://localhost/struts-example/editRegistration.do?action=Create)

I get a nice 500 error and a stack trace:

Error: 500
Location: /struts-example/editRegistration.do
Internal Servlet Error:

java.lang.ClassCastException: javax.servlet.ServletException
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:354)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:78
6)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:732)
	at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:407)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
	at java.lang.Thread.run(Thread.java:484)


Any clue on what I could have configured wrong? my struts.jar is NOT in my
classpath
I have also added the "AddHandler jserv-servlet .do" to my tomcat.conf file

Thanks for your help,

Christian Billen


RE: Problem: Struts under Tomcat 3.2.1

Posted by Christian Billen <cb...@mail.com>.
Thanks, I actually got a more recent build from today and cleaned the
directory.  It now works properly.

-----Original Message-----
From: mmuchnik@iname.net [mailto:mmuchnik@iname.net]On Behalf Of Maya
Muchnik
Sent: Tuesday, February 20, 2001 11:12 AM
To: struts-user@jakarta.apache.org
Subject: Re: Problem: Struts under Tomcat 3.2.1


Maybe you need to remove struts-example directory and startup Tomcat again.

Christian Billen wrote:

> Hello,
>
> I am trying to run the struts-example.war from the 20010216 nightly build
in
> my tomcat 3.2.1
>
> On initialization I can see it initializing properly (reading User from
xml
> file and all) and I can even bring the main page in the browser
> http://localhost/struts-example
>
> If I try to click the Register link in the example app: (which does
> http://localhost/struts-example/editRegistration.do?action=Create)
>
> I get a nice 500 error and a stack trace:
>
> Error: 500
> Location: /struts-example/editRegistration.do
> Internal Servlet Error:
>
> java.lang.ClassCastException: javax.servlet.ServletException
>         at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:354)
>         at
>
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:78
> 6)
>         at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:732)
>         at
>
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
> (Ajp12ConnectionHandler.java:166)
>         at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:407)
>         at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
>         at java.lang.Thread.run(Thread.java:484)
>
> Any clue on what I could have configured wrong? my struts.jar is NOT in my
> classpath
> I have also added the "AddHandler jserv-servlet .do" to my tomcat.conf
file
>
> Thanks for your help,
>
> Christian Billen




Re: Problem: Struts under Tomcat 3.2.1

Posted by Maya Muchnik <mm...@pumatech.com>.
Maybe you need to remove struts-example directory and startup Tomcat again.

Christian Billen wrote:

> Hello,
>
> I am trying to run the struts-example.war from the 20010216 nightly build in
> my tomcat 3.2.1
>
> On initialization I can see it initializing properly (reading User from xml
> file and all) and I can even bring the main page in the browser
> http://localhost/struts-example
>
> If I try to click the Register link in the example app: (which does
> http://localhost/struts-example/editRegistration.do?action=Create)
>
> I get a nice 500 error and a stack trace:
>
> Error: 500
> Location: /struts-example/editRegistration.do
> Internal Servlet Error:
>
> java.lang.ClassCastException: javax.servlet.ServletException
>         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:354)
>         at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:78
> 6)
>         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:732)
>         at
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
> (Ajp12ConnectionHandler.java:166)
>         at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:407)
>         at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
>         at java.lang.Thread.run(Thread.java:484)
>
> Any clue on what I could have configured wrong? my struts.jar is NOT in my
> classpath
> I have also added the "AddHandler jserv-servlet .do" to my tomcat.conf file
>
> Thanks for your help,
>
> Christian Billen


Re: Problem: Struts under Tomcat 3.2.1

Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
Maya Muchnik wrote:

> Whose is the file "jsdk.jar"? Is it the new for Tomcat > 3.1?
>

No, it's actually old ... it was the servlet 2.0 classes from the old "Java Server
Development Kit".  Anyone who ever used Apache JServ is likely to have this file
hanging around, and it will cause problems if it is on your classpath.

Craig



Re: Problem: Struts under Tomcat 3.2.1

Posted by Maya Muchnik <mm...@pumatech.com>.
Whose is the file "jsdk.jar"? Is it the new for Tomcat > 3.1?

"Craig R. McClanahan" wrote:

>
> Could you double check that there is no "servlet.jar" or "jsdk.jar" file on your
> class path (except for the one that the Tomcat startup script adds), or in your
> system extensions directory ($JAVA_HOME/jre/lib/ext)?  This sounds like a class
> versioning conflict inside of Tomcat.
>
> If it is not this situation, please post a bug in our bug tracking system at:
>
>     http://nagoya.apache.org/bugzilla/
>
> Craig McClanahan


Re: Problem: Struts under Tomcat 3.2.1

Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
Christian Billen wrote:

> Hello,
>
> I am trying to run the struts-example.war from the 20010216 nightly build in
> my tomcat 3.2.1
>
> On initialization I can see it initializing properly (reading User from xml
> file and all) and I can even bring the main page in the browser
> http://localhost/struts-example
>
> If I try to click the Register link in the example app: (which does
> http://localhost/struts-example/editRegistration.do?action=Create)
>
> I get a nice 500 error and a stack trace:
>
> Error: 500
> Location: /struts-example/editRegistration.do
> Internal Servlet Error:
>
> java.lang.ClassCastException: javax.servlet.ServletException

Could you double check that there is no "servlet.jar" or "jsdk.jar" file on your
class path (except for the one that the Tomcat startup script adds), or in your
system extensions directory ($JAVA_HOME/jre/lib/ext)?  This sounds like a class
versioning conflict inside of Tomcat.

If it is not this situation, please post a bug in our bug tracking system at:

    http://nagoya.apache.org/bugzilla/

Craig McClanahan