File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Problem in configuring tomcat and apache Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Problem in configuring tomcat and apache" Watch "Problem in configuring tomcat and apache" New topic
Author

Problem in configuring tomcat and apache

Joseph Bashir
Ranch Hand

Joined: Jun 16, 2004
Posts: 41
I am configuring tomcat and apache through mod_jk on Linux. In the server.xml file in /TOMCAT_HOME/conf, I have added this line:
<Listener className="org.apache.jk.config.ApacheConfig"
modJk="/TOMCAT_HOME/mod_jk/mod_jk.so" />

And when I restart the tomcat, I get this error:
Caused by: java.lang.RuntimeException: Unable to create path to config file:
/usr/local/tomcat/apache-tomcat-5.5.15/conf/auto/mod_jk.conf


Here is what's in 'catalina.out'
--------------------------------------------------------------------------
usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ] { start | stop }
Sep 14, 2006 11:11:02 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/default/jre/lib/i386/client:/usr/java/default/jre/lib/i386
Sep 14, 2006 11:11:02 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 801 ms
Sep 14, 2006 11:11:02 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Sep 14, 2006 11:11:02 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.15
Sep 14, 2006 11:11:02 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
INFO [main] (LoadQuartzServlet.java:108) - Working?...
INFO [main] (SchedulerWrapper.java:72) - ------- Starting up -----------------------
INFO [main] (SimpleThreadPool.java:253) - Job execution threads will use class loader of thread: main
INFO [main] (RAMJobStore.java:143) - RAMJobStore initialized.
INFO [main] (StdSchedulerFactory.java:919) - Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
INFO [main] (StdSchedulerFactory.java:923) - Quartz scheduler version: 1.4.5
INFO [main] (QuartzScheduler.java:370) - Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
INFO [main] (SchedulerWrapper.java:84) - ------- Startup complete ------------------
INFO [main] (PublishingEnvironment.java:83) - Did not load publishing configuration from publisher.xconf (No such file or directory: /../lenya/lenya/pubs/blog/config/publishing/publisher.xconf). That means you can't access all PublishingEnvironment parameters and you should only use the AntTask. But don't panic, this file has been DEPRECATED.
INFO [main] (LoadQuartzServlet.java:110) - OK
Sep 14, 2006 11:11:07 AM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(/../WEB-INF/lib/servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Sep 14, 2006 11:11:07 AM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
Sep 14, 2006 11:11:07 AM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
Sep 14, 2006 11:11:08 AM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='resources.ApplicationResources', returnNull=true
java.lang.reflect.InvocationTargetException
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:585)
at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)
Caused by: java.lang.reflect.InvocationTargetException
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:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
... 5 more
Caused by: java.lang.RuntimeException: Unable to create path to config file :/usr/local/tomcat/apache-tomcat-5.5.15/conf/auto/mod_jk.conf
at org.apache.jk.config.BaseJkConfig.getConfigFile(BaseJkConfig.java:428)
at org.apache.jk.config.ApacheConfig.initProperties(ApacheConfig.java:229)
at org.apache.jk.config.BaseJkConfig.execute(BaseJkConfig.java:133)
at org.apache.jk.config.BaseJkConfig.lifecycleEvent(BaseJkConfig.java:124)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
... 10 more
--------------------------------------------------------------------------
Any idea?
 
Consider Paul's rocket mass heater.
 
subject: Problem in configuring tomcat and apache
 
Similar Threads
unable to start my tomcat server properly
returnNull=true
jk2 in tomcat + iis configuration
Tomcat Error hangs Server
Tomcat Error