I am running a tomcat 4.1.18 server in the following way: The catalina_base directory is set up as /web. This allows me to keep the distribution of the code seperate from the version of the tomcat server. It is also useful for deploying multiple instances on the same machine.
So, I have CATALINA_BASE=/web CATALINA_HOME=/usr/jakarta-tomcat4.1.18 Here is the problem: Any jars in the /web/webapps/application/WEB-INF/lib directory cause an error when the context is initialized. While starting up, tomcat finds the jar files, but while loading gives the exception. that it can't find the file at the requested resource (which seems odd given that it was found during the scanning process. the error from the logs and the server.xml file are included below I've tried several solutions including: 1) putting the jars in the /{tomcat}/shared/lib directory -- the classes in the jars were not available at runtime. 2) experimenting with the "appbase" directory. --no effect 3) The problem is NOT related to the struts.jar file. The same error occurs with the mysql.jar file The system works when CATALINA_BASE == CATALINA_HOME, but that does not fit with what I am trying to do for the application. Any insight would be appreciated mike evans 2003-02-05 12:12:50 ContextConfig[]: Adding path'/WEB-INF/lib/struts.jar' 2003-02-05 12:12:50 ContextConfig[]: Scanning TLD atresource path '/WEB-INF/struts-bean.tld' 2003-02-05 12:12:51 ContextConfig[]: Scanning TLD atresource path '/WEB-INF/struts.tld' 2003-02-05 12:12:52 ContextConfig[]: Scanning JAR atresource path '/WEB-INF/lib/struts.jar' 2003-02-05 12:12:52 ContextConfig[] Exceptionprocessing JAR at resource path /WEB-INF/lib/struts.jarjavax.servlet.ServletException: Exception processingJAR at resource path /WEB-INF/lib/struts.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(LifecycleSuppor t.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 java.lang.reflect.Method.invoke(Native Method) 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(NativeMethod) at java.io.File.checkAndCreate(File.java:1159) at java.io.File.createTempFile(File.java:1244) at java.io.File.createTempFile(File.java:1281) at sun.net.www.protocol.jar.JarFileFactory$1.run(JarFileFactory.java:190) at java.security.AccessController.doPrivileged(NativeMethod) at sun.net.www.protocol.jar.JarFileFactory.retrieve(JarFileFactory.java:183) at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:100) at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:88) at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:7 2) 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(LifecycleSuppor t.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 java.lang.reflect.Method.invoke(NativeMethod) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) 2003-02-05 12:12:52 ContextConfig[]: PiplineConfiguration: 2003-02-05 12:12:52 ContextConfig[]: org.apache.catalina.core.StandardContextValve/1.0 2003-02-05 12:12:52 ContextConfig[]: ====================== 2003-02-05 12:12:52 ContextConfig[]: Marking thisapplication unavailable due to previous error(s) server.xml I've also tried having the appBase set to webapps and the contexts docbase set to application <Server port="8005" shutdown="SHUTDOWN" debug="0"> <!-- Define the Tomcat Stand-Alone Service --> <Service name="Tomcat-Standalone"> <Connector className="org.apache.catalina.connector.http.HttpConnector" port="7777" minProcessors="5" maxProcessors="75" enableLookups="true" acceptCount="10" debug="0" connectionTimeout="60000"/> <Engine name="Standalone" defaultHost="localhost" debug="0"> <Logger className="org.apache.catalina.logger.FileLogger" prefix="catalina_log." suffix=".txt" timestamp="true"/> <Realm className="org.apache.catalina.realm.MemoryRealm" /> <!-- Define the default virtual host --> <Host name="localhost" debug="0" appBase="webapps" unpackWARs="false"> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="combined"/> <Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="localhost_log." suffix=".txt" timestamp="true"/> <Context path="" docBase="application" debug="10" reloadable="false"> <Logger className="org.apache.catalina.logger.FileLogger" prefix="application." suffix=".log" timestamp="true"/> </Context> </Host> </Engine> </Service> <Service name="Tomcat-Apache"> <Connector className="org.apache.catalina.connector.warp.WarpConnector" port="8008" minProcessors="5" maxProcessors="75" enableLookups="true" acceptCount="10" debug="0"/> <Engine className="org.apache.catalina.connector.warp.WarpEngine" name="Apache" debug="0" appBase="webapps"> <Logger className="org.apache.catalina.logger.FileLogger" prefix="apache_log." suffix=".txt" timestamp="true"/> <Realm className="org.apache.catalina.realm.MemoryRealm" /> </Engine> </Service> </Server> __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]