apache tomcat integertaion を使用してサーブレットを実行しようとすると、以下のログが取得されます。Tomcat に接続できないと表示されます。理由がわからない?0.0.0.0:0
さらに、私が持っているときに接続しようとしています
<Connector port="8009" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
で試した
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
しかし、昼食はありません
[2012 年 5 月 19 日 13:29:39] [5260:4324] [info] ajp_service::jk_ajp_common.c (2622): (worker1) tomcat へのリクエストの送信に失敗しました (回復可能)。リクエストの送信中にエラーが発生したためです (試行 = 1) [2012 年 5 月 19 日 13:29:39] [5260:4324] [デバッグ] ajp_service::jk_ajp_common.c (2471): 再試行 1、再試行する前に 100 ミリ秒スリープ [2012 年 5 月 19 日 13:29:39] [5260:4324] [デバッグ] ajp_send_request::jk_ajp_common.c (1623): (worker1) すべてのエンドポイントが切断されています。 [2012 年 5 月 19 日土曜日 13:29:39] [5260:4324] [デバッグ] jk_open_socket::jk_connect.c (485): ソケット TCP_NODELAY がオンに設定 [2012 年 5 月 19 日 13:29:39] [5260:4324] [デバッグ] jk_open_socket::jk_connect.c (574): ソケット = 1548 のタイムアウト 3000 が設定されました [2012 年 5 月 19 日 13:29:39] [5260:4324] [デバッグ] jk_open_socket::jk_connect.c (609): ソケット 1548 を 0.0.0.0:0 に接続しようとしています [2012 年 5 月 19 日 13:29:39] [5260:4324] [info] jk_open_socket::jk_connect.c (627): 0.0.0.0:0 への接続に失敗しました (errno=47) [2012 年 5 月 19 日 13:29:39] [5260:4324] [info] ajp_connect_to_endpoint::jk_ajp_common.c (995): (0.0.0.0:0) へのソケットを開くことができませんでした (errno=47) [2012 年 5 月 19 日 13:29:39] [5260:4324] [エラー] ajp_send_request::jk_ajp_common.c (1629): (worker1) バックエンドへの接続に失敗しました。Tomcat が起動していないか、間違ったポートでリッスンしている可能性があります (errno=47) [2012 年 5 月 19 日 13:29:39] [5260:4324] [info] ajp_service::jk_ajp_common.c (2622): (worker1) tomcat へのリクエストの送信に失敗しました (回復可能)。リクエストの送信中にエラーが発生したためです (試行 = 2) [2012 年 5 月 19 日 13:29:39] [5260:4324] [エラー] ajp_service::jk_ajp_common.c (2642): (worker1) tomcat への接続に失敗しました。 [Sat May 19 13:29:39 2012] [5260:4324] [debug] ajp_reset_endpoint::jk_ajp_common.c (786): (worker1) resetting endpoint with socket -1 (socket shutdown) [2012 年 5 月 19 日 13:29:39] [5260:4324] [デバッグ] ajp_done::jk_ajp_common.c (3085): ワーカー worker1 とソケット -1 の接続プールのリサイクル [Sat May 19 13:29:39 2012] [5260:4324] [info] jk_handler::mod_jk.c (2788): サービス エラー =-3 for worker=worker1 [2012 年 5 月 19 日 13:29:47] [5260:4324] [デバッグ] map_uri_to_worker_ext::jk_uri_worker_map.c (1131): 3 つのマップから URI '/automationutil/LoginApp' をマップしようとしています [2012 年 5 月 19 日 13:29:47] [5260:4324] [デバッグ] find_match::jk_uri_worker_map.c (945): コンテキスト URI '/automationutil/*=worker1' ソース 'JkMount' をマップしようとしています [2012 年 5 月 19 日 13:29:47] [5260:4324] [デバッグ] find_match::jk_uri_worker_map.c (958): ワイルド文字の一致 '/automationutil/*=worker1' が見つかりました [2012 年 5 月 19 日 13:29:47] [5260:4324] [デバッグ] jk_handler::mod_jk.c (2621): ハンドラ jakarta-servlet に worker=worker1 r->proxyreq=0 [2012 年 5 月 19 日 13:29:47] [5260:4324] [デバッグ] wc_get_worker_for_name::jk_worker.c (115): ワーカー worker1 が見つかりました [2012 年 5 月 19 日 13:29:47] [5260:4324] [デバッグ] wc_get_name_for_type::jk_worker.c (292): ワーカー タイプ 'ajp13' が見つかりました [Sat May 19 13:29:47 2012] [5260:4324] [debug] init_ws_service::mod_jk.c (1097): サービス プロトコル=HTTP/1.1 メソッド=POST ssl=false ホスト=(null) addr=127.0. 0.1 name=localhost port=82 auth=(null) user=(null) laddr=127.0.0.1 raddr=127.0.0.1 uri=/automationutil/LoginApp [2012 年 5 月 19 日 13:29:47] [5260:4324] [デバッグ] ajp_get_endpoint::jk_ajp_common.c (3154): 0 回の再試行後に接続プール スロット = 0 を取得 [2012 年 5 月 19 日 13:29:47] [5260:4324] [デバッグ] ajp_marshal_into_msgb::jk_ajp_common.c (626): ajp マーシャリング完了 [2012 年 5 月 19 日 13:29:47] [5260:4324] [デバッグ] ajp_service::jk_ajp_common.c (2449): 2 回の再試行で worker1 を処理する [2012 年 5 月 19 日 13:29:47] [5260:4324] [デバッグ] ajp_send_request::jk_ajp_common.c (1623): (worker1) すべてのエンドポイントが切断されています。 [Sat May 19 13:29:47 2012] [5260:4324] [debug] jk_open_socket::jk_connect.c (485): ソケット TCP_NODELAY がオンに設定されました [2012 年 5 月 19 日 13:29:47] [5260:4324] [デバッグ] jk_open_socket::jk_connect.c (574): socket=1548 のタイムアウト 3000 が設定されました [2012 年 5 月 19 日 13:29:47] [5260:4324] [デバッグ] jk_open_socket::jk_connect.c (609): ソケット 1548 を 0.0.0.0:0 に接続しようとしています [2012 年 5 月 19 日 13:29:47] [5260:4324] [info] jk_open_socket::jk_connect.c (627): 0.0.0.0:0 への接続に失敗しました (errno=47) [2012 年 5 月 19 日 13:29:47] [5260:4324] [info] ajp_connect_to_endpoint::jk_ajp_common.c (995): (0.0.0.0:0) へのソケットを開くことができませんでした (errno=47) [2012 年 5 月 19 日 13:29:47] [5260:4324] [エラー] ajp_send_request::jk_ajp_common.c (1629): (worker1) バックエンドへの接続に失敗しました。Tomcat が起動していないか、間違ったポートでリッスンしている可能性があります (errno=47) [2012 年 5 月 19 日 13:29:47] [5260:4324] [info] ajp_service::jk_ajp_common.c (2622): (worker1) tomcat へのリクエストの送信に失敗しました (回復可能)。リクエストの送信中にエラーが発生したためです (試行 = 1) [2012 年 5 月 19 日 13:29:47] [5260:4324] [デバッグ] ajp_service::jk_ajp_common.c (2471): 再試行 1、再試行する前に 100 ミリ秒スリープ [2012 年 5 月 19 日 13:29:47] [5260:4324] [デバッグ] ajp_send_request::jk_ajp_common.c (1623): (worker1) すべてのエンドポイントが切断されています。 [Sat May 19 13:29:47 2012] [5260:4324] [debug] jk_open_socket::jk_connect.c (485): ソケット TCP_NODELAY がオンに設定されました [2012 年 5 月 19 日 13:29:47] [5260:4324] [デバッグ] jk_open_socket::jk_connect.c (574): socket=1548 のタイムアウト 3000 が設定されました [2012 年 5 月 19 日 13:29:47] [5260:4324] [デバッグ] jk_open_socket::jk_connect.c (609): ソケット 1548 を 0.0.0.0:0 に接続しようとしています [2012 年 5 月 19 日 13:29:47] [5260:4324] [info] jk_open_socket::jk_connect.c (627): 0.0.0.0:0 への接続に失敗しました (errno=47) [2012 年 5 月 19 日 13:29:47] [5260:4324] [info] ajp_connect_to_endpoint::jk_ajp_common.c (995): (0.0.0.0:0) へのソケットを開くことができませんでした (errno=47) [2012 年 5 月 19 日 13:29:47] [5260:4324] [エラー] ajp_send_request::jk_ajp_common.c (1629): (worker1) バックエンドへの接続に失敗しました。Tomcat が起動していないか、間違ったポートでリッスンしている可能性があります (errno=47) [2012 年 5 月 19 日 13:29:47] [5260:4324] [info] ajp_service::jk_ajp_common.c (2622): (worker1) tomcat へのリクエストの送信に失敗しました (回復可能)。リクエストの送信中にエラーが発生したためです (試行 = 2) [2012 年 5 月 19 日 13:29:47] [5260:4324] [エラー] ajp_service::jk_ajp_common.c (2642): (worker1) tomcat への接続に失敗しました。 [Sat May 19 13:29:47 2012] [5260:4324] [debug] ajp_reset_endpoint::jk_ajp_common.c (786): (worker1) ソケット -1 でエンドポイントをリセット中 (ソケットのシャットダウン) [2012 年 5 月 19 日 13:29:47] [5260:4324] [デバッグ] ajp_done::jk_ajp_common.c (3085): ワーカー worker1 とソケット -1 の接続プールのリサイクル [2012 年 5 月 19 日 13:29:47] [5260:4324] [デバッグ] jk_handler::mod_jk.c (2719): worker=worker1 の残りの 22 バイトの要求データを消費 [Sat May 19 13:29:47 2012] [5260:4324] [info] jk_handler::mod_jk.c (2788): サービス エラー =-3 for worker=worker1
どんな助けでも大歓迎です。過去10日間、頭をぶつけていました。
mod_jk.conf (C:\Program Files\apache-tomcat-5.5.35\conf\auto)
########## Auto generated on Sat May 19 12:48:58 IST 2012##########
<IfModule !mod_jk.c>
LoadModule jk_module "modules/mod_jk.dll"
</IfModule>
<VirtualHost localhost>
ServerName localhost
JkMount /webdav ajp13
JkMount /webdav/* ajp13
JkMount /tomcat-docs ajp13
JkMount /tomcat-docs/* ajp13
JkMount /balancer ajp13
JkMount /balancer/* ajp13
JkMount /host-manager ajp13
JkMount /host-manager/* ajp13
JkMount /automationutil ajp13
JkMount /automationutil/* ajp13
JkMount /servlets-examples ajp13
JkMount /servlets-examples/* ajp13
JkMount /jsp-examples ajp13
JkMount /jsp-examples/* ajp13
JkMount /manager ajp13
JkMount /manager/* ajp13
</VirtualHost>
労働者.プロパティ
# Define 1 real worker using ajp13
worker.list=worker1
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
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=3000
uriworkermap.properties
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# uriworkermap.properties - IIS
#
# This file provides sample mappings for example wlb
# worker defined in workermap.properties.minimal
# The general syntax for this file is:
# [URL]=[Worker name]
#/admin/*=lb
#/manager/*=lb
#/jsp-examples/*=lb
/servlets-examples/*=worker1
#/examples/*=lb
/automationutil=worker1
/automationutil/*=worker1
#!/automationutil/*.html=worker1
# Optionally filter out all .jpeg files inside that context
# For no mapping the url has to start with exclamation (!)
#!/servlets-examples/*.jpeg=lb
#
# Mount jkstatus to /jkmanager
# For production servers you will need to
# secure the access to the /jkmanager url
#
#/jk-manager=jk-status
httpd.conf
#Include "C:/Program Files/Apache Software Foundation/Apache2.2/conf/vhosts.conf"
#LoadModule jk_module "C:/Program Files/Apache Software Foundation/Apache2.2/modules/mod_jk.so"
# Load mod_jk module
# Update this path to match your modules location
LoadModule jk_module "C:/Program Files/Apache Software Foundation/Apache2.2/modules/mod_jk.so"
# Declare the module for <IfModule directive> (remove this line on Apache 2.x)
#AddModule mod_jk.c
# Where to find workers.properties
# Update this path to match your conf directory location (put workers.properties next to httpd.conf)
JkWorkersFile "C:/Program Files/Apache Software Foundation/Apache2.2/conf/workers.properties"
# Where to put jk shared memory
# Update this path to match your local state directory or logs directory
JkShmFile "C:/Program Files/Apache Software Foundation/Apache2.2/logs/mod_jk.shm"
# Where to put jk logs
# Update this path to match your logs directory location (put mod_jk.log next to access_log)
JkLogFile "C:/Program Files/Apache Software Foundation/Apache2.2/logs/mod_jk.log"
# Set the jk log level [debug/error/info]
#JkLogLevel info
JkLogLevel debug
# Select the timestamp log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
# Send everything for context /examples to worker named worker1 (ajp13)
#<VirtualHost localhost:80>
# Set DocumentRoot equal to Tomcat ROOT context
#DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
#DocumentRoot "C:/Program Files/apache-tomcat-5.5.35/webapps"
# Exclude PHP & CGI (let Apache handle)
SetEnvIf Request_URI \.php no-jk
#SetEnvIf Request_URI \.cgi no-jk
#JkMount /* worker1
JkMount /automationutil worker1
JkMount /automationutil/* worker1
JkUnMount /automationutil/*.html worker1
#JkMount /automationutil/* worker1
#</VirtualHost>