KK

          Kim-'s-Blog.Object-Everything.I'm POJO.

          .紀-錄.爲了忘卻的記憶..真的勇士,要敢于直面遇到的問題,敢于正視繁雜的原碼......在實踐中積累!

            BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
            74 Posts :: 1 Stories :: 70 Comments :: 0 Trackbacks
          最近同事本機發布項目會出現
          Tomcat 6 使用 JDK 1.6 和 jaxb2.17 問題
          CXF 新版會用到jaxb2.17 但 Tomcat 6 JDK 會load jaxb2.0
          解決辦法:

          找到tomcat 的默認 endorsed 目錄
          the default endorsed directory is: $CATALINA_HOME/endorsed.
          如果沒有這個目錄 建這個目錄講jaxb的3個Jar包Copy來 OK
          java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI
          (from jar:file:/somedirectory/jaxb-impl.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards/)

          It's actually a very simple fix, but painful enough to warrant a post. Put the jaxb-api.jar that you're trying to use into JDK_HOME/jre/lib/endorsed. If the endorsed directory doesn't exist, make it. This is apparently only a problem with JDK 1.6, not with JDK 1.5.


          ------------------------------------------
          如Myeclipse Tomcat
          將jaxb-api-2.1.jar jaxb-impl-2.1.7.jar jaxb-xjc-2.1.7.jar
          拷貝到E:\Genuitec\Common\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_7.9.100.zmyeclipse80020090924a\tomcat
          新建的common\endorsed 目錄里 便可。
          posted on 2009-03-14 14:04 Kim' 閱讀(879) 評論(0)  編輯  收藏

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


          網站導航:
           
          jj
          主站蜘蛛池模板: 穆棱市| 舟曲县| 濮阳市| 昌都县| 增城市| 澜沧| 凉城县| 灌阳县| 清远市| 宜良县| 富平县| 雅安市| 开江县| 资兴市| 随州市| 永春县| 北安市| 阜城县| 金川县| 双辽市| 临沧市| 彭泽县| 嵩明县| 仙游县| 保山市| 南皮县| 临沧市| 陈巴尔虎旗| 长岭县| 新化县| 两当县| 金山区| 东平县| 高雄县| 通州市| 招远市| 蒙城县| 通榆县| 崇仁县| 崇义县| 于都县|