Announcement

Collapse
No announcement yet.

Apache mod_jk

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

  • peterking756
    Guest replied
    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

    Leave a comment:


  • Francisco Laguna
    Guest replied
    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

    ?

    Leave a comment:


  • TheInvisible
    Guest replied
    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?

    Leave a comment:


  • Francisco Laguna
    Guest replied
    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 ?

    Leave a comment:


  • TheInvisible
    Guest replied
    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.

    Leave a comment:


  • peterking756
    Guest replied
    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.

    Leave a comment:


  • ap5000
    Guest replied
    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!

    Leave a comment:


  • ap5000
    Guest replied
    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/
    ?

    Leave a comment:


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

    Leave a comment:


  • ap5000
    Guest replied
    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.

    Leave a comment:


  • Ben Pahne
    Guest replied
    Originally posted by portal_man View Post
    Perfect.

    - My worker properties was hidden here : /etc/tomcat/base/workers.properties
    - The file I've edit was : /etc/apache2/conf.d/ox.conf (and not /etc/apache2/conf.d has the tutorial said - it's a folder)
    - My worker list was worker.list=ajp12, ajp13
    - I edit java home as workers.java_home=/usr/java/jdk1.5.0

    I launched Apach and I get "Access forbidden! You don't have permission to access the requested directory". In the past few days I've install the commercial version of openXchange. When I removed it, I think it have also removed the index.html in /srv/www/htdocs.
    When I had it again in this directory, it worked again!

    All the pre-install is done. I try to install openXchange community now.

    Thanks a lot!
    you can't use tomcat with the new open-xchange server! shut it down. make sure apache runs and then try to open http://yourserver/ajax/

    then tell me what error you get.

    ps: the tutorial said that /etc/apache/conf.d is a directory. read it carefully.

    Leave a comment:


  • portal_man
    Guest replied
    Perfect.

    Just forgive me, I forget to read this part of the tutorial (all problems are resolve by it!).

    - My worker properties was hidden here : /etc/tomcat/base/workers.properties
    - The file I've edit was : /etc/apache2/conf.d/ox.conf (and not /etc/apache2/conf.d has the tutorial said - it's a folder)
    - My worker list was worker.list=ajp12, ajp13
    - I edit java home as workers.java_home=/usr/java/jdk1.5.0

    I launched Apach and I get "Access forbidden! You don't have permission to access the requested directory". In the past few days I've install the commercial version of openXchange. When I removed it, I think it have also removed the index.html in /srv/www/htdocs.
    When I had it again in this directory, it worked again!

    All the pre-install is done. I try to install openXchange community now.

    Thanks a lot!
    Last edited by Guest; 03-05-2007, 06:26 PM.

    Leave a comment:


  • Ben Pahne
    Guest replied
    Originally posted by portal_man View Post
    Thanks a lot!

    The install works but, when I try to start apach2 I got "can't find the workers file specified". Google seems to point out a mod_jk problem but don't resole it.

    What can I do ?
    you define the workers.properties. you set it in the ox.conf!

    Leave a comment:


  • portal_man
    Guest replied
    Originally posted by Marcus Klein View Post
    The package inside a SuSE distribution for mod_jk is called

    Code:
    jakarta-tomcat-connectors
    Regards
    Thanks a lot!

    The install works but, when I try to start apach2 I got "can't find the workers file specified". Google seems to point out a mod_jk problem but don't resole it.

    What can I do ?
    Last edited by Guest; 03-05-2007, 05:35 PM.

    Leave a comment:


  • altariq
    Guest replied
    I installed it by synaptic paketmanagement and ubuntu installed 1.2.18
    I downloaded the newest version 1.2.21 but how can i install the .so-File?

    Leave a comment:

Working...
X