RandomIgnorant

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            4 隨筆 :: 0 文章 :: 8 評論 :: 0 Trackbacks
          <2025年7月>
          293012345
          6789101112
          13141516171819
          20212223242526
          272829303112
          3456789

          常用鏈接

          留言簿(1)

          隨筆分類

          隨筆檔案

          Link

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          2006年8月18日 #

          分析web.xml文檔之前我想先說一下web.xml中根元素<web-app>各子元素的順序問題,因為在web.xml中元素定義的先后順序是不能顛倒的(除非在web.xml文件中使用XML ? Schema,本文不做討論),否則Tomcat服務器可能拋出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 閱讀(537) | 評論 (0)編輯 收藏

          sigh, 哪里有這么簡單。

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

          updating.

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

          2006年7月30日 #

          Rsching
          posted @ 2006-07-30 23:31 jim.li 閱讀(849) | 評論 (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
          /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */
          這個問題來到了第七天。終于在不經意間消失了,只所以不說解決,是因為我做的更新是:
          ①修改“金山毒霸-應用規則”,更新java.exe為允許訪問網絡。
          ②修改“金山毒霸-應用規則”,刪除一些不用的游戲,以及游戲輔助軟件。
          重新設置java.exe為不能訪問網絡后,Tomcat啟動還是正常。但是沒辦法恢復那些已經刪除的軟件設置了。
          以前的情況是不上網可以正常啟動,上網后更改端口也不能正常啟動,所以懷疑是這些應用規則阻止了這些端口。
          問了好多人都沒碰到過,自己的問題看來還是要自己解決。
          posted @ 2006-07-30 23:29 jim.li 閱讀(5114) | 評論 (7)編輯 收藏

          僅列出標題  
          主站蜘蛛池模板: 顺平县| 云龙县| 南宫市| 秭归县| 丰顺县| 奎屯市| 扎兰屯市| 离岛区| 承德县| 闽侯县| 常山县| 崇左市| 仪陇县| 洛川县| 喀喇| 芜湖县| 阿鲁科尔沁旗| 泾阳县| 贵州省| 尖扎县| 五家渠市| 沁阳市| 抚顺市| 大名县| 美姑县| 越西县| 如东县| 达孜县| 腾冲县| 新密市| 商都县| 类乌齐县| 黄浦区| 油尖旺区| 余干县| 澎湖县| 仙居县| 嘉祥县| 隆德县| 文水县| 寿宁县|