Find the answer to your Linux question:
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 ...
  1. #1
    Just Joined! dianelane's Avatar
    Join Date
    Jul 2006
    Posts
    6

    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

  2. #2
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,105
    just a wild guess are you sure you have the right version of java??

  3. #3
    Just Joined! dianelane's Avatar
    Join Date
    Jul 2006
    Posts
    6
    Quote Originally Posted by gogalthorp
    just a wild guess are you sure you have the right version of java??
    From YAST:
    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

  4. #4
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,105
    I don't know, do all those things go together??

  5. #5
    Just Joined! dianelane's Avatar
    Join Date
    Jul 2006
    Posts
    6
    Quote Originally Posted by gogalthorp
    I don't know, do all those things go together??
    It seems to me that they have been required, and installed, by Tomcat.
    The installation has been done from:
    download.opensuse.org

    How shoulb be the installation in your opinion?
    Thanx

  6. #6
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,105
    No idea. I just suggested you research it and see if all the versions match.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...