JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Application Server » Tomcat  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友   
reply to topicthreaded modego to previous topicgo to next topic
話題被移動
該話題已被移動 - morchory , 2004-03-17 21:46
如果您尚不清楚該話題被移動的原因,請參考論壇規則以及本版公告或者聯系本版版主。
本主題所含的標籤
無標籤
作者 tomcat 5.0.16 + apache 2.0.48 + jk2 [精華]
weaker

小屁屁∼



發文: 379
積分: 4
於 2004-01-08 12:57 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
本來是使用 tomcat 4.1.29 ,但就是無法成功
因此改用 tomcat 5.0.16 ,想不到一試成功
所以特把心得與大家分享
本文所使用的 jk2 在以下網址中下載
http://apache.cdpa.nsysu.edu.tw/jakarta/tomcat-connectors/jk2/binaries/
測試環境為 tomcat 5.0.16 + apache 2.0.48 + jk2 + jdk1.4.2_03
在 winxp 以及 solaris 8 的系統下皆可成功
以下為我的步驟

1. 在 tomcat 目錄下的 conf 修改 jk2.properties

# shm.file=/usr/local/apache/logs/jk2.shm
將 shm.file 前的 # 拿掉,並且設定 jk2.shm 位置,
以上為我自己設定的位置
# channelSocket.port=8019
此為 tomcat 與 apache 連接的 port ,若不設定預設為 8009

2. 若第一步驟中有修改 channelSocket.port,則必須修改 server.xml 檔
若沒有修改,則可跳過此步驟

<!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
<Connector port="8009"
enableLookups="false" redirectPort="8443" debug="0"
protocol="AJP/1.3" />
port="8009" 設定成你之前設定的 channelSocket.port

3. 在 apache 目錄下的 conf 修改 httpd.conf

在httpd.conf 裡面多加一行
LoadModule jk2_module modules/mod_jk2.so
當然之前所下載的 jk2 要放置在 apache 的 modules 目錄下
並且改名為 mod_jk2.so

4. 在 apache 目錄下的 conf 新增 workers2.properties

workers2.properties 的內容如下:
# ------- start ---------
[shm]
file=/usr/local/apache/logs/shm.file
size=1048576
[channel.socket:localhost:8009]
tomcatId=localhost:8009
[uri:/jsp-examples/*]
# --------end ------------
/usr/local/apache/logs 為我的設定,可自行設定
channel.socket:localhost:8009
tomcatId=localhost:8009

若之前的channelSocket.port無修改
則以上設定為 8009,若有,則修改成
你所設定的值

5.
若以上設定沒問題的話,則連到 http://localhost/jsp-examples
則可以看到成功畫面囉,至少我這邊已成功了,感動咧
之前搞tomcat 4.1.29 搞了一天都不行,真怪


weaker edited on 2004-01-08 13:03
reply to postreply to post
作者 Re:tomcat 5.0.16 + apache 2.0.48 + jk2 [Re:weaker]
lynn





發文: 8
積分: 0
於 2004-02-15 22:01 user profilesend a private message to usersend email to lynnreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
在httpd.conf 裡面多加一行
LoadModule jk2_module modules/mod_jk2.so
當然之前所下載的 jk2 要放置在 apache 的 modules 目錄下
並且改名為 mod_jk2.so

請問以上設定是在Linux,winxp 環境下所Download的是 mod_jk2-2.0.43.dll 該怎麼辦呢?我試了LoadModule jk2_module modules/mod_jk2-2.0.43.dll而不是 .so才對。


lynn edited on 2004-02-19 10:08
reply to postreply to post
作者 Re:tomcat 5.0.16 + apache 2.0.48 + jk2 [Re:weaker]
sai





發文: 265
積分: 1
於 2004-03-03 16:53 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
請問一下幾個問題...
1. Tomcat的port要設80或8080?
2. 啟動時是不是先啟動Tomcat再啟動Apache?
3. 可以看到jsp會不會是只有Tomcat有啟動,Apache沒有啟動? (我現在好像是這種情形Stupid )
ps. 我有用 ps -ef 看過,Tomcat和Apache是都有啟動,只是我怕會不會process有,但是browser連到server時是連到Tomcat,不是連到Apache...
謝謝~~~~~


reply to postreply to post
整合勞保、公保及勞工、公務員的退休制度,讓年資可以帶著走,這樣可以讓公部門和私部門的人才有機會交流,才不會讓公部門變成一灘死水!
作者 Re:tomcat 5.0.16 + apache 2.0.48 + jk2 [Re:lynn]
weaker

小屁屁∼



發文: 379
積分: 4
於 2004-03-03 17:06 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
lynn wrote:
請問以上設定是在Linux,winxp 環境下所Download的是 mod_jk2-2.0.43.dll 該怎麼辦呢?我試了LoadModule jk2_module modules/mod_jk2-2.0.43.dll而不是 .so才對。

可能語意不清楚吧
我的意思是方法可以成功
當然你的 jk2 要使用對應的
你不能在 winxp 中去使用 linux 阿
同理,你也不能在 linux 使用 winxp 的 jk2 是一樣的道理


reply to postreply to post
作者 Re:tomcat 5.0.16 + apache 2.0.48 + jk2 [Re:sai]
weaker

小屁屁∼



發文: 379
積分: 4
於 2004-03-03 17:15 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
sai wrote:
請問一下幾個問題...
1. Tomcat的port要設80或8080?
2. 啟動時是不是先啟動Tomcat再啟動Apache?
3. 可以看到jsp會不會是只有Tomcat有啟動,Apache沒有啟動? (我現在好像是這種情形Stupid )
ps. 我有用 ps -ef 看過,Tomcat和Apache是都有啟動,只是我怕會不會process有,但是browser連到server時是連到Tomcat,不是連到Apache...
謝謝~~~~~

1.
Tomcat port 不能設定為 80 啊
因為那是 apache webServer 所使用,我不確定是否可以改變
印象中是可以。
以我的經驗,當我安裝好 apache webServer 後,沒改預設值(port = 80)
如果在把 tomcat port 設為 80 ,那麼將無法開啟
因此在我的設定中,我是使用預設值,也就是 8080

2.
yes,先開啟 tomcat 在開 apache

3.
基本上你可以先作測試
(1)首先先開啟 tomcat ,然後連結其預設首頁,看是否正常。
(2)關閉 tomcat ,開啟 apache ,連結首頁,是否正常。
(3)關閉 apache , 先開啟 tomcat ,確定其已經執行,在開啟 apache
接下來就是連結到 http://localhost/jsp-examples 看看
並且執行期裡面的範例,如果可以的話,基本上就是 ok 的

good luck ~


reply to postreply to post
作者 Re:tomcat 5.0.16 + apache 2.0.48 + jk2 [Re:weaker]
cclu





發文: 19
積分: 0
於 2004-03-03 17:22 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
tomcat的port可以不用開...(記得我的設定是這樣的)
只開那個ajp1.3就可以了


reply to postreply to post
作者 Re:tomcat 5.0.16 + apache 2.0.48 + jk2 [Re:weaker]
sai





發文: 265
積分: 1
於 2004-03-03 17:49 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
非常感謝weaker這麼熱心的回答我的問題!!!!!
不過,我還是沒有試出來…
(為什麼這個多人有這個問題,Tomcat就不能設計的簡單點呢? Stupid )
我先安裝Apache測試沒問題,又安裝Tomcat測試也沒問題,
目前如果只啟動其中之一,也都沒問題,
可是…我在只啟動Tomcat的情況下,先安裝了一個Test.war到Tomcat,
經測試確實可以執行,當apache和tomcat都啟動時,
執行 http://localhost/Test 就會有 "500 Internal Server Error"的錯誤訊息,
不曉得這是什麼原因?


reply to postreply to post
整合勞保、公保及勞工、公務員的退休制度,讓年資可以帶著走,這樣可以讓公部門和私部門的人才有機會交流,才不會讓公部門變成一灘死水!
作者 Re:tomcat 5.0.16 + apache 2.0.48 + jk2 [Re:sai]
weaker

小屁屁∼



發文: 379
積分: 4
於 2004-03-03 18:06 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
sai wrote:
非常感謝weaker這麼熱心的回答我的問題!!!!!
不過,我還是沒有試出來…
(為什麼這個多人有這個問題,Tomcat就不能設計的簡單點呢? Stupid )
我先安裝Apache測試沒問題,又安裝Tomcat測試也沒問題,
目前如果只啟動其中之一,也都沒問題,
可是…我在只啟動Tomcat的情況下,先安裝了一個Test.war到Tomcat,
經測試確實可以執行,當apache和tomcat都啟動時,
執行 http://localhost/Test 就會有 "500 Internal Server Error"的錯誤訊息,
不曉得這是什麼原因?

你有連到 http://localhost/jsp-examples 試看看嗎?
如果可以,那表示安裝成功,接下來只是目錄設定上的問題吧(?)


reply to postreply to post
作者 Re:tomcat 5.0.16 + apache 2.0.48 + jk2 [Re:weaker]
sai





發文: 265
積分: 1
於 2004-03-04 09:45 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我連到 http://localhost/jsp-examples 得到相同訊息,
我檢查 $apache/logs/error_log 看到了如下的錯誤訊息,
看起來是channelSocket.open失敗了…

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
[Thu Mar 04 09:20:20 2004] [notice] Digest: generating secret for digest authentication ...
[Thu Mar 04 09:20:20 2004] [notice] Digest: done
[Thu Mar 04 09:20:20 2004] [error] jk2_init() Can't find child 9516 in scoreboard
[Thu Mar 04 09:20:20 2004] [error] mod_jk child init 1 -2
[Thu Mar 04 09:20:20 2004] [error] jk2_init() Can't find child 9517 in scoreboard
[Thu Mar 04 09:20:20 2004] [error] mod_jk child init 1 -2
[Thu Mar 04 09:20:20 2004] [error] jk2_init() Can't find child 9518 in scoreboard
[Thu Mar 04 09:20:20 2004] [error] mod_jk child init 1 -2
[Thu Mar 04 09:20:20 2004] [error] jk2_init() Can't find child 9519 in scoreboard
[Thu Mar 04 09:20:20 2004] [error] mod_jk child init 1 -2
[Thu Mar 04 09:20:20 2004] [error] jk2_init() Can't find child 9520 in scoreboard
[Thu Mar 04 09:20:20 2004] [error] mod_jk child init 1 -2
[Thu Mar 04 09:20:20 2004] [notice] Apache/2.0.43 (Unix) DAV/2 mod_jk2/2.0.2 configured -- resuming normal operations
[Thu Mar 04 09:20:30 2004] [error] channelSocket.open() connect failed localhost:8009 146 Connection refused 
[Thu Mar 04 09:20:30 2004] [error] ajp13.connect() failed ajp13:localhost:8009
[Thu Mar 04 09:20:30 2004] [error] ajp13.service() failed to connect endpoint errno=146 Connection refused
[Thu Mar 04 09:20:30 2004] [error] ajp13.service() Error  forwarding ajp13:localhost:8009 1 1
[Thu Mar 04 09:20:30 2004] [error] lb.service() worker failed 120000 for ajp13:localhost:8009
[Thu Mar 04 09:20:30 2004] [error] channelSocket.open() connect failed localhost:8009 146 Connection refused 
[Thu Mar 04 09:20:30 2004] [error] ajp13.connect() failed ajp13:localhost:8009
[Thu Mar 04 09:20:30 2004] [error] ajp13.service() failed to connect endpoint errno=146 Connection refused
[Thu Mar 04 09:20:30 2004] [error] ajp13.service() Error  forwarding ajp13:localhost:8009 1 1
[Thu Mar 04 09:20:30 2004] [error] lb.service() worker failed 120000 for ajp13:localhost:8009
[Thu Mar 04 09:20:30 2004] [error] lb_worker.service() all workers in error or disabled state
[Thu Mar 04 09:20:30 2004] [error] mod_jk.handler() Error connecting to tomcat 120000
[Thu Mar 04 09:20:31 2004] [error] channelSocket.open() connect failed localhost:8009 146 Connection refused 
[Thu Mar 04 09:20:31 2004] [error] ajp13.connect() failed ajp13:localhost:8009
[Thu Mar 04 09:20:31 2004] [error] ajp13.service() failed to connect endpoint errno=146 Connection refused
[Thu Mar 04 09:20:31 2004] [error] ajp13.service() Error  forwarding ajp13:localhost:8009 1 1
[Thu Mar 04 09:20:31 2004] [error] lb.service() worker failed 120000 for ajp13:localhost:8009
[Thu Mar 04 09:20:31 2004] [error] channelSocket.open() connect failed localhost:8009 146 Connection refused 
[Thu Mar 04 09:20:31 2004] [error] ajp13.connect() failed ajp13:localhost:8009
[Thu Mar 04 09:20:31 2004] [error] ajp13.service() failed to connect endpoint errno=146 Connection refused
[Thu Mar 04 09:20:31 2004] [error] ajp13.service() Error  forwarding ajp13:localhost:8009 1 1
[Thu Mar 04 09:20:31 2004] [error] lb.service() worker failed 120000 for ajp13:localhost:8009
[Thu Mar 04 09:20:31 2004] [error] lb_worker.service() all workers in error or disabled state
[Thu Mar 04 09:20:31 2004] [error] mod_jk.handler() Error connecting to tomcat 120000
[Thu Mar 04 09:20:32 2004] [error] channelSocket.open() connect failed localhost:8009 146 Connection refused 
[Thu Mar 04 09:20:32 2004] [error] ajp13.connect() failed ajp13:localhost:8009
[Thu Mar 04 09:20:32 2004] [error] ajp13.service() failed to connect endpoint errno=146 Connection refused
[Thu Mar 04 09:20:32 2004] [error] ajp13.service() Error  forwarding ajp13:localhost:8009 1 1
[Thu Mar 04 09:20:32 2004] [error] lb.service() worker failed 120000 for ajp13:localhost:8009
[Thu Mar 04 09:20:32 2004] [error] channelSocket.open() connect failed localhost:8009 146 Connection refused 
[Thu Mar 04 09:20:32 2004] [error] ajp13.connect() failed ajp13:localhost:8009
[Thu Mar 04 09:20:32 2004] [error] ajp13.service() failed to connect endpoint errno=146 Connection refused
[Thu Mar 04 09:20:32 2004] [error] ajp13.service() Error  forwarding ajp13:localhost:8009 1 1
[Thu Mar 04 09:20:32 2004] [error] lb.service() worker failed 120000 for ajp13:localhost:8009
[Thu Mar 04 09:20:32 2004] [error] lb_worker.service() all workers in error or disabled state
[Thu Mar 04 09:20:32 2004] [error] mod_jk.handler() Error connecting to tomcat 120000
[Thu Mar 04 09:20:33 2004] [error] channelSocket.open() connect failed localhost:8009 146 Connection refused 
[Thu Mar 04 09:20:33 2004] [error] ajp13.connect() failed ajp13:localhost:8009
[Thu Mar 04 09:20:33 2004] [error] ajp13.service() failed to connect endpoint errno=146 Connection refused
[Thu Mar 04 09:20:33 2004] [error] ajp13.service() Error  forwarding ajp13:localhost:8009 1 1
[Thu Mar 04 09:20:33 2004] [error] lb.service() worker failed 120000 for ajp13:localhost:8009
[Thu Mar 04 09:20:33 2004] [error] channelSocket.open() connect failed localhost:8009 146 Connection refused 
[Thu Mar 04 09:20:33 2004] [error] ajp13.connect() failed ajp13:localhost:8009
[Thu Mar 04 09:20:33 2004] [error] ajp13.service() failed to connect endpoint errno=146 Connection refused
[Thu Mar 04 09:20:33 2004] [error] ajp13.service() Error  forwarding ajp13:localhost:8009 1 1
[Thu Mar 04 09:20:33 2004] [error] lb.service() worker failed 120000 for ajp13:localhost:8009
[Thu Mar 04 09:20:33 2004] [error] lb_worker.service() all workers in error or disabled state
[Thu Mar 04 09:20:33 2004] [error] mod_jk.handler() Error connecting to tomcat 120000
[Thu Mar 04 09:20:35 2004] [error] channelSocket.open() connect failed localhost:8009 146 Connection refused 
[Thu Mar 04 09:20:35 2004] [error] ajp13.connect() failed ajp13:localhost:8009
[Thu Mar 04 09:20:35 2004] [error] ajp13.service() failed to connect endpoint errno=146 Connection refused
[Thu Mar 04 09:20:35 2004] [error] ajp13.service() Error  forwarding ajp13:localhost:8009 1 1
[Thu Mar 04 09:20:35 2004] [error] lb.service() worker failed 120000 for ajp13:localhost:8009
[Thu Mar 04 09:20:35 2004] [error] channelSocket.open() connect failed localhost:8009 146 Connection refused 
[Thu Mar 04 09:20:35 2004] [error] ajp13.connect() failed ajp13:localhost:8009
[Thu Mar 04 09:20:35 2004] [error] ajp13.service() failed to connect endpoint errno=146 Connection refused
[Thu Mar 04 09:20:35 2004] [error] ajp13.service() Error  forwarding ajp13:localhost:8009 1 1
[Thu Mar 04 09:20:35 2004] [error] lb.service() worker failed 120000 for ajp13:localhost:8009
[Thu Mar 04 09:20:35 2004] [error] lb_worker.service() all workers in error or disabled state
[Thu Mar 04 09:20:35 2004] [error] mod_jk.handler() Error connecting to tomcat 120000
[Thu Mar 04 09:20:35 2004] [error] channelSocket.open() connect failed localhost:8009 146 Connection refused 
[Thu Mar 04 09:20:35 2004] [error] ajp13.connect() failed ajp13:localhost:8009
[Thu Mar 04 09:20:35 2004] [error] ajp13.service() failed to connect endpoint errno=146 Connection refused
[Thu Mar 04 09:20:35 2004] [error] ajp13.service() Error  forwarding ajp13:localhost:8009 1 1
[Thu Mar 04 09:20:35 2004] [error] lb.service() worker failed 120000 for ajp13:localhost:8009
[Thu Mar 04 09:20:35 2004] [error] channelSocket.open() connect failed localhost:8009 146 Connection refused 
[Thu Mar 04 09:20:35 2004] [error] ajp13.connect() failed ajp13:localhost:8009
[Thu Mar 04 09:20:35 2004] [error] ajp13.service() failed to connect endpoint errno=146 Connection refused
[Thu Mar 04 09:20:35 2004] [error] ajp13.service() Error  forwarding ajp13:localhost:8009 1 1
[Thu Mar 04 09:20:35 2004] [error] lb.service() worker failed 120000 for ajp13:localhost:8009
[Thu Mar 04 09:20:35 2004] [error] lb_worker.service() all workers in error or disabled state
[Thu Mar 04 09:20:35 2004] [error] mod_jk.handler() Error connecting to tomcat 120000
[Thu Mar 04 09:20:37 2004] [error] channelSocket.open() connect failed localhost:8009 146 Connection refused 
[Thu Mar 04 09:20:37 2004] [error] ajp13.connect() failed ajp13:localhost:8009
[Thu Mar 04 09:20:37 2004] [error] ajp13.service() failed to connect endpoint errno=146 Connection refused
[Thu Mar 04 09:20:37 2004] [error] ajp13.service() Error  forwarding ajp13:localhost:8009 1 1
[Thu Mar 04 09:20:37 2004] [error] lb.service() worker failed 120000 for ajp13:localhost:8009
[Thu Mar 04 09:20:37 2004] [error] channelSocket.open() connect failed localhost:8009 146 Connection refused 
[Thu Mar 04 09:20:37 2004] [error] ajp13.connect() failed ajp13:localhost:8009
[Thu Mar 04 09:20:37 2004] [error] ajp13.service() failed to connect endpoint errno=146 Connection refused
[Thu Mar 04 09:20:37 2004] [error] ajp13.service() Error  forwarding ajp13:localhost:8009 1 1
[Thu Mar 04 09:20:37 2004] [error] lb.service() worker failed 120000 for ajp13:localhost:8009
[Thu Mar 04 09:20:37 2004] [error] lb_worker.service() all workers in error or disabled state
[Thu Mar 04 09:20:37 2004] [error] mod_jk.handler() Error connecting to tomcat 120000
[Thu Mar 04 09:20:38 2004] [error] channelSocket.open() connect failed localhost:8009 146 Connection refused 
[Thu Mar 04 09:20:38 2004] [error] ajp13.connect() failed ajp13:localhost:8009
[Thu Mar 04 09:20:38 2004] [error] ajp13.service() failed to connect endpoint errno=146 Connection refused
[Thu Mar 04 09:20:38 2004] [error] ajp13.service() Error  forwarding ajp13:localhost:8009 1 1
[Thu Mar 04 09:20:38 2004] [error] lb.service() worker failed 120000 for ajp13:localhost:8009
[Thu Mar 04 09:20:38 2004] [error] channelSocket.open() connect failed localhost:8009 146 Connection refused 
[Thu Mar 04 09:20:38 2004] [error] ajp13.connect() failed ajp13:localhost:8009
[Thu Mar 04 09:20:38 2004] [error] ajp13.service() failed to connect endpoint errno=146 Connection refused
[Thu Mar 04 09:20:38 2004] [error] ajp13.service() Error  forwarding ajp13:localhost:8009 1 1
[Thu Mar 04 09:20:38 2004] [error] lb.service() worker failed 120000 for ajp13:localhost:8009
[Thu Mar 04 09:20:38 2004] [error] lb_worker.service() all workers in error or disabled state
[Thu Mar 04 09:20:38 2004] [error] mod_jk.handler() Error connecting to tomcat 120000
[Thu Mar 04 09:20:38 2004] [error] channelSocket.open() connect failed localhost:8009 146 Connection refused 
[Thu Mar 04 09:20:38 2004] [error] ajp13.connect() failed ajp13:localhost:8009
[Thu Mar 04 09:20:38 2004] [error] ajp13.service() failed to connect endpoint errno=146 Connection refused
[Thu Mar 04 09:20:38 2004] [error] ajp13.service() Error  forwarding ajp13:localhost:8009 1 1
[Thu Mar 04 09:20:38 2004] [error] lb.service() worker failed 120000 for ajp13:localhost:8009
[Thu Mar 04 09:20:38 2004] [error] channelSocket.open() connect failed localhost:8009 146 Connection refused 
[Thu Mar 04 09:20:38 2004] [error] ajp13.connect() failed ajp13:localhost:8009
[Thu Mar 04 09:20:38 2004] [error] ajp13.service() failed to connect endpoint errno=146 Connection refused
[Thu Mar 04 09:20:38 2004] [error] ajp13.service() Error  forwarding ajp13:localhost:8009 1 1
[Thu Mar 04 09:20:38 2004] [error] lb.service() worker failed 120000 for ajp13:localhost:8009
[Thu Mar 04 09:20:38 2004] [error] lb_worker.service() all workers in error or disabled state
[Thu Mar 04 09:20:38 2004] [error] mod_jk.handler() Error connecting to tomcat 120000
[Thu Mar 04 09:20:39 2004] [error] channelSocket.open() connect failed localhost:8009 146 Connection refused 
[Thu Mar 04 09:20:39 2004] [error] ajp13.connect() failed ajp13:localhost:8009
[Thu Mar 04 09:20:39 2004] [error] ajp13.service() failed to connect endpoint errno=146 Connection refused
[Thu Mar 04 09:20:39 2004] [error] ajp13.service() Error  forwarding ajp13:localhost:8009 1 1
[Thu Mar 04 09:20:39 2004] [error] lb.service() worker failed 120000 for ajp13:localhost:8009
[Thu Mar 04 09:20:39 2004] [error] channelSocket.open() connect failed localhost:8009 146 Connection refused 
[Thu Mar 04 09:20:39 2004] [error] ajp13.connect() failed ajp13:localhost:8009
[Thu Mar 04 09:20:39 2004] [error] ajp13.service() failed to connect endpoint errno=146 Connection refused
[Thu Mar 04 09:20:39 2004] [error] ajp13.service() Error  forwarding ajp13:localhost:8009 1 1
[Thu Mar 04 09:20:39 2004] [error] lb.service() worker failed 120000 for ajp13:localhost:8009
[Thu Mar 04 09:20:39 2004] [error] lb_worker.service() all workers in error or disabled state
[Thu Mar 04 09:20:39 2004] [error] mod_jk.handler() Error connecting to tomcat 120000


reply to postreply to post
整合勞保、公保及勞工、公務員的退休制度,讓年資可以帶著走,這樣可以讓公部門和私部門的人才有機會交流,才不會讓公部門變成一灘死水!
作者 Re:tomcat 5.0.16 + apache 2.0.48 + jk2 [Re:weaker]
sai





發文: 265
積分: 1
於 2004-03-04 14:56 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
非常非常感謝weaker!!
我之前之所以有問題是因為tomcat的8080被我的其它程式佔用了,
改成別的port就行了...


reply to postreply to post
整合勞保、公保及勞工、公務員的退休制度,讓年資可以帶著走,這樣可以讓公部門和私部門的人才有機會交流,才不會讓公部門變成一灘死水!
作者 Re:tomcat 5.0.16 + apache 2.0.48 + jk2 [Re:weaker]
jkloip





發文: 2
積分: 0
於 2004-03-06 16:24 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我提供自己這二天的安裝測試經驗供大家參考
我照著前面的步驟做下來,但我發現下載下來的
mod_jk2-2.0.43.dll 其實改成 mod_jk2.so 或是 mod_jk2.dll
其實在win平台都可以接受
只要在 Apache 的 httpd.conf的設定可以相對應即可~~
我目前在win 2000 pro and win xp home 上測試過
一切都很正常 Smile


reply to postreply to post
作者 Re:tomcat 5.0.16 + apache 2.0.48 + jk2 [Re:weaker]
jkloip





發文: 2
積分: 0
於 2004-03-09 01:54 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
不知是否有人想在Linux上結合Apache2.0.48+Tomcat5.0.16呢?
小弟我就很想這樣做~~但從
http://apache.cdpa.nsysu.edu.tw/jakarta/tomcat-connectors/jk2/binaries/
這裡根本無法找到Linux上可用的版本~~
但總算被小弟在這找到啦
http://archive.apache.org/dist/jakarta/tomcat-connectors/jk2/v2.0.1/bin/linux/i386/
小弟在這下載了 mod_jk2-2.0.43.so檔下來,然後完成Weaker兄所教授的方法步驟~~這樣就大功告成啦~~有興趣的人不妨一試
小弟的環境為 Redhat 8 + Apache2.0.48+Tomcat5.0.16
提供給大夥參考參考


reply to postreply to post
作者 Re:tomcat 5.0.16 + apache 2.0.48 + jk2 [Re:sai]
jovy





發文: 8
積分: 0
於 2004-05-22 22:37 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
1. 在 tomcat 目錄下的 conf 修改 jk2.properties


shm.file=/usr/local/apache/logs/jk2.shm
將 shm.file 前的 # 拿掉,並且設定 jk2.shm 位置,


這邊是在設定什麼東東啊!? 為什麼我找不到這個檔案..

以上為我自己設定的位置
# channelSocket.port=8019
此為 tomcat 與 apache 連接的 port ,若不設定預設為 8009


reply to postreply to post
作者 Re:tomcat 5.0.16 + apache 2.0.48 + jk2 [Re:weaker]
mystique13





發文: 3
積分: 0
於 2004-07-06 17:31 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Thank You Weaker!
I'm new to these stuff, thanks for your help in adv.
Something interesting i have discovered so far~
1) the error page has shown when I start apache2 only(tomcat not in service), is it normal?


reply to postreply to post
作者 Re:tomcat 5.0.16 + apache 2.0.48 + jk2 [Re:weaker]
mystique13





發文: 3
積分: 0
於 2004-07-06 17:34 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
2) If the apache is acting as an intermediate channel, how should my application be deployed?

Many thanks.
mystique13


reply to postreply to post
作者 Re:tomcat 5.0.16 + apache 2.0.48 + jk2 [Re:weaker]
huazii

Enjoy it!



發文: 76
積分: 0
於 2004-07-07 09:42 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
1. 在 tomcat 目錄下的 conf 修改 jk2.properties

# shm.file=/usr/local/apache/logs/jk2.shm
將 shm.file 前的 # 拿掉,並且設定 jk2.shm 位置,

jk2.shm是虾米东东?
在哪里?偶怎么没有?


reply to postreply to post
作者 Re:tomcat 5.0.16 + apache 2.0.48 + jk2 [Re:huazii]
huazii

Enjoy it!



發文: 76
積分: 0
於 2004-07-08 08:40 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
huazii wrote:
jk2.shm是虾米东东?
在哪里?偶怎么没有?

哦,是share memory文件
系统会自动生成。


reply to postreply to post
作者 Re:tomcat 5.0.16 + apache 2.0.48 + jk2 [Re:weaker]
mystique13





發文: 3
積分: 0
於 2004-07-08 17:50 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我已經成功連接apache & tomcat了, 但如何辨識一個file是直接由apache送或是先經過tomcat呢?
我想如果所有file都經由tomcat傳送, 那apache+tomcat這combination就沒啥意義了
這個setup與workers.properties有密切關係, 但有網上又找不到好的reference
所以要再次向你們求教了Blush

測試環境為 tomcat 5.0.27 + apache 2.0.50 + jk2 + jdk1.4.2_04


mystique13 edited on 2004-07-08 17:55
reply to postreply to post
作者 Re:tomcat 5.0.16 + apache 2.0.48 + jk2 [Re:jovy]
adul





發文: 58
積分: 0
於 2004-09-21 22:23 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
jovy wrote:
1. 在 tomcat 目錄下的 conf 修改 jk2.properties


shm.file=/usr/local/apache/logs/jk2.shm
將 shm.file 前的 # 拿掉,並且設定 jk2.shm 位置,


這邊是在設定什麼東東啊!? 為什麼我找不到這個檔案..

以上為我自己設定的位置
# channelSocket.port=8019
此為 tomcat 與 apache 連接的 port ,若不設定預設為 8009


請問下面這行丫~ 我也不知道這是在做什麼用 ,我也找不到這個檔案吶~
可以麻煩說一下嗎~
謝謝Sad

shm.file=/usr/local/apache/logs/jk2.shm
將 shm.file 前的 # 拿掉,並且設定 jk2.shm 位置,


reply to postreply to post
作者 Re:tomcat 5.0.16 + apache 2.0.48 + jk2 [Re:weaker]
tmh





發文: 9
積分: 0
於 2005-11-08 14:46 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
請問這個環境可以做虛擬主機的架設嗎?

reply to postreply to post
作者 Re:tomcat 5.0.16 + apache 2.0.48 + jk2 [Re:weaker]
小色流浪





發文: 4
積分: 0
於 2005-11-09 00:18 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我在WinXP SP2系统环境中设置成功!
tomcat 5.5.11+apache 2.0.55+jk2
现在终于可以在Apache中调试Html和JSP了。
真的非常感谢weaker!感谢原创文章!


reply to postreply to post
不是每個樂隊都叫Beyond,不是每種聲音都叫音樂。
作者 Re:tomcat 5.0.16 + apache 2.0.48 + jk2 [Re:weaker]
loophole





發文: 2
積分: 0
於 2006-03-30 13:50 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
請問一下
我參照本篇設定已順利完成環境整合
但.jsp的網頁好像只能放在tomcat下的jsp-examples目錄中
我試著更改workers2.properties的內容
譬如
[uri:/*]
[uri:/ROOT/*]
卻都無法連到指定的目錄下

那麼如果我希望目錄指定在webapps
能夠連結到子目錄下的所有內容
我應該如何設定呢?
感謝


reply to postreply to post
» JWorld@TW »  Application Server » Tomcat

reply to topicthreaded modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8