PDA

Visualizza la versione completa : Tomcat + IIS


Carlone
23-06-2003, 16:32
Sto cercando di integrare Tomcat 4.1.24 con Ms IIS . Ho seguito i passi della documentaziono di Apache tomcat 4.1 riportata sul sito www.apache.org ma non sono riuscito a far funzionare a dovere i due web-server.

per quel che riguarda tomcat ho creato i due files :
worker.properties e uriworrkermap.properties nel seguente modo:

--- worker.properties---
# Define 1 real worker using ajp13
worker.list=worker1

# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=locahost
worker.worker1.port=8009
worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.socket_timeout=300

---uriworkermap.properties---
/examples/*=worker1
/examples/*.jsp=worker1
/examples/servlet/*=worker1
/ROOT/*=worker1
/*=worker1

per iis ho seguito i passi riportati nella documentazione, modificando opportunamente il registro di configurazione , creando la directory virtuale 'jakarta' e il filtro necessario


il file di log del connector isapi ,da me indicato nel registro , riporta le seguenti informazioni :

[Mon Jun 23 10:42:17 2003] [jk_isapi_plugin.c (1018)]: Using registry.
[Mon Jun 23 10:42:17 2003] [jk_isapi_plugin.c (1020)]: Using log file c:\Apache\Tomcat\jkiis.log.
[Mon Jun 23 10:42:17 2003] [jk_isapi_plugin.c (1021)]: Using log level 0.
[Mon Jun 23 10:42:17 2003] [jk_isapi_plugin.c (1022)]: Using extension uri /jakarta/isapi_redirect.dll.
[Mon Jun 23 10:42:17 2003] [jk_isapi_plugin.c (1023)]: Using worker file c:\Apache\Tomcat\conf\workers.properties.
[Mon Jun 23 10:42:17 2003] [jk_isapi_plugin.c (1024)]: Using worker mount file c:\Apache\Tomcat\conf\uriworkermap.properties.
[Mon Jun 23 10:42:17 2003] [jk_isapi_plugin.c (1025)]: Using uri select 0.
[Mon Jun 23 10:42:17 2003] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc
[Mon Jun 23 10:42:17 2003] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open
[Mon Jun 23 10:42:17 2003] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 5
[Mon Jun 23 10:42:17 2003] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=worker1 was added
[Mon Jun 23 10:42:17 2003] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /examples/.jsp=worker1 was added
[Mon Jun 23 10:42:17 2003] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/servlet/=worker1 was added
[Mon Jun 23 10:42:17 2003] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /ROOT/=worker1 was added
[Mon Jun 23 10:42:17 2003] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /=worker1 was added
[Mon Jun 23 10:42:17 2003] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 5 rules
[Mon Jun 23 10:42:17 2003] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done
[Mon Jun 23 10:42:17 2003] [jk_worker.c (88)]: Into wc_open
[Mon Jun 23 10:42:17 2003] [jk_worker.c (224)]: Into build_worker_map, creating 1 workers
[Mon Jun 23 10:42:17 2003] [jk_worker.c (230)]: build_worker_map, creating worker worker1
[Mon Jun 23 10:42:17 2003] [jk_worker.c (148)]: Into wc_create_worker
[Mon Jun 23 10:42:17 2003] [jk_worker.c (260)]: Factory :ajp12
[Mon Jun 23 10:42:17 2003] [jk_worker.c (260)]: Factory :ajp13
[Mon Jun 23 10:42:17 2003] [jk_worker.c (164)]: wc_create_worker, about to create instance worker1 of ajp13
[Mon Jun 23 10:42:17 2003] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory
[Mon Jun 23 10:42:17 2003] [jk_worker.c (173)]: wc_create_worker, about to validate and init worker1
[Mon Jun 23 10:42:17 2003] [jk_ajp_common.c (1206)]: Into jk_worker_t::validate
[Mon Jun 23 10:42:17 2003] [jk_ajp_common.c (1226)]: In jk_worker_t::validate for worker worker1 contact is locahost:8009
[Mon Jun 23 10:42:20 2003] [jk_ajp_common.c (1232)]: In jk_worker_t::validate, resolve failed
[Mon Jun 23 10:42:20 2003] [jk_ajp_common.c (1234)]: In jk_worker_t::validate, Error locahost 8009
[Mon Jun 23 10:42:20 2003] [jk_ajp_common.c (1311)]: Into jk_worker_t::destroy
[Mon Jun 23 10:42:20 2003] [jk_ajp_common.c (1318)]: Into jk_worker_t::destroy up to 0 endpoint to close
[Mon Jun 23 10:42:20 2003] [jk_worker.c (176)]: wc_create_worker validate failed for worker1
[Mon Jun 23 10:42:20 2003] [jk_worker.c (246)]: build_worker_map failed to create workerworker1
[Mon Jun 23 10:42:20 2003] [jk_worker.c (201)]: close_workers got 0 workers to destroy


Ps: Una cosa strana che questo file log stato scritto una sola volta, in seguito nonostante i restart sia di tomcat che di iis non pi stato modificato, inoltre dopo aver cambiato nome al file di log nel registro , il nuovo file di log non mai stato scritto (da notare per che non ho mai riavviato la macchina : ho un controllo remoto):dh: :dh: :dh: :dh:

userfra
25-06-2003, 10:17
fai una ricerca su www.mokabyte.it

tratta anche questi argomenti...

Loading