tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roux, Wouter" <wouter.r...@mediclinic.co.za>
Subject Tomcat 5.0.28 javax.servlet.ServletException: Error allocating a servlet instance
Date Thu, 18 Nov 2004 14:05:27 GMT
Hi,

I have installed Tomcat 5.0.28 on iseries version 5 relsease 2.

Here is my startup script

export -s CATALINA_HOME=/tomcat5
export -s CATALINA_BASE=/tomcat5
export -s JAVA_HOME=/QIBM/ProdData/Java400/jdk14
export -s CLASSPATH=.:$CLASSPATH:/QIBM/ProdData/Java400/jdk14/lib/tools.jar:"$CATALINA_HOME"/common/lib/ant.jar:"$CATALINA_HOME"/bin/bootstrap.jar:"$CATALINA_HOME"/bin/commons-logging-api.jar
export -s CATALINA_TMPDIR="$CATALINA_BASE"/temp
export QIBM_MULTI_THREADED=Y

echo "Using CATALINA_BASE:   $CATALINA_BASE"
echo "Using CATALINA_HOME:   $CATALINA_HOME"
echo "Using CATALINA_TMPDIR: $CATALINA_TMPDIR"
echo "Using JAVA_HOME:       $JAVA_HOME"
echo "Using CLASSPATH:       $CLASSPATH"

echo "Starting Tomcat server..."
java  -classpath "$CLASSPATH" \
      -Dcatalina.base="$CATALINA_BASE" \
      -Dcatalina.home="$CATALINA_HOME" \
      -Djava.io.tmpdir="$CATALINA_TMPDIR" \
      org.apache.catalina.startup.Bootstrap "$@" start



I am able to log in to manager app but I get :

javax.servlet.ServletException: Error allocating a servlet instance
	java/lang/Throwable.<init>(Throwable.java:195)
	java/lang/Exception.<init>(Exception.java:41)
	javax/servlet/ServletException.<init>(ServletException.java:87)
	org/apache/catalina/core/StandardWrapper.allocate(StandardWrapper.java:672)
	org/apache/catalina/core/StandardWrapperValve.invoke(StandardWrapperValve.java:100)
	org/apache/catalina/core/StandardValveContext.invokeNext(StandardValveContext.java:97)
	org/apache/catalina/core/StandardPipeline.invoke(StandardPipeline.java:512)
	org/apache/catalina/core/StandardContextValve.invokeInternal(StandardContextValve.java:168)
	org/apache/catalina/core/StandardContextValve.invoke(StandardContextValve.java:112)
	org/apache/catalina/core/StandardValveContext.invokeNext(StandardValveContext.java:97)
	org/apache/catalina/authenticator/AuthenticatorBase.invoke(AuthenticatorBase.java:400)
	org/apache/catalina/core/StandardValveContext.invokeNext(StandardValveContext.java:97)
	org/apache/catalina/core/StandardPipeline.invoke(StandardPipeline.java:512)
	org/apache/catalina/core/StandardHostValve.invoke(StandardHostValve.java:117)
	org/apache/catalina/core/StandardValveContext.invokeNext(StandardValveContext.java:97)
	org/apache/catalina/valves/ErrorReportValve.invoke(ErrorReportValve.java:118)
	org/apache/catalina/core/StandardValveContext.invokeNext(StandardValveContext.java:97)
	org/apache/catalina/core/StandardPipeline.invoke(StandardPipeline.java:512)
	org/apache/catalina/core/StandardEngineValve.invoke(StandardEngineValve.java:99)
	org/apache/catalina/core/StandardValveContext.invokeNext(StandardValveContext.java:97)
	org/apache/catalina/core/StandardPipeline.invoke(StandardPipeline.java:512)
	org/apache/catalina/core/ContainerBase.invoke(ContainerBase.java:929)
	org/apache/coyote/tomcat5/CoyoteAdapter.service(CoyoteAdapter.java:125)
	org/apache/coyote/http11/Http11Processor.process(Http11Processor.java:718)
	org/apache/coyote/http11/Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:682)
	org/apache/tomcat/util/net/TcpWorkerThread.runIt(PoolTcpEndpoint.java:535)
	org/apache/tomcat/util/threads/ThreadPool$ControlRunnable.run(ThreadPool.java:646)
	java/lang/Thread.run(Thread.java:536)


root cause 

java.lang.IllegalStateException: zip file closed
	java/lang/Throwable.<init>(Throwable.java:195)
	java/lang/Exception.<init>(Exception.java:41)
	java/lang/RuntimeException.<init>(RuntimeException.java:43)
	java/lang/IllegalStateException.<init>(IllegalStateException.java:38)
	java/util/zip/ZipFile.getEntry(ZipFile.java:143)
	java/util/jar/JarFile.getEntry(JarFile.java:184)
	java/util/jar/JarFile.getJarEntry(JarFile.java:171)
	org/apache/catalina/loader/WebappClassLoader.findResourceInternal(WebappClassLoader.java:1680)
	org/apache/catalina/loader/WebappClassLoader.findClassInternal(WebappClassLoader.java:1567)
	org/apache/catalina/loader/WebappClassLoader.findClass(WebappClassLoader.java:834)
	org/apache/catalina/loader/WebappClassLoader.loadClass(WebappClassLoader.java:1222)
	org/apache/catalina/loader/WebappClassLoader.loadClass(WebappClassLoader.java:1189)
	org/apache/catalina/core/StandardWrapper.loadServlet(StandardWrapper.java:875)
	org/apache/catalina/core/StandardWrapper.allocate(StandardWrapper.java:672)
	org/apache/catalina/core/StandardWrapperValve.invoke(StandardWrapperValve.java:100)
	org/apache/catalina/core/StandardValveContext.invokeNext(StandardValveContext.java:97)
	org/apache/catalina/core/StandardPipeline.invoke(StandardPipeline.java:512)
	org/apache/catalina/core/StandardContextValve.invokeInternal(StandardContextValve.java:168)
	org/apache/catalina/core/StandardContextValve.invoke(StandardContextValve.java:112)
	org/apache/catalina/core/StandardValveContext.invokeNext(StandardValveContext.java:97)
	org/apache/catalina/authenticator/AuthenticatorBase.invoke(AuthenticatorBase.java:400)
	org/apache/catalina/core/StandardValveContext.invokeNext(StandardValveContext.java:97)
	org/apache/catalina/core/StandardPipeline.invoke(StandardPipeline.java:512)
	org/apache/catalina/core/StandardHostValve.invoke(StandardHostValve.java:117)
	org/apache/catalina/core/StandardValveContext.invokeNext(StandardValveContext.java:97)
	org/apache/catalina/valves/ErrorReportValve.invoke(ErrorReportValve.java:118)
	org/apache/catalina/core/StandardValveContext.invokeNext(StandardValveContext.java:97)
	org/apache/catalina/core/StandardPipeline.invoke(StandardPipeline.java:512)
	org/apache/catalina/core/StandardEngineValve.invoke(StandardEngineValve.java:99)
	org/apache/catalina/core/StandardValveContext.invokeNext(StandardValveContext.java:97)
	org/apache/catalina/core/StandardPipeline.invoke(StandardPipeline.java:512)
	org/apache/catalina/core/ContainerBase.invoke(ContainerBase.java:929)
	org/apache/coyote/tomcat5/CoyoteAdapter.service(CoyoteAdapter.java:125)
	org/apache/coyote/http11/Http11Processor.process(Http11Processor.java:718)
	org/apache/coyote/http11/Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:682)
	org/apache/tomcat/util/net/TcpWorkerThread.runIt(PoolTcpEndpoint.java:535)
	org/apache/tomcat/util/threads/ThreadPool$ControlRunnable.run(ThreadPool.java:646)
	java/lang/Thread.run(Thread.java:536)

what am I doing wrong?

any help will be appreciated

thanx 
wouter


This e-mail and attachments are confidential/legally privileged and any unauthorised use,
distribution or disclosure thereof, in whatever form, by anyone other than the addressee is
prohibited. If you have received this e-mail in error, please destroy it.  The views and opinions
in this e-mail and attachments may not necessarily be those of the Directors and management
of the Medi-Clinic Group of Companies. The aforementioned does not accept any liability for
any damage, loss or expense arising from this e-mail and / or from accessing any attachments.

---------------------------------------------------------------------
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