RandomIgnorant

            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
            4 隨筆 :: 0 文章 :: 8 評(píng)論 :: 0 Trackbacks

          2006年8月18日 #

          分析web.xml文檔之前我想先說一下web.xml中根元素<web-app>各子元素的順序問題,因?yàn)樵趙eb.xml中元素定義的先后順序是不能顛倒的(除非在web.xml文件中使用XML ? Schema,本文不做討論),否則Tomcat服務(wù)器可能拋出SAXParseException
          <web-app> ?
          ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? <display-name> ?
          ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? <description> ?
          ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? <distributable> ?
          ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? <context-param> ?
          ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? <filter> ?
          ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? <filter-mapping> ?
          ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? <servlet> ?
          ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? <servlet-mapping> ?
          ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? <session-config> ?
          ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? <mime-mapping> ?
          ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? <welcome-file-list> ?
          ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? <error-page> ?
          ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? <taglib> ?
          ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? <resource-env-ref> ?
          ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? <resource-ref> ?
          ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? <security-constraint> ?
          ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? <login-config> ?
          ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? <security-role> ?
          ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? <env-entry> ?
          ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? <ejb-ref> ?
          ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? <ejb-local-ref>??
          </web-app>
          posted @ 2006-08-18 16:31 jim.li 閱讀(533) | 評(píng)論 (0)編輯 收藏

          sigh, 哪里有這么簡(jiǎn)單。

          0, 顯示在ie瀏覽器中
          1, 直接打開。
          2, 顯示 “打開“,“保存“ 等對(duì)話框。

          updating.

          posted @ 2006-08-18 14:44 jim.li 閱讀(2147) | 評(píng)論 (1)編輯 收藏

          2006年7月30日 #

          Rsching
          posted @ 2006-07-30 23:31 jim.li 閱讀(847) | 評(píng)論 (0)編輯 收藏

          Created MBeanServer with ID: 121cc40:10cc009d724:-8000:dalian-fa9302df:1
          15:25:14,753 INFO? [org.apache.catalina.core.AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: c:\j2sdk1.4.2_07\bin;.;C:\WINNT\system32;C:\WINNT;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32Wbem;c:\j2sdk1.4.2_07;c:\j2sdk1.4.2_07\lib
          15:25:17,907 ERROR [org.apache.coyote.http11.Http11BaseProtocol] Error initializing endpoint
          java.net.SocketException: Permission denied: listen failed
          ??????? at java.net.PlainSocketImpl.socketListen(Native Method)
          ??????? at java.net.PlainSocketImpl.listen(PlainSocketImpl.java:343)
          ??????? at java.net.ServerSocket.bind(ServerSocket.java:319)
          ??????? at java.net.ServerSocket.<init>(ServerSocket.java:185)
          ??????? at java.net.ServerSocket.<init>(ServerSocket.java:141)
          ??????? at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49)
          ??????? at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:292)
          ??????? at org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:138)
          ??????? at org.apache.catalina.connector.Connector.initialize(Connector.java:1016)
          ??????? at org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
          ??????? at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:791)
          ??????? at org.apache.catalina.startup.Catalina.load(Catalina.java:503)
          ??????? at org.apache.catalina.startup.Catalina.load(Catalina.java:523)
          ??????? at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          ??????? at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          ??????? at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          ??????? at java.lang.reflect.Method.invoke(Method.java:324)
          ??????? at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:266)
          ??????? at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)
          15:25:17,917 ERROR [org.apache.catalina.startup.Catalina] Catalina.startLifecycleException:? Protocol handler initialization failed: java.net.SocketException: Permission denied: listen failed
          ??????? at org.apache.catalina.connector.Connector.initialize(Connector.java:1018)
          ??????? at org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
          ??????? at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:791)
          ??????? at org.apache.catalina.startup.Catalina.load(Catalina.java:503)
          ??????? at org.apache.catalina.startup.Catalina.load(Catalina.java:523)
          ??????? at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          ??????? at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          ??????? at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          ??????? at java.lang.reflect.Method.invoke(Method.java:324)
          ??????? at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:266)
          ??????? at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)
          15:25:18,018 INFO? [org.apache.catalina.startup.Catalina] Initialization processed in 6630 ms
          /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */
          這個(gè)問題來到了第七天。終于在不經(jīng)意間消失了,只所以不說解決,是因?yàn)槲易龅母率牵?
          ①修改“金山毒霸-應(yīng)用規(guī)則”,更新java.exe為允許訪問網(wǎng)絡(luò)。
          ②修改“金山毒霸-應(yīng)用規(guī)則”,刪除一些不用的游戲,以及游戲輔助軟件。
          重新設(shè)置java.exe為不能訪問網(wǎng)絡(luò)后,Tomcat啟動(dòng)還是正常。但是沒辦法恢復(fù)那些已經(jīng)刪除的軟件設(shè)置了。
          以前的情況是不上網(wǎng)可以正常啟動(dòng),上網(wǎng)后更改端口也不能正常啟動(dòng),所以懷疑是這些應(yīng)用規(guī)則阻止了這些端口。
          問了好多人都沒碰到過,自己的問題看來還是要自己解決。
          posted @ 2006-07-30 23:29 jim.li 閱讀(5110) | 評(píng)論 (7)編輯 收藏

          僅列出標(biāo)題  
          主站蜘蛛池模板: 中方县| 琼结县| 固阳县| 原平市| 宁陕县| 柯坪县| 沙洋县| 成都市| 嵩明县| 涪陵区| 天门市| 云龙县| 措美县| 遵义市| 澜沧| 大埔区| 灵山县| 平武县| 东平县| 正镶白旗| 黄骅市| 聂荣县| 浙江省| 前郭尔| 镇雄县| 突泉县| 安岳县| 盖州市| 榕江县| 秦皇岛市| 加查县| 永泰县| 商丘市| 修文县| 博湖县| 怀安县| 浦江县| 塔河县| 法库县| 肥乡县| 富阳市|