tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filip Hanik \(lists\)" <devli...@hanik.com>
Subject RE: Servlets won't load after deployment
Date Wed, 04 Feb 2004 05:29:58 GMT
remove all that stuff from your classpath.
do this

export CLASSPATH=""
./startup.sh

and it should work, the startup scripts are setting the classpath, and so
does tomcat when it startup,
you placing stuff in the system classpath will only mess things up :)

Filip

-----Original Message-----
From: Phil Campaigne [mailto:pcampaigne@charter.net]
Sent: Tuesday, February 03, 2004 6:19 PM
To: tomcat-user@jakarta.apache.org
Subject: Servlets won't load after deployment


MY webapp works on my localhost but after deployment I get an error
instantiating HttpServlet class even though I have the servlet.jar in
the CLASSPATH.  Here are the CLASSPATH and catalina.out.
Does anyone know what I am doing wrong?
thanks,
Phil

CLASSPATH=:.:/usr/java/mysql-connector-java-2.0.14-bin.jar:/usr/java/jdbc7.2
dev-1.2.jar:/home/catalina/jakarta-tomcat/common/lib/servlet.jar:/home/hardw
oodthunder/jakarta-tomcat/common/lib/servlet.jar:/usr/java/mm.mysql-2.0.11/m
m.mysql-2.0.11-bin.jar
2004-0



2-03 18:58:51 StandardContext[/ReportingSystem]: Servlet
/ReportingSystem threw load() exception
javax.servlet.ServletException: Error instantiating servlet class
javax.servlet.http.HttpServlet
         at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91
1)
         at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
         at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3420)
         at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
         at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
21)
         at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
         at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
         at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:257)
         at
org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
         at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:502)
         at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:410)
         at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
         at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
         at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
         at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
         at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
         at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
         at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
         at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
         at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
         at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

----- Root Cause -----
java.lang.InstantiationException
         at
sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(Instan
tiationExceptionConstructorAccessorImpl.java:30)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
         at java.lang.Class.newInstance0(Class.java:306)
         at java.lang.Class.newInstance(Class.java:259)
         at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:90
2)
         at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
         at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3420)
         at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
         at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
21)
         at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
         at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
         at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:257)
         at
org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
         at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:502)
         at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:410)
         at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
         at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
         at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)

  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
         at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
         at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
         at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
         at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
         at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
         at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
         at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.576 / Virus Database: 365 - Release Date: 1/30/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.576 / Virus Database: 365 - Release Date: 1/30/2004


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message