posts - 2, comments - 27, trackbacks - 0, articles - 60
            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理
          在將一個Tomcat項目遷移到JBOSS時,出現(xiàn)了一點問題,就是配置好的eWebEditor不能用了,控制臺里報以下的錯誤
          Exception in JSP: /eWebEditor.jsp:54
          經(jīng)過一番折騰后又發(fā)現(xiàn)了如下的出錯提示
          java.lang.NoClassDefFoundError: org/dom4j/xpath/DefaultXPath
          后來發(fā)現(xiàn)是dom4j.jar版本不對造成的問題,JBOSS自帶的版本會出現(xiàn)上述的情況
          解決方法如下:
          將eWebEditor里自帶的dom4j.jar(476K)的文件覆蓋掉jboss4\lib\dom4j.jar(297K)即可,本文參考以下的材料

          The error "java.lang.NoClassDefFoundError: org/dom4j/xpath/DefaultXPath" underlines important changes to the dom4j XML library. It usually happens when you try to call this library's methods in runtime. Older versions that shipped with JBoss used to include Jaxen, but for whatever reason, it is no longer included. Users must download dom4j.jar (now at version 1.6.1) and then jaxen-full.jar (FCS-1.0). Now how to resolve this problem is tricky:

             1. Put dom4j-1.3.jar in {jboss}/lib. This version is known good.
             2. Put dom4j-1.6.1.jar and jaxen-full.jar in {jboss}/server/default/lib. Remove the old dom4j JARs that may exist in that directory.

          The reason the newer version cannot be used with JBoss is unknown, but it does not work. The older version is used when reading JBoss-specific config files. The newer version of dom4j kicks in when the default server is initialized. This allows development of applications using newer versions of the XML API.

          http://prideafrica.blogspot.com/2006/05/javalangnoclassdeffounderror.html

          主站蜘蛛池模板: 镇远县| 嘉禾县| 健康| 得荣县| 桃江县| 五台县| 永福县| 高密市| 乳山市| 全南县| 汾阳市| 桂林市| 招远市| 灵武市| 贡嘎县| 焉耆| 房山区| 于田县| 凤冈县| 通辽市| 金山区| 通城县| 宁夏| 扶沟县| 平和县| 秦皇岛市| 辰溪县| 家居| 香河县| 晋中市| 凉城县| 河北区| 河西区| 通州区| 台中县| 澄城县| 张家界市| 山东省| 平度市| 徐水县| 沐川县|