#1  
Old 14th June 2008, 03:17
xtine xtine is offline
Junior Member
 
Join Date: Jun 2008
Posts: 13
Thanks: 1
Thanked 1 Time in 1 Post
Default mod_jk setup problems

I followed this how-to to set up mod_jk on my server, but run into some issues - http://www.howtoforge.com/apache2_tomcat5_mod_jk_p2

My platform
OpenSuse 10.2
Apache 2.2
Tomcat 6.0.16
Jakarta-Tomcat Connector 1.2.26
ISPConfig 2.2.23

Problems
1) This line added to server.xml is creating a classnotfound exception when starting up tomcat. I see the error in my catalina.out log; and this exception causes Tomcat to not start. When the line in server.xml is commented out, I'm able to start Tomcat, and the auto config file is generated. How do I retrieve/install the missing class? I've already tried re-downloading and re-unpacking Tomcat and the connector; but the error is still there.

Line in server.xml
Quote:
<Listener className="org.apache.catalina.storeconfig.StoreCo nfigLifecycleListener"/>
Error in catalina.out
Quote:
Jun 12, 2008 5:48:06 PM org.apache.tomcat.util.digester.Digester startElement

SEVERE: Begin event threw exception
java.lang.ClassNotFoundException: org.apache.catalina.storeconfig.StoreConfigLifecyc leListener
2) After finishing all configurations and restarting apache, the following error is thrown by Apache. I'm no longer able to access www.example.com, though I was able to before. [I've substituted my domain name with www.example.com.] This error is seen when Apache starts/stops.

Quote:
[Thu Jun 12 21:13:24 2008] [error] VirtualHost www.example.com:0 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
Once I remove the include in httpd.conf for mod_jk.conf (and the corresponding JkOptions, etc.), I'm able to access www.example.com again.

This is the content of my auto generated mod_jk.conf file. I've checked that the paths are correct.
Quote:
########## Auto generated on Thu Jun 12 21:13:19 PDT 2008##########

<IfModule !mod_jk.c>
LoadModule jk_module "/usr/lib/apache2/mod_jk.so"
</IfModule>

JkWorkersFile "/etc/apache2/workers.properties"
JkLogFile "/usr/local/apache-tomcat/logs/mod_jk.log"

JkLogLevel emerg



<VirtualHost localhost>
ServerName localhost

JkMount /examples ajp13
JkMount /examples/* ajp13

JkMount /host-manager ajp13
JkMount /host-manager/* ajp13

JkMount /docs ajp13
JkMount /docs/* ajp13

JkMount /manager ajp13
JkMount /manager/* ajp13
</VirtualHost>

<VirtualHost www.example.com>
ServerName www.example.com

JkMount /stats ajp13
JkMount /stats/* ajp13

JkMount /error ajp13
JkMount /error/* ajp13
</VirtualHost>
Any ideas where I went wrong? Is this issue related to the 1st problem about the StoreConfigLifecycleListener class?
Reply With Quote
Sponsored Links
  #2  
Old 14th June 2008, 12:41
xtine xtine is offline
Junior Member
 
Join Date: Jun 2008
Posts: 13
Thanks: 1
Thanked 1 Time in 1 Post
 
Default

I figured out how to fix my problem #2. Yay! Here's basically how I fixed it.

- Name the worker consistently across the workers.properties file and the mod_jk.conf file. Before, it's sometimes referred to as worker1 and sometimes as ajp13.

- I had to customize the auto-generated mod_jk.conf; I moved it to /etc/apache2/conf.d directory so it'll just auto load without an additional line in httpd.conf. Cut all directives within the virtual host area and paste into the Apache Directives box for the virtual host on ISPConfig, so that it is contained within the ISPConfig generated vhost file.

I had gotten the "mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results" error because the same virtual host was defined in the vhost file and /usr/local/apache-tomcat/conf/auto/mod_jk.conf file; in the vhost file, it is defined with port 80, but defined without any port number in the mod_jk.conf file. Now that all needed directives are in ISPConfig, I only have the virtual host defined in one place.

I am just ignoring my problem #1 for now by commenting out the Listener line in server.xml that calls the class that's not found. I'm not really sure what org.apache.catalina.storeconfig.StoreCo nfigLifecycleListener is used for yet. If you figure out how to get this class loaded, please let me know. Thanks!
Reply With Quote
The Following User Says Thank You to xtine For This Useful Post:
mtuser (28th January 2010)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Courier and IMAP problems with Perfect SuSE 10.1 setup Rebellion HOWTO-Related Questions 2 18th December 2006 15:52
Perfect Setup FC4 + Postfix problems pjcast Installation/Configuration 1 12th August 2006 02:29
ISPConfig + Perfect Setup Ubuntu 5.10 + Smtp SPAM problems lyndros Installation/Configuration 11 15th April 2006 18:07
Mandriva 10.2 Perfect Setup Install Problems... ctroyp Installation/Configuration 12 30th December 2005 17:04
The Perfect Setup Suse 9.3 - Postfix problems new_bee05 HOWTO-Related Questions 20 25th November 2005 03:30


All times are GMT +2. The time now is 03:58.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.