[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Tomcat e Apache (parte 2).



Dopo avere provato ad usare Tomcat "oiginale" con Apache, ho messo su quello Debian.

Il buon GattoTom di per se funziona (infatti le pagine jsp sulla porta di test girano).

Il problema nasce invece se lo voglio far interagire con Apache.

Un po' di configurazioni:

in '/etc/tomcat/jk/workers.properties' è specificato:

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

in '/etc/tomcat4/server.xml' è specificato:
 <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
              port="8009" minProcessors="5" maxProcessors="75"
              acceptCount="10" debug="0" address="127.0.0.1"/>



In '/etc/apache/httpd.conf' è specificato:

Include /etc/tomcat4/apache.conf
<IfModule mod_jk.c>
# The following line is for apacheconfig - DO NOT REMOVE!
JkWorkersFile /etc/tomcat/jk/workers.properties
Include /var/lib/tomcat/conf/mod_jk.conf
</IfModule>


'/etc/tomcat4/apache.conf contiene:
Alias /examples /var/lib/tomcat4/webapps/examples/

'/var/lib/tomcat/conf/mod_jk.conf' non contiene nulla.

Ho provato a scrivergli:
channelSocket.port=8009

ma all'avvio di apache mi da Errore:

Starting web server: apacheSyntax error on line 1 of /var/lib/tomcat/conf/mod_jk.conf: Invalid command 'channelSocket.port=8009', perhaps mis-spelled or defined by a module not included in the server configuration
failed

Se lo lascio vuoto parte tranquillo ma non fa eseguire le jsp al GattoTom: semplicemente vedo il sorgente jsp.


Che fo ???
   Walter



--
God hates us all

Per favore non mandatemi allegati in Word o PowerPoint.
Si veda http://www.fsf.org/philosophy/no-word-attachments.html



Reply to: