Announcement

Collapse
No announcement yet.

Apache mod_jk

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    apache mod_jk not listening

    I am running the latest version of ubuntu and have finished loading all per the documentation. I think I may have a problem with the apache mod_jk. When I try to login in I get error 503 server temporarily unavailable. I went to the link in previous posting and I am getting the following message.

    Service Temporarily Unavailable

    The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

    I checked my log files for apache and for the mod_jk.log it states the following.

    > [Tue Mar 06 16:00:19 2007] [13527:0000] [error] ajp_service::jk_ajp_common.c (1
    > 794): Error connecting to tomcat. Tomcat is probably not started or is listening
    > on the wrong port. worker=ajp13_worker failed

    I created the ox.conf file and checked the workers properties file and all seemed correct. jk.load is also listed under mods-enabled folder.

    Comment


    • #17
      Check with
      Code:
      netstat -atp | grep 8009
      if the groupware is running and listening on the AJP port 8009.

      Comment


      • #18
        The netstat command comes back with nothing. I guess it is not listening. I checked running services and it shows the following
        root 19187 17778 7 10:08 pts/0 00:00:01 /usr/bin/java -ms50m -mx50m -Djava.awt.headless=true -Dopenexchange.propfile=/opt/open-xchange/etc/groupware/
        ?

        Comment


        • #19
          Sorry to revisit this issue but I still have not been able to resolve it. Does anyone have any ideas why this is happening.
          When logging into gui I get
          Service Temporarily Unavailable
          The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

          Any help would be greatly appreciated!

          Comment


          • #20
            install libapache2-mod-jk

            please install libapache2-mod-jk
            apt-get install libapache2-mod-jk

            vi /etc/apache2/conf.d/ox.conf

            # Where to find workers.properties. We will create this file later in the tutorial.
            JkWorkersFile /etc/apache2/workers.properties
            # Where to put jk logs.
            JkLogFile /var/log/apache2/mod_jk.log
            # Set the jk log level [debug/error/info]
            JkLogLevel error
            # Select the log format
            JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
            # JkRequestLogFormat set the request format
            JkRequestLogFormat "%w %V %T"
            # This points to our servlets we install later
            JkMount /ajax/* ajp13
            JkMount /servlet/* ajp13


            vi /etc/libapache2-mod-jk/workers.properties

            # workers.properties -
            workers.tomcat_home=/usr/share/tomcat4
            workers.java_home=/usr/lib/j2sdk1.5-sun

            ps=/

            worker.list=ajp13_worker

            worker.ajp13_worker.port=8009
            worker.ajp13_worker.host=localhost
            worker.ajp13_worker.type=ajp13

            worker.ajp13_worker.lbfactor=1

            worker.loadbalancer.type=lb
            worker.loadbalancer.balanced_workers=ajp13_worker

            and final restart your apache2
            /etc/init.d/apache2 restart

            if you still have questions ,please email to pqiu@neuros.com.cn. Thanks.

            Comment


            • #21
              Originally posted by ap5000 View Post
              I am running the latest version of ubuntu and have finished loading all per the documentation. I think I may have a problem with the apache mod_jk. When I try to login in I get error 503 server temporarily unavailable. I went to the link in previous posting and I am getting the following message.

              Service Temporarily Unavailable

              The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

              I checked my log files for apache and for the mod_jk.log it states the following.

              > [Tue Mar 06 16:00:19 2007] [13527:0000] [error] ajp_service::jk_ajp_common.c (1
              > 794): Error connecting to tomcat. Tomcat is probably not started or is listening
              > on the wrong port. worker=ajp13_worker failed

              I created the ox.conf file and checked the workers properties file and all seemed correct. jk.load is also listed under mods-enabled folder.
              I get the same error, all seems running fine but in real it does not.

              any idea somebody?

              edit:
              i found some log information

              Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
              at java.lang.ClassLoader.defineClass1(Native Method)
              at java.lang.ClassLoader.defineClass(ClassLoader.java :620)
              at java.security.SecureClassLoader.defineClass(Secure ClassLoader.java:124)
              at java.net.URLClassLoader.defineClass(URLClassLoader .java:260)
              at java.net.URLClassLoader.access$100(URLClassLoader. java:56)
              at java.net.URLClassLoader$1.run(URLClassLoader.java: 195)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:268)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:2 51)
              at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:319)
              at org.apache.jcs.engine.control.CompositeCacheManage r.configure(CompositeCacheManager.java:300)
              at org.apache.jcs.engine.control.CompositeCacheManage r.configure(CompositeCacheManager.java:255)
              at com.openexchange.cache.Configuration.configure(Con figuration.java:122)
              at com.openexchange.cache.Configuration.load(Configur ation.java:99)
              at com.openexchange.database.AssignmentStorage.init(A ssignmentStorage.java:245)
              at com.openexchange.database.DatabaseInit.init(Databa seInit.java:83)
              at Starter.<init>(Starter.java:132)
              at ComfireServer.main(ComfireServer.java:62)


              what does this mean?
              Last edited by Guest; 03-14-2007, 11:11 AM.

              Comment


              • #22
                This error usually crops up when you use an older java vm to load a newer class. Say you compile something with java 1.5 and try to start it with java 1.4 then you get this error.

                What is your java -version ?

                Comment


                • #23
                  Output of java -version:

                  Code:
                  java version "1.5.0_10"
                  Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
                  Java HotSpot(TM) Client VM (build 1.5.0_10-b03, mixed mode, sharing)
                  I am using debian etch with sun-jdk package from apt-get.

                  Have I do use JDK6?

                  Comment


                  • #24
                    With java 1.5 you should be fine. The question remains whether the OX lookup mechanism finds the correct java (though I suppose it would). In a new shell, could you try:

                    . /opt/open-xchange/etc/groupware/oxfunctions.sh
                    ox_set_JAVA_BIN
                    $JAVA_BIN -version

                    ?

                    Comment


                    • #25
                      how to config the apache mod-jk for ox on debian

                      Originally posted by portal_man View Post
                      I have download almost everything to install openxchange but the mod_jk still a problem. The binaries on the apache page : http://tomcat.apache.org/connectors-doc/ are not available. And if I download a version of another site, I have dependency problems.

                      How can I do ?
                      Hacki, you can config the apache2 mod-jk on debian like following:

                      first install the libapache2_mod_jk2 package:
                      apt-get install libapache2-mod-jk
                      if you have install the libapache2_mod_jk2, please remove it:
                      apt-get remove --purge libapache2_mod_jk2

                      then edit this file: /etc/apache2/conf.d/ox.conf

                      # Where to find workers.properties. We will create this file later in the tutorial.
                      #JkWorkersFile /etc/apache2/workers.properties
                      JkWorkersFile /etc/libapache2-mod-jk/workers.properties
                      # Where to put jk logs.
                      JkLogFile /var/log/apache2/mod_jk.log
                      # Set the jk log level [debug/error/info]
                      JkLogLevel error
                      # Select the log format
                      JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
                      # JkRequestLogFormat set the request format
                      JkRequestLogFormat "%w %V %T"
                      # This points to our servlets we install later
                      JkMount /ajax/* ajp13_worker
                      JkMount /servlet/* ajp13_worker


                      final edit this file : /etc/libapache2-mod-jk/workers.properties


                      #workers.tomcat_home=/usr/share/tomcat4
                      #workers.java_home should config according your java_home path
                      workers.java_home=/usr/lib/jvm/java-1.5.0-sun
                      ps=/
                      worker.list=ajp13_worker
                      worker.ajp13_worker.port=8009
                      worker.ajp13_worker.host=localhost
                      worker.ajp13_worker.type=ajp13
                      worker.ajp13_worker.lbfactor=1
                      worker.loadbalancer.type=lb
                      worker.loadbalancer.balanced_workers=ajp13_worker

                      final final restart your apache2
                      /etc/init.d/apache2 restart

                      now , you mod_jk for apache2 is ok.
                      Notice: workers.java_home according your java_home patch config

                      Comment

                      Working...
                      X