tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Pelletier" <ad...@tachyon.net>
Subject Problems deploying a war file with contained jars.
Date Fri, 23 May 2003 00:09:18 GMT
Tomcat version = 4.1.18
building war with Ant version = 1.5.1

I Recently added the necessary jars needed for the database binding tool OJB to my WAR file.
 The WAR file deployed properly before the addition of the three needed jars for OJB -  antlr.jar,
log4j-1.2.5.jar, db-ojb-1.3.rc3.jar.  I can see that these jars do seem to appear properly
inside of the war file at /WEB-INF/lib as seen below in the "jar tvf" output:

         0 Thu May 22 17:01:40 PDT 2003 WEB-INF/lib/
  71695 Thu May 22 16:05:52 PDT 2003 WEB-INF/lib/antlr.jar
350115 Thu May 22 16:18:22 PDT 2003 WEB-INF/lib/log4j-1.2.5.jar
725666 Thu May 22 15:49:04 PDT 2003 WEB-INF/lib/db-ojb-1.0.rc3.jar

However when I start up tomcat I get the following exception/errors.

2003-05-22 17:05:09 WebappLoader[/nr]: Deploying class repositories to work directory /home/adamp/prod/netrep/warp/netrep/tomcatroot/work/Standalone/localhost/nr
2003-05-22 17:05:09 WebappLoader[/nr]: Deploy class files /WEB-INF/classes to /home/adamp/prod/netrep/warp/netrep/tomcatroot/work/Standalone/localhost/nr/WEB-INF/classes
2003-05-22 17:05:09 WebappLoader[/nr]: Deploy JAR /WEB-INF/lib/antlr.jar to /home/adamp/prod/netrep/warp/netrep/tomcatroot/work/Standalone/localhost/nr/WEB-INF/lib/antlr.jar
2003-05-22 17:05:09 WebappLoader[/nr]: Deploy JAR /WEB-INF/lib/db-ojb-1.0.rc3.jar to /home/adamp/prod/netrep/warp/netrep/tomcatroot/work/Standalone/localhost/nr/WEB-INF/lib/db-ojb-1.0.rc3.jar
2003-05-22 17:05:10 WebappLoader[/nr]: Deploy JAR /WEB-INF/lib/log4j-1.2.5.jar to /home/adamp/prod/netrep/warp/netrep/tomcatroot/work/Standalone/localhost/nr/WEB-INF/lib/log4j-1.2.5.jar
2003-05-22 17:05:10 WebappLoader[/nr]: Reloading checks are enabled for this Context
2003-05-22 17:05:10 ContextConfig[/nr] Exception processing JAR at resource path /WEB-INF/lib/log4j-1.2.5.jar
javax.servlet.ServletException: Exception processing JAR at resource path /WEB-INF/lib/log4j-1.2.5.jar
	at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930)
	at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
	at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:3567)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
	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.io.IOException: No such file or directory
	at java.io.UnixFileSystem.createFileExclusively(Native Method)
	at java.io.File.checkAndCreate(File.java:1313)
	at java.io.File.createTempFile(File.java:1401)
	at java.io.File.createTempFile(File.java:1438)
	at sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:169)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:164)
	at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:42)
	at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:68)
	at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:85)
	at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:69)
	at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:906)
	at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
	at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:3567)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
	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)

2003-05-22 17:05:10 ContextConfig[/nr]: Marking this application unavailable due to previous
error(s)
2003-05-22 17:05:10 StandardManager[/nr]: Seeding random number generator class java.security.SecureRandom
2003-05-22 17:05:11 StandardManager[/nr]: Seeding of random number generator has been completed
2003-05-22 17:05:11 StandardContext[/nr]: Context startup failed due to previous errors

The important thing is that I get a "root cause" of "No such file or directory".  So what
file do I appear to be missing to get this error?

Thanks in advance for any help,
Adam

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