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

» JWorld@TW » Application Server » Tomcat  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友   
reply to topicthreaded modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 關於Tomcat 6.0.16配置在eclipse 3.3啟動時的錯誤解決方法
oldmemory

海無界、心有帆



發文: 95
積分: 2
於 2008-05-10 04:55 user profilesend a private message to usersend email to oldmemoryreply 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 6.0.16配置的解決方法,
倒不如說,Tomcat 6.0.16搭配eclipse去開Dynamic Web Project後,
利用在jsp檔案上按右鍵 → Run on Server的方式,
會出現如下滿滿的紅色訊息,基本上運行網頁又是正常的!
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

2008/5/10 上午 04:24:39 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:CRMWebSystem' did not find a matching property.
2008/5/10 上午 04:24:39 org.apache.catalina.core.AprLifecycleListener init
資訊: Loaded APR based Apache Tomcat Native library 1.1.12.
2008/5/10 上午 04:24:39 org.apache.catalina.core.AprLifecycleListener init
資訊: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
2008/5/10 上午 04:24:40 org.apache.coyote.http11.Http11AprProtocol init
資訊: Initializing Coyote HTTP/1.1 on http-8080
2008/5/10 上午 04:24:40 org.apache.coyote.ajp.AjpAprProtocol init
資訊: Initializing Coyote AJP/1.3 on ajp-8009
2008/5/10 上午 04:24:40 org.apache.catalina.startup.Catalina load
資訊: Initialization processed in 1534 ms
2008/5/10 上午 04:24:41 org.apache.catalina.core.StandardService start
資訊: Starting service Catalina
2008/5/10 上午 04:24:41 org.apache.catalina.core.StandardEngine start
資訊: Starting Servlet Engine: Apache Tomcat/6.0.16
2008/5/10 上午 04:24:42 org.apache.coyote.http11.Http11AprProtocol start
資訊: Starting Coyote HTTP/1.1 on http-8080
2008/5/10 上午 04:24:42 org.apache.coyote.ajp.AjpAprProtocol start
資訊: Starting Coyote AJP/1.3 on ajp-8009
2008/5/10 上午 04:24:42 org.apache.catalina.startup.Catalina start
資訊: Server startup in 2457 ms



其原因是因為,Tomcat無法找到在server.xml中所設定的其中一個屬性值
PS:此處的server.xml是指eclipse專案下的server裡的server.xml

1
'source' to 'org.eclipse.jst.jee.server:CRMWebSystem'


試過很多方法,且去官網所找到的版本也只有放tomcat 6.0.16的版本!
問過朋友,卻一直說是我專案設定問題或是eclipse沒弄好!
後來總算讓我找到解決方法 --> 那就是換Tomcat版本!Black Eye
不要問我為什麼!我想這個問題可能得等官方去修正問題!

至於,小弟提供一個載點,可以下載到配置後是正常的版本 -- Tomcat 6.0.14
http://ftp.ntu.edu.tw/Apache/tomcat/tomcat-6/v6.0.14/bin/
進去後,請各位依個人需求選擇!

接著,並非用此版本就一切正常!
仍然在第一行還是有個找不到檔案的訊息:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2008/5/10 上午 04:51:08 org.apache.catalina.core.AprLifecycleListener init
資訊: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_05\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jdk1.6.0_05\bin\..\jre\bin\client;C:\Program Files\Java\jdk1.6.0_05\bin\..\jre\bin;C:\Program Files\Java\jdk1.6.0_05\bin\..\jre\bin\client;C:\Program Files\Java\jdk1.6.0_05\bin\..\jre\bin;C:\Program Files\Java\jdk1.6.0_05\bin;C:\Program Files\Microsoft DirectX SDK (November 2007)\Utilities\Bin\x86;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\Inventec\Dreye\DreyeSA\DreyeTTs\eTTS\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microchip\MPLAB C30\bin;
2008/5/10 上午 04:51:08 org.apache.coyote.http11.Http11Protocol init
資訊: Initializing Coyote HTTP/1.1 on http-8080
2008/5/10 上午 04:51:08 org.apache.catalina.startup.Catalina load
資訊: Initialization processed in 816 ms
2008/5/10 上午 04:51:08 org.apache.catalina.core.StandardService start
資訊: Starting service Catalina
2008/5/10 上午 04:51:08 org.apache.catalina.core.StandardEngine start
資訊: Starting Servlet Engine: Apache Tomcat/6.0.14
2008/5/10 上午 04:51:10 org.apache.coyote.http11.Http11Protocol start
資訊: Starting Coyote HTTP/1.1 on http-8080
2008/5/10 上午 04:51:10 org.apache.jk.common.ChannelSocket init
資訊: JK: ajp13 listening on /0.0.0.0:8009
2008/5/10 上午 04:51:10 org.apache.jk.server.JkMain start
資訊: Jk running ID=0 time=0/47  config=null
2008/5/10 上午 04:51:10 org.apache.catalina.startup.Catalina start
資訊: Server startup in 1428 ms


後來,去爬文找到如下敘述:
原來Tomcat從5.5版本後增加了APR技術(Apache Portable Runtime),這是一個用C語言寫成文件包,目的在於提高Tomcat的服務性能,從而使得Tomcat將不僅僅擔任一個容器的功能,而是要成為一個一般的web服務器(general purpose webserver)。

可以知道的是,原來預設的版本都沒有附加那個檔案!
因此,請各位到Tomcat網站上去下載:http://tomcat.apache.org/download-native.cgi
進去後找到 You may download them from HERE 連結,
在裡面找一個版本編號是最新的,進去後去下載一個叫 tcnative-1.dll 的檔案。
PS:小弟在該頁面上找到的路徑位置:/1.1.12/binaries/win32

至於,下載下來的tcnative-1.dll 的檔案,如果各位有設定JAVA_HOME的環境變數,
就直接把此檔案放進去 %JAVA_HOME%\bin 的目錄底下即可!

在次利用eclipse啟動Tomcat,所有訊息皆正常了!
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2008/5/10 上午 04:42:00 org.apache.catalina.core.AprLifecycleListener init
資訊: Loaded Apache Tomcat Native library 1.1.12.
2008/5/10 上午 04:42:00 org.apache.catalina.core.AprLifecycleListener init
資訊: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
2008/5/10 上午 04:42:01 org.apache.coyote.http11.Http11AprProtocol init
資訊: Initializing Coyote HTTP/1.1 on http-8080
2008/5/10 上午 04:42:01 org.apache.coyote.ajp.AjpAprProtocol init
資訊: Initializing Coyote AJP/1.3 on ajp-8009
2008/5/10 上午 04:42:01 org.apache.catalina.startup.Catalina load
資訊: Initialization processed in 3436 ms
2008/5/10 上午 04:42:01 org.apache.catalina.core.StandardService start
資訊: Starting service Catalina
2008/5/10 上午 04:42:01 org.apache.catalina.core.StandardEngine start
資訊: Starting Servlet Engine: Apache Tomcat/6.0.14
2008/5/10 上午 04:42:02 org.apache.coyote.http11.Http11AprProtocol start
資訊: Starting Coyote HTTP/1.1 on http-8080
2008/5/10 上午 04:42:02 org.apache.coyote.ajp.AjpAprProtocol start
資訊: Starting Coyote AJP/1.3 on ajp-8009
2008/5/10 上午 04:42:02 org.apache.catalina.startup.Catalina start
資訊: Server startup in 1416 ms


希望以上的經驗,對各位有所幫助!Smile


oldmemory edited on 2008-05-10 06:00
reply to postreply to post
作者 Re:關於Tomcat 6.0.16配置在eclipse 3.3啟動時的錯誤解決方法 [Re:oldmemory]
watermark





發文: 1
積分: 0
於 2008-07-24 10:36 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
Wink 非常感谢!正需要这个!!!

reply to postreply to post
作者 Re:關於Tomcat 6.0.16配置在eclipse 3.3啟動時的錯誤解決方法 [Re:oldmemory]
iseehk





發文: 31
積分: 0
於 2008-09-29 16:38 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 6.0.14
Eclipse Version: 3.4.1
java version "1.6.0_07" with the %JAVA_HOME%\bin\tcnative-1.dll

%TOMCAT_HOME%\conf\server.xml

<Connector
className="org.apache.coyote.tomcat4.CoyoteConnector"
acceptCount="10" bufferSize="2048"
compression="off" connectionLinger="-1"
connectionTimeout="60000" connectionUploadTimeout="300000" debug="0"
disableUploadTimeout="false" enableLookups="true" keepAlive="true"
maxKeepAliveRequests="100" maxProcessors="20" minProcessors="5"
port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="true" sslProtocol="TLS" SSLCertificateFile="D:\pascalbotte\server.jks"
SSLPassword="serverprivatekey"

---------------------------------

但我有一些問題

我在執行eclipse helloworld.jsp 時出現這個

2008年9月29日 下午04:15:24 org.apache.catalina.core.AprLifecycleListener init
資訊: Loaded Apache Tomcat Native library 1.1.15.
2008年9月29日 下午04:15:24 org.apache.catalina.core.AprLifecycleListener init
資訊: APR capabilities: IPv6 [false], sendfile [true], accept filters [false], random [true].
2008年9月29日 下午04:15:25 org.apache.coyote.http11.Http11AprProtocol init
資訊: Initializing Coyote HTTP/1.1 on http-8080
2008年9月29日 下午04:15:25 org.apache.coyote.http11.Http11AprProtocol init
嚴重的: Error initializing endpoint
java.lang.Exception: Unable to load certificate key D:\pascalbotte\server.jks (error:0906D06CTongueEM routinesTongueEM_read_bio:no start line)

----------------------------------------

用了tcnative-1.dll 就是不是不再支援 jks 的keystore 只能用 pem 的keystore???


reply to postreply to post
作者 Re:關於Tomcat 6.0.16配置在eclipse 3.3啟動時的錯誤解決方法 [Re:oldmemory]
leopold2051





發文: 17
積分: 0
於 2010-09-06 02:08 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
各位大大您好!

小弟安裝了 tcnative-1.dll 之後,
在eclipse啟動tomcat,console仍然有警告欸...... @@"

1
2
3
4
5
6
7
資訊: An older version 1.1.17 of the APR based Apache Tomcat Native library is installed, while Tomcat recommends a minimum version of 1.1.20
2010/9/6 上午 01:57:48 org.apache.catalina.core.AprLifecycleListener init
資訊: Loaded APR based Apache Tomcat Native library 1.1.17.
2010/9/6 上午 01:57:48 org.apache.catalina.core.AprLifecycleListener init
資訊: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
2010/9/6 上午 01:57:48 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:NIP' did not find a matching property.


到底還有哪邊有問題呢?
再拜託各位高手解答一下!
感激!


reply to postreply to post
作者 Re:關於Tomcat 6.0.16配置在eclipse 3.3啟動時的錯誤解決方法 [Re:leopold2051]
oldmemory

海無界、心有帆



發文: 95
積分: 2
於 2010-09-06 13:21 user profilesend a private message to usersend email to oldmemoryreply 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 6.0.16配置在eclipse 3.3啟動時的錯誤解決方法 [Re:oldmemory]
leopold2051





發文: 17
積分: 0
於 2010-09-06 15: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
大大您好,
以下是我的工作環境:
os是:Windows 7 企業版
Tomcat : Tomcat 7.0
Eclipse : eclipse-jee-helios-win32-x86_64.zip
jre:Java\jre6
jdk:Java\jdk1.6.0_16


reply to postreply to post
作者 Re:關於Tomcat 6.0.16配置在eclipse 3.3啟動時的錯誤解決方法 [Re:leopold2051]
oldmemory

海無界、心有帆



發文: 95
積分: 2
於 2010-09-08 17:43 user profilesend a private message to usersend email to oldmemoryreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
基本上,我現在在使用的環境和你大同小異,
但,我的os目前是64位元,
我想,你的tomcat要不要先換到tomcat 6.0.29的版本試試。

我是使用免安裝版本的tomcat,有設定JAVA_HOME的環境變數,
所以,我把TOMCAT解壓後,就放在固定位置,
然後到ECLIPSE裡面去設定SERVER的環境,
其餘就沒有特別去設定。

先試試看,若不行在反應一下,謝謝。


reply to postreply to post
作者 Re:關於Tomcat 6.0.16配置在eclipse 3.3啟動時的錯誤解決方法 [Re:oldmemory]
mikehong





發文: 1
積分: 0
於 2010-09-20 11:20 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
各位大大好:

先提一下小弟的環境

windows 7 64bit
tomcat 6.0.29
Eclipse : eclipse-jee-helios-win32-x86_64.zip

jdk:Java\jdk1.6.0_21 (我也有灌32bit的jdk 但是使用64bit)
jre : Java\jre 6

環境變數設定如下
JAVA_HOME  C:\Program Files\Java\jdk1.6.0_21\
CLASSPATH  C:\Program Files\Java\jdk1.6.0_21\lib

我的問題和 leopold2051大 挺像,而我的網頁有成功執行。
但是我在下載完 tcnative-1.dll 後,發現 tomcat 6.0.29 已經有這個檔案了。

這邊列出警告訊息

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2010/9/20 上午 10:59:13 org.apache.catalina.core.AprLifecycleListener init
資訊: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_21\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jdk1.6.0_21/bin/../jre/bin/server;C:/Program Files/Java/jdk1.6.0_21/bin/../jre/bin;C:/Program Files/Java/jdk1.6.0_21/bin/../jre/lib/amd64;C:\Program Files\Java\jdk1.6.0_21\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\EgisTec MyWinLocker\x86;C:\Program Files (x86)\EgisTec MyWinLocker\x64;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\
2010/9/20 上午 10:59:13 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:jsp_1' did not find a matching property.
2010/9/20 上午 10:59:13 org.apache.coyote.http11.Http11Protocol init
資訊: Initializing Coyote HTTP/1.1 on http-8080
2010/9/20 上午 10:59:13 org.apache.catalina.startup.Catalina load
資訊: Initialization processed in 607 ms
2010/9/20 上午 10:59:13 org.apache.catalina.core.StandardService start
資訊: Starting service Catalina
2010/9/20 上午 10:59:13 org.apache.catalina.core.StandardEngine start
資訊: Starting Servlet Engine: Apache Tomcat/6.0.29
2010/9/20 上午 10:59:13 org.apache.coyote.http11.Http11Protocol start
資訊: Starting Coyote HTTP/1.1 on http-8080
2010/9/20 上午 10:59:13 org.apache.jk.common.ChannelSocket init
資訊: JK: ajp13 listening on /0.0.0.0:8009
2010/9/20 上午 10:59:13 org.apache.jk.server.JkMain start
資訊: Jk running ID=0 time=0/20  config=null
2010/9/20 上午 10:59:13 org.apache.catalina.startup.Catalina start
資訊: Server startup in 344 ms


請問這是我安裝有錯誤嗎? 是 tomcat 沒設定好或是 eclipse 的問題?


mikehong edited on 2010-09-20 12:25
reply to postreply to post
作者 Re:關於Tomcat 6.0.16配置在eclipse 3.3啟動時的錯誤解決方法 [Re:oldmemory]
tzutolin



版主

發文: 335
積分: 4
於 2010-12-24 20:47 user profilesend a private message to usersend email to tzutolinreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
To get rid of this error:

WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server: (project name)' did not find a matching property.

Please refer to the following paragraph for the answer.


The solution to this problem is very simple. Double click on your tomcat server. It will open the server configuration. Under server options check ‘Publish module contents to separate XML files’ checkbox. Restart your server. This time your page will come without any issues.


Reference link:
http://stackoverflow.com/questions/104854/setpropertiesrule-warning-message-when-starting-tomcat-from-eclipse


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