• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Apache2 + Tomcat5.0 + mod_jk

Hallo,

ich hab eine kleines Problem, und zwar läuft auf einem SLES9 eine Apache + Tomcat5, verbunden sind die
beiden über den JK Connector.
Nun gibt es eine Funktion, in welcher eine Excel-Datei gebaut wird. Rufe ich diese über den Apache auf
dauerts eine Weile und dann kommt die Fehlermeldung "Webseite kann nicht angezeigt werden".
Geh ich doch direkt über Port 8080 auf den Tomcat und rufe die Funktion dort auf, dauerts ebenso eine
Weile und danach kommt auch die Datei.

Nun geh ich davon aus, dass das Problem beim Connector liegt. Timeouts hab ich keine eingestellt, von
daher sind alle auf "default", also wird unbegrenzt gewartet.

Pakete:
apache2-2.0.59-1.6
apache2-jakarta-tomcat-connectors-5.0.19-29.8
jakarta-tomcat-5.0.19-29.8

Schonmal danke für die Hilfe, vorab.

Grüsse
 
OP
L

Lammbock1978

Newbie
Keiner ne Idee????????????????

Auf dem Testsystem läuft es mit den gleichen Versionen....hab keinen Plan mehr
 
OP
L

Lammbock1978

Newbie
mod_jk.log meldet folgendes

[jk_ajp_common.c (1157)]: ERROR sending data to client. Connection aborted or network problems

ich denke auch da wird das Problem liegen, nur kann ich mit der Fehlermeldung nichts weiter anfangen
 
OP
L

Lammbock1978

Newbie
Keine Firewall und auch kein SELinux.

jk.conf
Code:
<IfModule mod_jk.c>

    JkWorkersFile /etc/tomcat/portal/workers.properties
    JkLogFile /var/log/tomcat/portal/mod_jk.log

    # Log level to be used by mod_jk
    #JkLogLevel error
    JkLogLevel debug

    # The following line makes apache aware of the location of
    # the /servlets-examples context
    Alias /servlets-examples "/srv/www/tomcat/portal/webapps/servlets-examples"
    <Directory "/srv/www/tomcat/portal/webapps/servlets-examples">
        Options Indexes FollowSymLinks
        allow from all
    </Directory>


    # The following line makes apache aware of the location of
    # the /BsrKundenportal context
    Alias /BsrKundenportal "/srv/www/tomcat/portal/webapps/xxx"
    <Directory "/srv/www/tomcat/portal/webapps/xxx">
        Options Indexes FollowSymLinks
        allow from all
    </Directory>

    # The following line makes apache aware of the location of
    # the /BsrSperrmuell context
    Alias /BsrSperrmuell "/srv/www/tomcat/portal/webapps/xxx"
    <Directory "/srv/www/tomcat/portal/webapps/xxx">
        Options Indexes FollowSymLinks
        allow from all
    </Directory>

    # The following line makes apache aware of the location of
    # the /jsp-examples context
    Alias /jsp-examples "/srv/www/tomcat/xxx/webapps/jsp-examples"
    <Directory "/srv/www/tomcat/xxx/webapps/jsp-examples">
        Options Indexes FollowSymLinks
        allow from all
    </Directory>

    # The following line mounts all JSP files and the /servlet/ uri to tomcat
    JkMount /servlets-examples/servlet/* ajp13
    JkMount /jsp-examples/*.jsp ajp13
    JkMount /xxx/* ajp13
    JkMount /xxx/* ajp13

   # The following line prohibits users from directly accessing WEB-INF
    <Location "/jsp-examples/WEB-INF/">
        AllowOverride None
        deny from all
    </Location>
    <Location "/xxx/WEB-INF/">
        AllowOverride None
        deny from all
    </Location>
    <Location "/xxx/WEB-INF/">
        AllowOverride None
        deny from all
    </Location>
    <Location "/servlets-examples/WEB-INF/">
        AllowOverride None
        deny from all
    </Location>

worker.properties

Code:
worker.list=ajp13

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

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13
 
Oben