[INFO] BUILD SUCCESSFUL
但是我到E:\apache-continuum-1.1\continuum-1.1\apps\continuum\webapp\WEB-INF\working-directory\30\target
下面查看continuum構(gòu)建完之后的war包
.war\WEB-INF\classes文件夾里沒有class文件,只有properties和xml配置文件
step 1 : 生成server key
使用java/kegtool工具
keytool -genkey -alias tomcat -keyalg RSA -keypass changeit -storepass changeit -keystore e:/server.keystore -validity 3600
注:參數(shù) -validity 指證書的有效期(天),缺省有效期很短,只有90天。
step 2 : 將證書導(dǎo)入java證書信任庫(kù),服務(wù)端和客戶端都必須導(dǎo)入證書
分2步,第一步導(dǎo)出證書,第二步導(dǎo)入信任庫(kù)(tomcat為證書別名)
keytool -export -trustcacerts -alias tomcat -file server.cer -keystore e:/server.keystore -storepass changeit
keytool -import -trustcacerts -alias tomcat -file server.cer -keystore E:/Java/jdk1.6.0_03/jre/lib/security/cacerts -storepass changeit
其他有用的keytool命令
列表:keytool -list -v -keystore E:/Java/jre1.6.0_03/lib/security/cacerts
刪除:keytool -delete -trustcacerts -alias tomcat -keystore E:/Java/jdk1.6.0_03/jre/lib/security/cacerts -storepass changeit
注:E:/Java/jdk1.6.0_03/jre/lib/security/cacerts的JRE路徑和tomcat設(shè)置的E:\Java\jdk1.6.0_03\jre\bin\client\jvm.dll路徑相同
step 3 : 配置tomcat server.xml,服務(wù)端和客戶端都必須配置
tomcat6.0加入以下xml代碼
<Connector protocol="org.apache.coyote.http11.Http11Protocol"
port="8443" minSpareThreads="5" maxSpareThreads="75"
enableLookups="true" disableUploadTimeout="true"
acceptCount="100" maxThreads="200"
scheme="https" secure="true" SSLEnabled="true"
keystoreFile="e:/server.keystore" keystorePass="changeit"
clientAuth="false" sslProtocol="TLS"/>
參考:http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html
反復(fù)檢查多變,排除程序問題,那么問題就出在windows身上,2003的安全比較高,所以本身屏蔽了比較多的服務(wù),而且對(duì)登錄程序的用戶也又限制.默認(rèn)的登錄tomcat的帳戶應(yīng)該是system用戶(沒有具體查證),本地帳戶不具有訪問網(wǎng)絡(luò)的權(quán)限.問題找到了.
打開 服務(wù)管理,配置Tomcat服務(wù)屬性里的登錄帳戶,修改登錄帳戶為具有訪問網(wǎng)絡(luò)的帳戶(你可以修改為administrator試試).
問題還沒有完全解決,tomcat只能通過\\192.168.0.202\files網(wǎng)絡(luò)路徑的形式訪問共享,不能通過網(wǎng)絡(luò)映射驅(qū)動(dòng)器訪問(Y:\files)
由于時(shí)間緊迫.所有沒有去研究windows2003哪個(gè)服務(wù)屏蔽administrator訪問網(wǎng)絡(luò)映射驅(qū)動(dòng)器的權(quán)限.下次有時(shí)間再研究
環(huán)境,兩臺(tái)主機(jī) 操作系統(tǒng)都是 window2003,主機(jī)A映射一個(gè)主機(jī)B的網(wǎng)絡(luò)磁盤
在開發(fā)環(huán)境windows xp home版可以正常的往主機(jī)B的網(wǎng)絡(luò)磁盤寫文件
拿到服務(wù)器上就完蛋,拋出異常java.io.FileNotFoundException
拿同事的機(jī)器(同樣是home版)跑tomcat,也能正常寫.
起初以為是系統(tǒng)登錄用戶的問題.兩臺(tái)主機(jī)都建立同樣的用戶和密碼,再測(cè)試還是失敗.
換個(gè)方法建立域帳戶,把兩臺(tái)主機(jī)都加入到域里面,使用同樣域帳戶登陸主機(jī),最后失敗中的失敗.
實(shí)在搞不明白.如果不行就換linux了
還做了一個(gè)測(cè)試,在主機(jī)A上寫了個(gè)普通的class,cmd java class執(zhí)行,執(zhí)行一個(gè)寫往主機(jī)B網(wǎng)絡(luò)磁盤寫文件的操作,可以寫過去,但是在tomcat環(huán)境下卻寫不過去..why....
今天研究了下TOMCAT集群,遇到問題,望解答!環(huán)境是一樣的2臺(tái)機(jī)器(下面用tomcat1,tomcat2來表示這兩臺(tái)機(jī)器)
按照官方網(wǎng)站的文檔配置,2個(gè)服務(wù)器都能正常起來。而且都監(jiān)聽到了對(duì)方的存在,下面是輸出信息:
信息: Verification complete. Member disappeared[org.apache.catalina.tribes.membership.MemberImpl[tcp://WDGJ-14:4001,WDGJ-14,4001, alive=1608998,id={101 20 -85 1 -96 113 79 34 -116 24 -43 -93 27 -49 -87 44 }, payload={}, command={}, domain={}, ]]
web.xml的 <distributable/> 已經(jīng)配置了
使用同一個(gè)IE窗口訪問2個(gè)服務(wù)得到的SESSION ID不同,在tomcat1保存一個(gè)session attribute,在tomcat2上沒有,得到結(jié)果,配置失敗。SESSION沒有被復(fù)制到另一個(gè)服務(wù)。望高手幫幫忙!
我沒有做負(fù)載均衡,只做了集群。
以下是tomcat官網(wǎng)上的原話,不知道是不是我沒理解明白,誰(shuí)能再給說明下:
1.All your session attributes must implement java.io.Serializable
2.Uncomment the Cluster element in server.xml
If you have defined custom cluster valves, make sure you have the ReplicationValve defined as well under the Cluster element in server.xml
3.If your Tomcat instances are running on the same machine, make sure the tcpListenPort attribute is unique for each instance, in most cases Tomcat is smart enough to resolve this on it 's own by autodetecting available ports in the range 4000-4100
4.Make sure your web.xml has the <distributable/> element or set at your <Context distributable= "true " />
5.If you are using mod_jk, make sure that jvmRoute attribute is set at your Engine <Engine name= "Catalina " jvmRoute= "node01 " > and that the jvmRoute attribute value matches your worker name in workers.properties
6.Make sure that all nodes have the same time and sync with NTP service!
7.Make sure that your loadbalancer is configured for sticky session mode.
兩個(gè)TOMCAT的server.xml唯一不同的地方就是Receiver的監(jiān)聽端口,一個(gè)是4000一個(gè)是4001
server.xml文件如下:
<Server port= "8005 " shutdown= "SHUTDOWN ">
<Listener className= "org.apache.catalina.core.AprLifecycleListener " SSLEngine= "on " />
<Listener className= "org.apache.catalina.core.JasperListener " />
<Listener className= "org.apache.catalina.mbeans.ServerLifecycleListener " />
<Listener className= "org.apache.catalina.mbeans.GlobalResourcesLifecycleListener " />
<GlobalNamingResources>
<Resource name= "UserDatabase " auth= "Container "
type= "org.apache.catalina.UserDatabase "
description= "User database that can be updated and saved "
factory= "org.apache.catalina.users.MemoryUserDatabaseFactory "
pathname= "conf/tomcat-users.xml " />
</GlobalNamingResources>
<Service name= "Catalina ">
<Connector port= "80 " protocol= "HTTP/1.1 "
connectionTimeout= "20000 "
redirectPort= "8443 " />
<Connector port= "8009 " protocol= "AJP/1.3 " redirectPort= "8443 " />
<Engine name= "Catalina " defaultHost= "localhost ">
<Cluster className= "org.apache.catalina.ha.tcp.SimpleTcpCluster "
channelSendOptions= "8 ">
<Manager className= "org.apache.catalina.ha.session.DeltaManager "
expireSessionsOnShutdown= "false "
notifyListenersOnReplication= "true "/>
<Channel className= "org.apache.catalina.tribes.group.GroupChannel ">
<Membership className= "org.apache.catalina.tribes.membership.McastService "
address= "228.0.0.4 "
port= "45564 "
frequency= "500 "
dropTime= "3000 "/>
<Receiver className= "org.apache.catalina.tribes.transport.nio.NioReceiver "
address= "auto "
port= "4000 "
autoBind= "100 "
selectorTimeout= "5000 "
maxThreads= "6 "/>
<Sender className= "org.apache.catalina.tribes.transport.ReplicationTransmitter ">
<Transport className= "org.apache.catalina.tribes.transport.nio.PooledParallelSender "/>
</Sender>
<Interceptor className= "org.apache.catalina.tribes.group.interceptors.TcpFailureDetector "/>
<Interceptor className= "org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor "/>
</Channel>
<Valve className= "org.apache.catalina.ha.tcp.ReplicationValve "
filter= " "/>
<Valve className= "org.apache.catalina.ha.session.JvmRouteBinderValve "/>
<Deployer className= "org.apache.catalina.ha.deploy.FarmWarDeployer "
tempDir= "/tmp/war-temp/ "
deployDir= "/tmp/war-deploy/ "
watchDir= "/tmp/war-listen/ "
watchEnabled= "false "/>
<ClusterListener className= "org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener "/>
<ClusterListener className= "org.apache.catalina.ha.session.ClusterSessionListener "/>
</Cluster>
<Realm className= "org.apache.catalina.realm.UserDatabaseRealm "
resourceName= "UserDatabase "/>
<Host name= "localhost " appBase= "webapps "
unpackWARs= "true " autoDeploy= "true "
xmlValidation= "false " xmlNamespaceAware= "false ">
</Host>
</Engine>
</Service>
</Server>
原文:Malware reviews via Webmaster Tools
發(fā)表于: 2007年8月13日,星期一,12:27PM
在過去的一年里,受流氓/惡意軟件感染的網(wǎng)站數(shù)目從每周幾個(gè)增長(zhǎng)到每周數(shù)千。在我們以前的帖子“關(guān)于惡意軟件警告”以及“停止惡意軟件討論組”里,我們聽到了一些你們的建議,也就是改善我們與被感染網(wǎng)站的站長(zhǎng)的交流。現(xiàn)在,我們的站長(zhǎng)工具可以重新評(píng)估感染惡意軟件的網(wǎng)站。
通過我們,對(duì)搜索結(jié)果加上“惡意軟件”標(biāo)記”或是在站長(zhǎng)工具里對(duì)你網(wǎng)站的一個(gè)總的概括,你可能發(fā)現(xiàn)你的網(wǎng)站感染了惡意軟件。我們現(xiàn)在已經(jīng)簡(jiǎn)化了審查程序,使 Google(谷歌)在你的網(wǎng)站時(shí)去掉“惡意軟件的標(biāo)簽:
1. 在站長(zhǎng)工具里看一看你的感染了惡意軟件的 URL 的樣本。
2. 根據(jù) StopBadware.org 網(wǎng)站的安全提示對(duì)你的網(wǎng)站作出必要的改動(dòng)。
3. 新做法:使用站長(zhǎng)工具要求谷歌重新評(píng)估你的網(wǎng)站。 我們會(huì)檢查你的網(wǎng)站還有沒有惡意軟件。
4. 新做法: 你可以檢查我們重新評(píng)估的狀態(tài)。
* 如果我們覺得你的網(wǎng)站仍是有害的,我們會(huì)提供你的危險(xiǎn)URL的最新名單。
* 如果我們確認(rèn)你的網(wǎng)站已經(jīng)是正常了,你可以期待我們很快(通常是 24 小時(shí)以內(nèi))清除關(guān)于你的網(wǎng)站有惡意軟件的信息。

我們鼓勵(lì)所有站長(zhǎng)去熟悉Stopbadware 的惡意軟件預(yù)防小技巧。如果你有其他問題,請(qǐng)閱讀我們的相關(guān)文獻(xiàn)或在討論組上發(fā)帖。我們希望您覺得這個(gè)在站長(zhǎng)工具中的新功能是有用的,特別是對(duì)發(fā)現(xiàn)和修正任何和惡意軟件相關(guān)的問題。我們也對(duì)你們?yōu)檎J(rèn)識(shí)和預(yù)防惡意軟件的努力表示感謝。 最近發(fā)現(xiàn)一個(gè)不錯(cuò)的網(wǎng)站 http://www.ossearch.cn 自己進(jìn)去看看就知道了. 我感覺挺好
| |||||||||
日 | 一 | 二 | 三 | 四 | 五 | 六 | |||
---|---|---|---|---|---|---|---|---|---|
26 | 27 | 28 | 29 | 30 | 31 | 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 | 1 | 2 | 3 | 4 | 5 | 6 |
常用鏈接
留言簿(1)
隨筆檔案
搜索
最新評(píng)論

- 1.?re: tomcat訪問網(wǎng)絡(luò)映射驅(qū)動(dòng)器被windows2003限制
- 搜一下”通過jcifs實(shí)現(xiàn)java訪問網(wǎng)絡(luò)共享文件“,用smb協(xié)議的java實(shí)現(xiàn)類包訪問沒有問題的。
- --阿湘哥哥
- 2.?re: 往網(wǎng)絡(luò)映射磁盤寫文件遇見的怪事
-
@么
windows2003的安全機(jī)制不允許程序往映射網(wǎng)絡(luò)磁盤里寫文件。
你直接使用網(wǎng)絡(luò)路徑寫就可以了 - --dd.zhang
- 3.?re: 往網(wǎng)絡(luò)映射磁盤寫文件遇見的怪事
- 大哥你們?cè)趺唇鉀Q的 我也遇到了 沒有思路啊
- --么
- 4.?re: tomcat訪問網(wǎng)絡(luò)映射驅(qū)動(dòng)器被windows2003限制
- 評(píng)論內(nèi)容較長(zhǎng),點(diǎn)擊標(biāo)題查看
- --dd.zhang
- 5.?re: tomcat訪問網(wǎng)絡(luò)映射驅(qū)動(dòng)器被windows2003限制
- 評(píng)論內(nèi)容較長(zhǎng),點(diǎn)擊標(biāo)題查看
- --dd.zhang