Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
mod_jk2+tomcat+apache2 on OSX: WORKS! but NOT FINDING workers2.properties in DFAULT location
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mod_jk2+tomcat+apache2 on OSX: WORKS! but NOT FINDING workers2.properties in DFAULT location



hi all,

i've gotten mod_jk2/2.0.3-dev, tomcat 4.1.24 LE, and Apache/2.1.0 built and playing nicely together on MacOSX 10.2.4. html, jsp & servlets all behaving exactly as they should!

just fyi, my Apache 'server-info" reports:

Apache/2.1.0-dev (Unix) mod_perl/1.99_08 Perl/v5.8.0 DAV/2 mod_jk2/2.0.3-dev PHP/4.3.2-RC

now, to my problem .....

everything builds fine, and I've set up my config/properties files correctly, but on "apachectl start", my /var/log/apache2_error.log is showing:

[error] config.update(): Can't find config file /usr/conf/workers2.properties


in order to make this work, I have to "kludge" a bit by:

       mkdir /usr/conf
       ln -s /etc/apache2/workers2.properties /usr/conf/workers2.properties

where /etc/apache2 is my httpd.conf directory .... and where mod_jk SHOULD be looking for workers2.properties

now, I know the REASON this is happening .....  mod_jk2's code defines:

#define JK_WORKER_FILE_DEF ("${serverRoot}/conf/workers2.properties") in several places, and an apxs build of mod_jk2 is grabbing "prefix: /usr" for the ServerRoot, because I use the Darwin/MacOS (config.layout) template when building apache2:

#   Darwin/Mac OS Layout u
<Layout Darwin?
   prefix:        /usr
   exec_prefix:   ${prefix}
   bindir:        ${exec_prefix}/bin
   sbindir:       ${exec_prefix}/sbin
   libdir:        ${exec_prefix}/lib
   libexecdir:    ${exec_prefix}/libexec+
   mandir:        ${prefix}/share/man
   datadir:       /Library/WebServer
   sysconfdir:    /etc+
   installbuilddir: ${prefix}/share/httpd/build
   errordir:      ${prefix}/share/httpd/error
   iconsdir:      ${prefix}/share/httpd/icons
   htdocsdir:     ${datadir}/Documents
   manualdir:     /Library/WebServer/Documents/docs/apache2
   cgidir:        ${datadir}/CGI-Executables
   includedir:    ${prefix}/include+
   localstatedir: /var
   runtimedir:    ${localstatedir}/run
   logfiledir:    ${localstatedir}/log+
   proxycachedir: ${runtimedir}/proxy
</Layout>

its seems to be MISSING/IGNORING the     "sysconfdir:    /etc+" .....

MY QUESTION IS:

where would I set the config file location default so that mod_jk2 picks-up/finds workers2.properties in "/etc/apache2" rather than defaulting to /usr/conf"?

thanks,

blakers
_______________________________________________
unix-porting mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/unix-porting
Do not post admin requests to the list. They will be ignored.





Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.