Hi, hope someone can give me some advice on this:

I'm currently setting up Tomcat3.3.1, Apache 1.3 on Redhat linux 7.2 with 
mod_jk

I'm trying to generate the mod_jk.conf-auto file.

Trying to generate it on startup from the command line($/etc/tomcat3/tomcat3 
start jkconf) did'nt work so I edited server.xml as follows: <ContextManager 
workDir="/var/spool/tomcat3" jkconf="true">

Tomcat now tries to generate the file, and has created the 
/etc/tomcat3/conf/auto directory ok, but I get the following errors while 
Tomcat is starting:

java.lang.RunTimeException:Unable to create path to config file: 
/etc/tomcat3/logs/mod_jk.log - i.e the path is defaulting to TOMCAT_HOME.

and then a couple more similar ones related to IIS and netscape webserver 
log files.

I installed from an RPM.

I've tried specifying the Tomcat log directory in server.xml as follows:
<ApacheConfig noRoot="true" jkLog="/usr/logs/tomcat3/mod_jk.log" 
jkDebug="true" />

I've also commented out the lines for IIS and the netscape server in 
server.xml, which at least stopped those errors, now I just have the 
mod_jk.log one.

Here's the StackTrace:

ApacheConfig: Error generating automatic apache configuration
java.lang.RuntimeException: Unable to create path to config file 
:/usr/logs/tomc
at3/mod_jk.log
        at org.apache.tomcat.util.io.FileUtil.getConfigFile(FileUtil.java)
        at 
org.apache.tomcat.modules.config.ApacheConfig.initProperties(ApacheCo
nfig.java)
        at 
org.apache.tomcat.modules.config.ApacheConfig.execute(ApacheConfig.ja
va)
        at 
org.apache.tomcat.modules.config.BaseJkConfig.engineState(BaseJkConfi
g.java)
        at 
org.apache.tomcat.core.ContextManager.setState(ContextManager.java)
        at org.apache.tomcat.core.ContextManager.init(ContextManager.java)
        at 
org.apache.tomcat.startup.EmbededTomcat.initContextManager(EmbededTom
cat.java)
        at 
org.apache.tomcat.startup.EmbededTomcat.execute1(EmbededTomcat.java)
        at org.apache.tomcat.startup.EmbededTomcat$1.run(EmbededTomcat.java)
        at 
org.apache.tomcat.util.compat.Jdk12Support$PrivilegedProxy.run(Jdk12S
upport.java)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Jdk12Support.
java)
        at 
org.apache.tomcat.startup.EmbededTomcat.execute(EmbededTomcat.java)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at 
org.apache.tomcat.util.IntrospectionUtils.execute(IntrospectionUtils.
java)
        at org.apache.tomcat.startup.Main.execute(Main.java)
        at org.apache.tomcat.startup.Main.main(Main.java)



Would I be better off trying to compile mod_kj from source?

The only other thing I can think of is that the tomcat3 user (wich Tomcat is 
started by) doesn't have rights to create directories here - although Tomcat 
created the /etc/tomcat3/conf/auto directory so I suppose the tomcat3 user 
must have the correct permissions to write here.

I hope somebody out there has had the same problem and found a fix!

Thanks

Paul


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to