You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Harsha Mehta <ha...@yahoo.com> on 2003/03/20 21:13:02 UTC
Servlet InstantiationException
Hi,
I am running the Cactus sample servlet in WebLogic and
I am getting the following error at run time:
<Error> <HTTP> <101125>
<[ServletContext(id=2467422,name=sample-servlet,context-path=/sample-servlet)]
Error instantiating servlet: "TestSampleServlet"
java.lang.InstantiationException:
org.apache.cactus.sample.TestSampleServlet
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:865)
at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:833)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:773)
Any help would be appreciated.
TIA,
Harsha
__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
RE: Servlet InstantiationException
Posted by Vincent Massol <vm...@pivolis.com>.
Harsha,
Seems like a classpath problem. Make sure all your classes/jars are in
your webapp WEB-INF/lib and WEB-INF/classes directories and nothing is
left on the system classpath.
-Vincent
> -----Original Message-----
> From: Harsha Mehta [mailto:harsha_atul@yahoo.com]
> Sent: 20 March 2003 21:13
> To: cactus-user@jakarta.apache.org
> Subject: Servlet InstantiationException
>
> Hi,
>
> I am running the Cactus sample servlet in WebLogic and
> I am getting the following error at run time:
>
> <Error> <HTTP> <101125>
> <[ServletContext(id=2467422,name=sample-servlet,context-path=/sample-
> servlet)]
> Error instantiating servlet: "TestSampleServlet"
> java.lang.InstantiationException:
> org.apache.cactus.sample.TestSampleServlet
> at java.lang.Class.newInstance0(Native Method)
> at java.lang.Class.newInstance(Class.java:232)
> at
>
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.
ja
> va:865)
> at
>
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImp
l.
> java:833)
> at
>
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl
.j
> ava:773)
>
>
> Any help would be appreciated.
>
> TIA,
> Harsha
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
> http://platinum.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org