On a Suse linu 10 server, with Apache2 I am trying to setup Tomcat5 (coonector with Apache2) to run web applicatons.
I do foolow the Apache Tomcat Coonector - webserver how-to, but have errors.
Java and Tomcat installed from Suse repository via YAst.
mod_jk.so downloaded and stored in /usr/lib/apache2
/etc/tomcat5/base/workers.properties modified as follows
...
#workers.tomcat_home=/var/tomcat3
workers.tomcat_home=/usr/share/tomcat5
#
# workers.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
#workers.java_home=/opt/IBMJava2-13
workers.java_home=/usr/lib/java
...
in /etc/apache2/httpd.con file added last line
Include /usr/share/tomcat5/conf/jk/mod_jk.conf-auto
/ets/tomcat5/base/server.xml modified as follows:
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
debug="0"/>
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
debug="0"/>
<Listener className="org.apache.jk.config.ApacheConfig"
modJk="/usr/lib/apache2/mod_jk.so" />
tomcat restarted with error 7 and log
files
start.log:
Using CATALINA_BASE: /srv/Using CATALINA_HOME: /usr/share/tomcat5
Using CATALINA_TMPDIR: /srv/Using JAVA_HOME: /usr/lib/jvm/java
catalina.out:
Bootstrap: Class loader creation threw exception
java.lang.IllegalArgumentException: addRepositoryInternal: repository='file:/usr/share/tomcat5/common/lib/servlet-api.jar'
at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:957)
at org.apache.catalina.loader.StandardClassLoader.<init>(StandardClassLoader.java:153)
at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:207)
at org.apache.catalina.startup.Bootstrap.createClassLoader(Bootstrap.java:163)
at org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java:104)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:196)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:402)
Caused by: java.util.zip.ZipException: No such file or directory
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:203)
at java.util.jar.JarFile.<init>(JarFile.java:132)
at java.util.jar.JarFile.<init>(JarFile.java:70)
at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:944)
... 6 more
Could you help me?
thank you
I do foolow the Apache Tomcat Coonector - webserver how-to, but have errors.
Java and Tomcat installed from Suse repository via YAst.
mod_jk.so downloaded and stored in /usr/lib/apache2
/etc/tomcat5/base/workers.properties modified as follows
...
#workers.tomcat_home=/var/tomcat3
workers.tomcat_home=/usr/share/tomcat5
#
# workers.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
#workers.java_home=/opt/IBMJava2-13
workers.java_home=/usr/lib/java
...
in /etc/apache2/httpd.con file added last line
Include /usr/share/tomcat5/conf/jk/mod_jk.conf-auto
/ets/tomcat5/base/server.xml modified as follows:
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
debug="0"/>
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
debug="0"/>
<Listener className="org.apache.jk.config.ApacheConfig"
modJk="/usr/lib/apache2/mod_jk.so" />
tomcat restarted with error 7 and log
files
start.log:
Using CATALINA_BASE: /srv/Using CATALINA_HOME: /usr/share/tomcat5
Using CATALINA_TMPDIR: /srv/Using JAVA_HOME: /usr/lib/jvm/java
catalina.out:
Bootstrap: Class loader creation threw exception
java.lang.IllegalArgumentException: addRepositoryInternal: repository='file:/usr/share/tomcat5/common/lib/servlet-api.jar'
at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:957)
at org.apache.catalina.loader.StandardClassLoader.<init>(StandardClassLoader.java:153)
at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:207)
at org.apache.catalina.startup.Bootstrap.createClassLoader(Bootstrap.java:163)
at org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java:104)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:196)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:402)
Caused by: java.util.zip.ZipException: No such file or directory
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:203)
at java.util.jar.JarFile.<init>(JarFile.java:132)
at java.util.jar.JarFile.<init>(JarFile.java:70)
at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:944)
... 6 more
Could you help me?
thank you