隨筆 - 2  文章 - 6  trackbacks - 0
          <2007年6月>
          272829303112
          3456789
          10111213141516
          17181920212223
          24252627282930
          1234567

          常用鏈接

          留言簿(1)

          隨筆檔案

          文章檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          昨天做了個struts2的小例子,在tomcat啟動時候總是出現(xiàn)“嚴重: Error filterStart”的錯誤,在折騰了一晚上才發(fā)現(xiàn),struts2是基于java5的。。。。。。
          郁悶啊。。。。。。。

          posted on 2007-04-02 23:47 weikj 閱讀(7728) 評論(6)  編輯  收藏

          FeedBack:
          # re: 關(guān)于struts2的Error filterStart 2007-06-22 15:35 andvar
          原因不是這樣的,所有l(wèi)ib包含進來后才會出現(xiàn)問題 只包含最少的jar包就可以了  回復  更多評論
            
          # re: 關(guān)于struts2的Error filterStart[未登錄] 2007-07-07 17:02 
          可以回答嗎?  回復  更多評論
            
          # re: 關(guān)于struts2的Error filterStart[未登錄] 2007-07-07 17:06 50851354
          剛好我經(jīng)歷周折后解決了:
          當classpath中包含的包和struts-blanks示列里WEB-INF\lib\下的包里的類出現(xiàn)重復時會出這樣的錯。
          也許這只是很多原因中之一,主要是別忘了去看tomcat\log\下的文件查看輸出異常——我就是后面才想起去看  回復  更多評論
            
          # re: 關(guān)于struts2的Error filterStart 2008-09-05 11:21 sasa
          由于jdk1.5 與 tomcat5.0之間的關(guān)于 TransformerFactoryImpl 類的沖突造成的。
          tomcat-5.0.28\common\endorsed下有兩個jar包:xercesImpl.jar和xml-apis.jar,其中的類 javax.xml.transform.TransformerFactory 與jdk1.5中的類org.apache.xalan.processor.TransformerFactoryImpl其實是同一個類。
          in tomcat java is called with the following argument:
          -Djava.endorsed.dirs="X:\my_app\Portal\tomcat\common\endorsed"
          In this directory you find two jar files: xercesImpl.jar and xml-apis.jar needed by tomcat and that must be loaded before all xmsl stuff present in the jdk (1.4 naming problem). And in the file xml-apis.jar the TransformerFactoryImpl is set to "org.apache.xalan.processor.TransformerFactoryImpl".

          解決辦法:
          1. 將xml-apis.jar移出endorsed文件夾。
          2. 用xalan系列jar包替換原來的xercesImpl.jar和xml-apis.jar。
          xalan系列jar包:serializer.jar、xalan.jar、xercesImpl.jar和xml-apis.jar。
          3. For other application, just check this file or dom3-xml-apis.jar in your class path.


            回復  更多評論
            
          # re: 關(guān)于struts2的Error filterStart 2008-11-27 16:52 yin
          我的JDK和TOMCAT都是1.6也不行,這是怎么回事啊,要加的包都有,也出現(xiàn)這個問題  回復  更多評論
            
          # re: 關(guān)于struts2的Error filterStart 2009-04-01 16:50 網(wǎng)友
          非常感謝,在網(wǎng)上搜了半天關(guān)于這種錯誤的原因。。總算在這里找到了答案!!  回復  更多評論
            

          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導航:
           
          主站蜘蛛池模板: 洛浦县| 田阳县| 门头沟区| 凤冈县| 册亨县| 祁阳县| 远安县| 房产| 锡林浩特市| 新沂市| 大兴区| 松阳县| 岑巩县| 额尔古纳市| 武乡县| 河北省| 交口县| 辰溪县| 鄂托克旗| 泰来县| 崇信县| 唐海县| 黑龙江省| 辰溪县| 永兴县| 简阳市| 仙游县| 浙江省| 张家港市| 格尔木市| 张掖市| 广安市| 瓦房店市| 泰兴市| 东城区| 陇西县| 大安市| 赫章县| 尼勒克县| 杭州市| 会泽县|