dcsimg
What defaults does tomcat41ctl use when starting Tomcat?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Eric_Kingston
Posted On:   Thursday, February 19, 2004 11:02 AM

I would like to know what default paths tomcat41ctl uses when starting tomcat. The defaults I'm wondering about are as follows: Using CATALINA_BASE: /usr/local/jakarta-tomcat4.1 Using CATALINA_HOME: /usr/local/jakarta-tomcat4.1 Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat4.1/temp Using JAVA_HOME: /usr/local/jdk1.4.2 The tomcat41ctl utility doesn't use the system environment variables, because when I use tomcat4ctl to start tomcat, I get the following type of error in all my apps: 2004-02-19 11:47:07 ContextConfig[/admin] Exception processing JAR at resource p ath /WEB-INF/lib/struts.jar javax.servlet.ServletException: Exception processin   More>>

I would like to know what default paths tomcat41ctl uses when starting tomcat. The defaults I'm wondering about are as follows:



			
Using CATALINA_BASE: /usr/local/jakarta-tomcat4.1
Using CATALINA_HOME: /usr/local/jakarta-tomcat4.1
Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat4.1/temp
Using JAVA_HOME: /usr/local/jdk1.4.2



The tomcat41ctl utility doesn't use the system environment variables, because when I use tomcat4ctl to start tomcat, I get the following type of error in all my apps:



			
2004-02-19 11:47:07 ContextConfig[/admin] Exception processing JAR at resource p
ath /WEB-INF/lib/struts.jar
javax.servlet.ServletException: Exception processing JAR 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(LifecycleSupport.java:166)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3582).......

----- Root Cause -----
java.io.IOException: Permission denied
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1314)
at java.io.File.createTempFile(File.java:1402)
at java.io.File.createTempFile(File.java:1439)
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)



This indicates that tomcat is trying to use some place the user 'www' doesn't have permissions for to write it's temporary files. I have all the previously mentioned environment variables set when I attempt to start tomcat using tomcat41ctl, therefore tomcat41ctl isn't using them. Any suggestions are appreciated.






Regards,



Eric    <<Less
About | Sitemap | Contact