Results 1 to 6 of 6
On a Suse Linux 10.1 server, with Apache2 I am trying to setup Tomcat5 (connector with Apache2) to run web applicatons.
I do follow the Apache Tomcat Connector - webserver ...
- 03-14-2007 #1
Apache - tomcat connection on Suse Lnux
On a Suse Linux 10.1 server, with Apache2 I am trying to setup Tomcat5 (connector with Apache2) to run web applicatons.
I do follow the Apache Tomcat Connector - webserver HOW-TO, but have errors.
1) Java and Tomcat installed from Suse repository via YAST.
2) mod_jk.so downloaded and moved to /usr/lib/apache2
3) /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
...
4) in /etc/apache2/httpd.con file added last line
Include /usr/share/tomcat5/conf/jk/mod_jk.conf-auto
5) /ets/tomcat5/base/server.xml modified as follows:
<Listener className="org.apache.catalina.mbeans.ServerLifecy cleListener"
debug="0"/>
<Listener className="org.apache.catalina.mbeans.GlobalResour cesLifecycleListener"
debug="0"/>
<Listener className="org.apache.jk.config.ApacheConfig"
modJk="/usr/lib/apache2/mod_jk.so" />
After this, Tomcat restarted with error 7 and log
files
start.log:
Using CATALINA_BASE: /srv/www/tomcat5/base/
Using CATALINA_HOME: /usr/share/tomcat5
Using CATALINA_TMPDIR: /srv/www/tomcat5/base//temp
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.add RepositoryInternal(StandardClassLoader.java:957)
at org.apache.catalina.loader.StandardClassLoader.<in it>(StandardClassLoader.java:153)
at org.apache.catalina.startup.ClassLoaderFactory.cre ateClassLoader(ClassLoaderFactory.java:207)
at org.apache.catalina.startup.Bootstrap.createClassL oader(Bootstrap.java:163)
at org.apache.catalina.startup.Bootstrap.initClassLoa ders(Bootstrap.java:104)
at org.apache.catalina.startup.Bootstrap.init(Bootstr ap.java:196)
at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.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.add RepositoryInternal(StandardClassLoader.java:944)
... 6 more
file servlet-api.jar exists in
/usr/lib/java/common/lib/servlet-api.jar
/usr/share /tomcat5/common/lib/servlet-api.jar
Thank you for help
- 03-14-2007 #2
just a wild guess are you sure you have the right version of java??
- 03-15-2007 #3From YAST:
Originally Posted by gogalthorp
java-1_5_0-sun update 8
java-1_5_0-sun-devel
servletapi4 4.0.4
jakarta-commons-launcher 0.9
tomcat5 5.0.30
tamcat-apparmor 2.0
struts-webapps-tomcat5 1.2.4
pm
- 03-15-2007 #4
I don't know, do all those things go together??
- 03-15-2007 #5It seems to me that they have been required, and installed, by Tomcat.
Originally Posted by gogalthorp
The installation has been done from:
download.opensuse.org
How shoulb be the installation in your opinion?
Thanx
- 03-15-2007 #6
No idea. I just suggested you research it and see if all the versions match.


Reply With Quote