PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Problem mit Tomcat4 bei Apache2 auf Debian Sarge



MrMind
12.10.05, 18:08
Moinsen,

mal wieder ich ;)

Habe ein kleines Problem.

Mein Internetserver läuft mit Debian Sarge und Apache2 (2.0.59).
Wollte nun Tomcat installieren. Bei apt-cache search tomcat gab es nur die 4er Version. Mir ist erstmal schnuppe welche Version ich verwende, daher habe ich die stabilen Version von meiner Distri genommen.

Auch die libapache2-mod-jk2 habe ich installiert.
Java 2 habe ich acuh installiert.

Nun wenn ich die jk2.load aus dem Ordner /etc/apache2/mods-enable öffne und sehe ich ja woher er die mod_jk2.so laden will, ist auch in diesem Ordner vorhanden.

Nun habe ich mir auch die jk2.conf angeguckt und die Datei workers2.properties in den apache2-Ordner kopiert (/etc/apache2/) und die auskommentierte Zeile dekommentiert.

Wenn ich nun ein Restart des Apache2 durchführe hagelt es an Hinweisen und Errors.

Hier mal diese Hinweise:


[Thu Oct 13 01:09:50 2005] [notice] config.update(): done logger
[Thu Oct 13 01:09:50 2005] [notice] config.update(): done config:
[Thu Oct 13 01:09:50 2005] [notice] config.update(): done uriMap:
[Thu Oct 13 01:09:50 2005] [notice] config.update(): done shm:
[Thu Oct 13 01:09:50 2005] [notice] config.update(): done workerEnv:
[Thu Oct 13 01:09:50 2005] [notice] config.update(): done lb:lb
[Thu Oct 13 01:09:50 2005] [notice] config.update(): done lb:lb_1
[Thu Oct 13 01:09:50 2005] [notice] config.update(): done channel.socket:localhost:8009
[Thu Oct 13 01:09:50 2005] [notice] config.update(): done channel.socket:localhost:8019
[Thu Oct 13 01:09:50 2005] [notice] config.update(): done channel.un:/opt/33/work/jk2.socket
[Thu Oct 13 01:09:50 2005] [error] env.createBean2(): Factory error creating channel.jni:jni ( channel.jni, jni)
[Thu Oct 13 01:09:50 2005] [error] config.update(): Can't create channel.jni:jni[Thu Oct 13 01:09:50 2005] [notice] config.update(): done status:
[Thu Oct 13 01:09:50 2005] [error] env.createBean2(): Factory error creating vm: ( vm, )
[Thu Oct 13 01:09:50 2005] [error] config.update(): Can't create vm:
[Thu Oct 13 01:09:50 2005] [error] env.createBean2(): Factory error creating worker.jni:onStartup ( worker.jni, onStartup)
[Thu Oct 13 01:09:50 2005] [error] config.update(): Can't create worker.jni:onStartup
[Thu Oct 13 01:09:50 2005] [error] env.createBean2(): Factory error creating worker.jni:onShutdown ( worker.jni, onShutdown)
[Thu Oct 13 01:09:50 2005] [error] config.update(): Can't create worker.jni:onShutdown
[Thu Oct 13 01:09:50 2005] [notice] config.update(): done uri:/jkstatus/*
[Thu Oct 13 01:09:50 2005] [notice] config.update(): done uri:127.0.0.1:8003
[Thu Oct 13 01:09:50 2005] [notice] config.update(): done uri:127.0.0.1:8003/ex
[Thu Oct 13 01:09:50 2005] [notice] config.update(): done uri:/examples
[Thu Oct 13 01:09:50 2005] [notice] config.update(): done uri:/examples1/*
[Thu Oct 13 01:09:50 2005] [notice] config.update(): done uri:/examples/servlet/*
[Thu Oct 13 01:09:50 2005] [notice] config.update(): done uri:/examples/*.jsp
[Thu Oct 13 01:09:50 2005] [notice] config.update(): done uri:/examples/*
[Thu Oct 13 01:09:50 2005] [notice] config.update(): done uri:/examples/servlet/HelloW
.

Ich habe schon gesucht im Netz, aber keine gescheite Anleitung gefunden.

Habe auch schon einiges getestet, aber ich würde weiter kommen, wenn ich die Meldungen besser verstehen würde.

Hoffe doch mal, das mir da jemand weiterhelfen kann.

Mfg
MrMind

heatwalker
12.10.05, 18:27
Vielleicht solltest du das Paket apache2-mpm-worker installieren.

MrMind
12.10.05, 18:32
Danke für den Tipp.

Habe, wie ich diesen Tipp gelesen habe, sofort apt-get install apache2-mpm-worker ausgeführt und dies installiert.

Als apt-get Apache2 wieder starten wollte, kamen die selben Fehlermeldungen.

Müsste ich da noch was konfigurieren? Habe mich mit den Modulen des Apache2 noch net komplett beschäftigt, lediglich mit denen wo ich normal arbeite (Rewrite, PHP, Userdir etc.)

Mfg
MrMind

heatwalker
12.10.05, 18:44
Hast du die workers2.properties wieder rausgeschmissen
und die Einstellungen rückgängig gemacht??

MrMind
12.10.05, 18:48
Nein habe ich nicht ;)

Wie gesagt, Tomcat ist für mich neuland ;)

Also die workers2.properties aus dem Apache2 zu löschen, kein Thema und mit den Veränderungen rückgängig zu machen, denke ich mal das du die jk2.conf meinst, diese wieder auf Ursprung zu setzen ;)

Wenn ja, mach ich sofort, aber in wie fern soll mir das apache2-mpm-worker Paket weiterhelfen, wenn ich Tomcat net durch die Module freischalte?

Oder enthält das Paket diese Einstellungen schon inklusive?

Wie schon gesagt, das mpm-worker Modul kenne ich nur vom hören und sagen ;)

Mfg
MrMind

heatwalker
12.10.05, 18:57
Also mein config für mod_jk sieht so aus

<IfModule mod_jk.c>

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

# Log level to be used by mod_jk
JkLogLevel error

JkMount /servlet/* ajp13
JkMount /umin/* ajp13
JkMount /oxadmin/* ajp13
JkMount /oxadmin ajp13

</IfModule>


.. und liegt in /etc/apache2/conf.d/

Vielleicht hilft dir das ja weiter.

MrMind
12.10.05, 19:02
Ok danke, ich werde mal testen ;)

Müsste die bei mir vielleicht mod_jk2.c net heißen, weil so eine Art Datei ist nicht vorhanden im Ordner /etc/apache2/conf.d

Evtl. schau ich mal, vielleicht liegt eine derartige Datei noch im tomcat-Ordner.

Ansonsten, wenn das auch net geht und keiner ne andere Info für mich hat, werde ich mal dieses Tut probieren:

http://www.unixag-zw.fh-kl.de/index.php?option=com_loudmouth&Itemid=129&task=topic&id=27

Mfg
MrMind

heatwalker
12.10.05, 19:08
Das war eigentlich nur auf den inhalt der Datei im Ordner /mod-enable bezogen.

Ich werd mal testweise den tomcat und apache2 in meiner deban installation
aufspielen. Dann kann ich das Problem vielleicht besser nachvollziehen.

MrMind
12.10.05, 19:10
Wäre super.

Ich denke mal in der Zeit werd ich mal das Tut probieren, wobei es vorraussetzt, das Tomcat manuell eingeführt wird und das war eigentlich nicht meine Absicht.

Wenn du (oder jemand anderes ;) ) ne Lösung zu den Deb-Paketen von Sarge haben, lasst es mich wissen, da ich lieber mit den Deb-Paketen arbeite als selber alles zu machen :D (wobei letztes auch seine Vorteile hat) ;)

Mfg
MrMind

heatwalker
12.10.05, 19:29
Hier nun die gute nachricht. Der apache2 startet bei mir astrein.
Nun aber die schlechte. Dafür startet mein Tomcat nicht :rolleyes:

Muss noch ein wenig testen. :cool:

MrMind
12.10.05, 19:37
Nur die Ruhe ;)

Teste grad das Tutorial durch, allerdings habe ich irgendwie Probleme globale Bash-Variablen zu exportieren.

Naja ich teste auch mal weiter ;)

Danke schonmal, das du dich darum bemühst ;)


Mfg
MrMind

heatwalker
12.10.05, 20:00
Nu ist es soweit. Es funktioniert.
Bei mir läuft sowohl der apache2 als auch der tomcat.

Was hab ich gemacht ...

apache2-mpm-worker (inkl. aller Abhänigkeiten von apt-get) installiert
tomcat4 installiert
tomcat4-webapps (notwendig, ohne lief er nicht) installiert

als nächstes bin ich nach /etc/default gewechselt und hab die
Datei "tomcat4" bearbeitet und den Eintrag


TOMCAT4_SECURITY=no
auskommentiert und auf no gesetzt.

Nun noch die workers.properties kopieren

cp /usr/share/doc/libapache2-mod-jk2/examples/workers2.properties.minimal /etc/apache2/workers2.properties

zum Schluss noch das auskommentieren in der /etc/apache2/mods-enable/jk2.conf

JkSet config.file /etc/apache2/workers2.properties ## Raute entfernt

nun sollte alles laufen. Bei mir funktioniert es jetzt jedenfalls ohne Probleme

MrMind
12.10.05, 20:17
Jo danke dir, soweit bekomme ich keine Fehlermeldungen mehr, allerdings lässt sich momentan mein tomcat net starten ;)

mach ich /etc/init.d/tomcat4 start

kommt dies hier:


/etc/init.d/tomcat4 start
Starting Tomcat 4.1 servlet engine using Java from /usr/java/current:

Mein Java-Pfad ist auch in /usr/java/current

Es kommt kein Zeilenumbruch danach, sondern mein Prompt wird direkt hinter der Ausgabe gesetzt. Bei einer Statusabfrage kommt folgendes:


/etc/init.d/tomcat4 status
Tomcat 4.1 servlet engine is not running.


Hatte vor dem Tutorial tomcat4 und tomcat4-webapps deinstalliert, den rest alles gelassen (also Apache2, apache2-mpm-worker, libapache2-mod-jk2).

Wenn ich nun noch checken könnte, warum er net startet wäre mir das ganz lieb ;)

Haste ne Ahnung wo die Logs gespeichert werden?

Danke dir aufjedenfall bis hier her ;) Macht net jeder und finde das total super ;)

Mfg
MrMind

heatwalker
12.10.05, 20:22
Die Logs sollten unter /var/log/tomcat4 liegen.

heatwalker
12.10.05, 20:32
Ich hab eben mal meine java-version gecheckt.
Bei mir hat apt kaffe und kaffe-common installiert.
Kann allerdings nicht genau sagen ob das was ausmacht.

Welches Java hast du denn installiert?

MrMind
12.10.05, 20:34
Jo vielen Dank.

Bin jetzt weiter gekommen ;)

Habe ein JRE von Java installiert, allerdings benötigt Tomcat ein SDK ;)

Muss ich mal wieder ein bissl mit lynx surfen ;)

Danke dir vielmals. Ich denke das mit dem Java-Problem bekomme ich alleine hin ;)


Mfg
MrMind

heatwalker
12.10.05, 20:36
OK, viel Spass noch :)

MrMind
12.10.05, 20:38
Jo danke den werd ich haben ;)

Vorallem weil ich schon seit bestimmt 3 Tagen mich mit Tomcat rumärgere :D

Dank dir, kann ich (wohl) endlich mit JSP mich beschäftigen :-)

heatwalker
12.10.05, 20:42
Man(n) muss auch mal Glück haben, wenn auf meinem läppi kein VMware installiert wäre,
wüsste ich nicht ob ich mal eben die ganze Software installiert hätte. (-:

So muss ich nur den Snapshot zurückspielen und gut ist. (-:

MrMind
12.10.05, 20:52
Jo auch was, aber ich mag kein VMware wobei es ganz praktisch sein kann ;)

so nächstes Problemchen.

Habe JDK 1.5.0 Update 5 runtergeladen und die .bin-Datei ausgeführt. Danach mein SymLink auf den neuen Ordner fixiert (/usr/java/current ist der Link). Nun noch in meiner Root-Bash JAVA_HOME exportiert und neu gestartet.

Sieht auf den ersten blick auch gut aus:


/etc/init.d/tomcat4 start
Starting Tomcat 4.1 servlet engine using Java from /usr/java/current: tomcat4.

Aber der schein trügt ;)

hier der auszug aus meiner LOG:


Using CATALINA_BASE: /var/lib/tomcat4
Using CATALINA_HOME: /usr/share/tomcat4
Using CATALINA_TMPDIR: /var/lib/tomcat4/temp
Using JAVA_HOME: /usr/java/current
12.10.2005 21:43:14 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8180
h1349:/var/log/tomcat4# cat catalina_2005-10-12.log
Using CATALINA_BASE: /var/lib/tomcat4
Using CATALINA_HOME: /usr/share/tomcat4
Using CATALINA_TMPDIR: /var/lib/tomcat4/temp
Using JAVA_HOME: /usr/java/current
12.10.2005 21:43:14 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8180
Starting service Tomcat-Standalone
Apache Tomcat/4.1
12.10.2005 21:43:16 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8180
12.10.2005 21:43:17 org.apache.jk.common.ChannelSocket init
INFO: Port busy 8009 java.net.BindException: Address already in use
12.10.2005 21:43:17 org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8010
12.10.2005 21:43:17 org.apache.jk.server.JkMain start
INFO: Jk running ID=1 time=2/140 config=/var/lib/tomcat4/conf/jk2.properties
StandardServer.await: create[8005]: java.net.BindException: Address already in use
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java :359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at org.apache.catalina.core.StandardServer.await(Stan dardServer.java:463)
at org.apache.catalina.startup.Catalina.start(Catalin a.java:472)
at org.apache.catalina.startup.Catalina.execute(Catal ina.java:350)
at org.apache.catalina.startup.Catalina.process(Catal ina.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:156)
Stopping service Tomcat-Standalone

und ein tomcat4 status bringt folgendes:


/etc/init.d/tomcat4 status
Tomcat 4.1 servlet engine is not running, but pid file exists.

Kannste damit auch noch was anfangen?

Wäre dir sehr dankbar.

mfg
MrMind

heatwalker
12.10.05, 21:21
Was mir in deinen logs fehlt ist die ID des Beanservers.
Wahrscheinlich haperts immer noch an Java.

Deinstallier das JDK mal und installiert mal folgende Pakete:

kaffe
kaffe-common
kaffe-pthreads

Sag mal bescheid was dann so läuft (-:

MrMind
12.10.05, 21:28
diese 3 Pakete waren schon installiert.

Was meinst du mit "so läuft"?

Mfg
MrMind

heatwalker
12.10.05, 21:35
Mit "so läuft" sollte heissen.... und?? funtionierts?? (-:

Setz JAVA_HOME auf /usr/lib/kaffe

und starte den apache und tomcat mal

MrMind
13.10.05, 00:58
Also habe das JAVA_HOME auf /usr/lib/kaffe gesetzt und auch den Apache2 neugestartet (Tomcat lief ja net ;) ) und nun bekomme ich folgende Meldungen:

catalina Logfile:


Using CATALINA_BASE: /var/lib/tomcat4
Using CATALINA_HOME: /usr/share/tomcat4
Using CATALINA_TMPDIR: /var/lib/tomcat4/temp
Using JAVA_HOME: /usr/lib/kaffe
Created MBeanServer with ID: [UID: 150799044,1129161245869,-32768]:h1349:1
13.10.2005 01:54:07 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8180
Starting service Tomcat-Standalone
Apache Tomcat/4.1
13.10.2005 01:54:11 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8180
13.10.2005 01:54:12 org.apache.jk.common.ChannelSocket init
INFO: Port busy 8009 java.net.BindException: Die Adresse wird bereits verwendet
13.10.2005 01:54:12 org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8010
13.10.2005 01:54:12 org.apache.jk.server.JkMain start
INFO: Jk running ID=1 time=1/85 config=/var/lib/tomcat4/conf/jk2.properties
StandardServer.await: create[8005]: java.net.BindException: Die Adresse wird bereits verwendet
java.net.BindException: Die Adresse wird bereits verwendet
at gnu.java.net.PlainSocketImpl.socketBind (PlainSocketImpl.java)
at gnu.java.net.PlainSocketImpl.bind (PlainSocketImpl.java:90)
at java.net.ServerSocket.bind (ServerSocket.java:239)
at java.net.ServerSocket.<init> (ServerSocket.java:183)
at org.apache.catalina.core.StandardServer.await (StandardServer.java:463)
at org.apache.catalina.startup.Catalina.start (Catalina.java:472)
at org.apache.catalina.startup.Catalina.execute (Catalina.java:350)
at org.apache.catalina.startup.Catalina.process (Catalina.java:129)
at java.lang.reflect.Method.invoke0 (Method.java)
at java.lang.reflect.Method.invoke (Method.java:255)
at org.apache.catalina.startup.Bootstrap.main (Bootstrap.java:156)
Stopping service Tomcat-Standalone
13.10.2005 01:54:12 org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8180

und nun habe ich auch eine weitere Logfile bekomme
localhost Logfile:


2005-10-13 01:54:08 WebappLoader[/tomcat-docs]: Deploying class repositories to work directory /var/lib/tomcat4/work/Standalone/localhost/tomcat-docs
2005-10-13 01:54:08 StandardManager[/tomcat-docs]: Seeding random number generator class java.security.SecureRandom
2005-10-13 01:54:09 StandardManager[/tomcat-docs]: Seeding of random number generator has been completed
2005-10-13 01:54:09 StandardWrapper[/tomcat-docs:default]: Loading container servlet default
2005-10-13 01:54:09 default: init
2005-10-13 01:54:09 StandardWrapper[/tomcat-docs:invoker]: Loading container servlet invoker
2005-10-13 01:54:09 invoker: init
2005-10-13 01:54:09 jsp: init
2005-10-13 01:54:10 HostConfig[localhost]: Deploying configuration descriptor examples.xml
2005-10-13 01:54:10 WebappLoader[/examples]: Deploying class repositories to work directory /var/lib/tomcat4/work/Standalone/localhost/examples
2005-10-13 01:54:10 WebappLoader[/examples]: Deploy class files /WEB-INF/classes to /usr/share/tomcat4/server/webapps/examples/WEB-INF/classes
2005-10-13 01:54:10 ContextConfig[/examples]: Configured an authenticator for method FORM
2005-10-13 01:54:10 StandardManager[/examples]: Seeding random number generator class java.security.SecureRandom
2005-10-13 01:54:10 StandardManager[/examples]: Seeding of random number generator has been completed
2005-10-13 01:54:10 ContextListener: contextInitialized()
2005-10-13 01:54:10 SessionListener: contextInitialized()
2005-10-13 01:54:10 StandardWrapper[/examples:default]: Loading container servlet default
2005-10-13 01:54:10 default: init
2005-10-13 01:54:10 StandardWrapper[/examples:invoker]: Loading container servlet invoker
2005-10-13 01:54:10 invoker: init
2005-10-13 01:54:10 jsp: init
2005-10-13 01:54:10 HostConfig[localhost]: Deploying web application directory webdav
2005-10-13 01:54:10 StandardHost[localhost]: Installing web application at context path /webdav from URL file:/var/lib/tomcat4/webapps/webdav
2005-10-13 01:54:10 WebappLoader[/webdav]: Deploying class repositories to work directory /var/lib/tomcat4/work/Standalone/localhost/webdav
2005-10-13 01:54:11 StandardManager[/webdav]: Seeding random number generator class java.security.SecureRandom
2005-10-13 01:54:11 StandardManager[/webdav]: Seeding of random number generator has been completed
2005-10-13 01:54:11 StandardWrapper[/webdav:default]: Loading container servlet default
2005-10-13 01:54:11 default: init
2005-10-13 01:54:11 StandardWrapper[/webdav:invoker]: Loading container servlet invoker
2005-10-13 01:54:11 invoker: init
2005-10-13 01:54:11 jsp: init
2005-10-13 01:54:11 HostConfig[localhost]: Deploying web application directory ROOT
2005-10-13 01:54:11 StandardHost[localhost]: Installing web application at context path from URL file:/var/lib/tomcat4/webapps/ROOT
2005-10-13 01:54:11 WebappLoader[]: Deploying class repositories to work directory /var/lib/tomcat4/work/Standalone/localhost/_
2005-10-13 01:54:11 StandardManager[]: Seeding random number generator class java.security.SecureRandom
2005-10-13 01:54:11 StandardManager[]: Seeding of random number generator has been completed
2005-10-13 01:54:11 StandardWrapper[:default]: Loading container servlet default
2005-10-13 01:54:11 default: init
2005-10-13 01:54:11 StandardWrapper[:invoker]: Loading container servlet invoker
2005-10-13 01:54:11 invoker: init
2005-10-13 01:54:11 jsp: init
2005-10-13 01:54:12 StandardHost[localhost]: Removing web application at context path /tomcat-docs
2005-10-13 01:54:12 StandardHost[localhost]: Removing web application at context path /webdav
2005-10-13 01:54:12 StandardHost[localhost]: Removing web application at context path /examples
2005-10-13 01:54:12 SessionListener: contextDestroyed()
2005-10-13 01:54:12 ContextListener: contextDestroyed()
2005-10-13 01:54:12 StandardHost[localhost]: Removing web application at context path

Irgendwie will der das immernoch net so recht.

Wenn ich Tomcat starte und sofort status mache, bekomme ich die PID-Angabe, warte ich einen Moment, dann kommt die obige gepostete Meldung.

Ich versteh das net :(

Mfg
MrMind

heatwalker
13.10.05, 07:46
Das gibt es doch alles nicht :confused:

Poste bitte mal die configs.
/etc/default/tomcat4
/etc/apache/workers2.properties
/etc/apache/mod-enables/jk2.conf

gruss Frank

MrMind
13.10.05, 13:15
Jo ich verstehe das auch alles net mehr.

Hier die /etc/default/tomcat4


# Run Tomcat 4 as this user ID (default: tomcat4). Set this to an empty string
# to prevent Tomcat from starting.
#TOMCAT4_USER=tomcat4

# The home directory of the Java development kit (JDK). You need at least
# JDK version 1.2, just the Java runtime environment (JRE) will not work
# because a Java compiler is needed to translate JavaServer Pages (JSP).
# If JAVA_HOME is not set, some common directories for the Sun, IBM and
# Blackdown packages prepared by the java-package utility and the Debian
# packages from Blackdown for j2sdk1.4 and j2sdk1.3 are tried. You can
# also set JSSE_HOME here to enable SSL support (this is automatically
# done for JDK 1.4+).
#JAVA_HOME=/usr/local/j2sdk1.4-sun
#JSSE_HOME=/usr/local/jsse

# Directory for per-instance configuration files and webapps. It contain the
# directories conf, logs, webapps, work and temp. See RUNNING.txt for details.
# Default: /var/lib/tomcat4
#CATALINA_BASE=/var/lib/tomcat4

# Arguments to pass to the Java virtual machine (JVM)
# "-Djava.awt.headless=true -Xmx128M" is automatically set if CATALINA_OPTS
# is left empty here
#CATALINA_OPTS="-Djava.awt.headless=true -Xmx128M -server"

# Java compiler to use for translating JavaServer Pages (JSPs). You can use all
# compilers that are accepted by Ant's build.compiler property.
#JSP_COMPILER=jikes

# Use the Java security manager? (yes/no, default: yes)
TOMCAT4_SECURITY=no

# Timeout in seconds for the shutdown procedure (default: 30). The Java
# processes will be killed if tomcat4 has not stopped until then.
#TOMCAT4_SHUTDOWN=30

# Number of days to keep old log files in /var/log/tomcat4 (default: 14)
#LOGFILE_DAYS=30

Hier die /etc/apache2/workers2.properties


#
# This is the minimal JK2 connector configuration file.
#

[logger]
info=Native logger
level=ERROR

[config:]
file=${serverRoot}/conf/workers2.properties
debug=0
debugEnv=0

[uriMap:]
info=Maps the requests.
debug=0

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess servers
file=anonymous
debug=0

[workerEnv:]
info=Global server options
timing=0
debug=0

[lb:lb]
info=Default load balancer.
debug=0

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009

[uri:/admin]
info=Tomcat HTML based administration web application.
debug=0

[uri:/manager]
info=A scriptable management web application for the Tomcat Web Server.
debug=0

[uri:/jsp-examples]
info=JSP 2.0 Examples.
debug=0

[uri:/servlets-examples]
info=Servlet 2.4 Examples.
debug=0

[uri:/*.jsp]
info=JSP Extension mapping.
debug=0


und hier die /etc/apache2/mods-enable/jk2.conf


# To enable mod_jk2, customize workers2.properties* from
# /usr/share/doc/libapache2-mod-jk2/examples and copy it to
# /etc/apache2/workers2.properties. Then uncomment the following line:
JkSet config.file /etc/apache2/workers2.properties


Mfg
MrMind

heatwalker
13.10.05, 14:57
Die einzigen Unterschiede zu meiner "funktionierenden" Umgebung sind
diese hier in der workers2properties.


[uri:/servlets-examples]
info=Servlet 2.4 Examples.
debug=0

[uri:/*.jsp]
info=JSP Extension mapping.
debug=0

Diese hab ich nicht drin stehen.

Ich kann mir zwar nicht vorstellen das es daran liegt, aber schmeiss die mal raus.

Wenn es wieder nicht funktioniert, versuchen wir es mal wie bei MS. (-:


den apache und tomcat mit "apt-get remove XXXX --purge" deinstallieren
damit alle configs entfernt werden.

Danach noch mal neu installieren, mit den im vorfeld ausgeführten Änderungen.

Im Moment kann ich nur sagen :ugly: :ugly:

MrMind
13.10.05, 15:16
Ich glaube auch net so richtig daran, das es an diesen zwei Einträgen liegen sollte.

Allerdings werde ich das später erst testen können, da ich glei Unterwegs bin ;)

Danke dir auf jedenfall nochmals für deine Hilfe.

Mfg
MrMind

PS: ich denke eher das es was mit Java zu tun hat, aber mal schauen.

MrMind
14.10.05, 13:14
Also ich habe diese zwei Sachen mal auskommentiert und Apache2 neu gestartet und dann versucht tomcat zu starten. Selber erfolg.

Da ich hier Ubunutu laufen habe (also Debian-Derivat) versuch ich das ganze manuell erstmal auf meiner Kiste lokal zum laufen zu bringen.

Außerdem benötige ich net den worker-Apache sondern den prefork-Apache, da ich bei mir auch PHP4 laufen habe und dieses Modul nur mit Apache-mpm-prefork laufen geht (laut apt-get).

Mfg
MrMind