David.Turing's blog

           

          Problem about java.lang.LinkageError: loader constraints violated when linking javax/xml/namespace/QName class

          [Problem Description]
          http://forum.springframework.org/showthread.php?t=54451

          <19-may-2008?09H05'?CEST>?<Error>?<Deployer>?<BEA-149231>?<Unable?to?set?the?activation?state?to?true?for?the?application?'mobile-marketing'.

          weblogic.application.ModuleException:

          at?weblogic.servlet.internal.WebAppModule.startContex?ts(WebAppModule.java:
          950)
          at?weblogic.servlet.internal.WebAppModule.start(WebAp?pModule.java:
          353)
          at?weblogic.application.internal.flow.ModuleStateDriv?er$
          3.next(ModuleStateDriver.java:204)
          at?weblogic.application.utils.StateMachineDriver.next?State(StateMachineDriver.java:
          26)
          at?weblogic.application.internal.flow.ModuleStateDriv?er.start(ModuleStateDriver.java:
          60)

          Truncated.?see?log?file?
          for?complete?stacktrace

          java.lang.LinkageError:?loader?constraints?violated?when?linking?javax
          /xml/namespace/QName?class

          at?com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafI?nfoImpl.
          <clinit>(RuntimeBuiltinLeafInfoImpl.java:186)

          at?com.sun.xml.bind.v2.model.impl.RuntimeTypeInfoSetI?mpl.
          <init>(RuntimeTypeInfoSetImpl.java:25)

          at?com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder?.createTypeInfoSet(RuntimeModelBuilder.java:
          84)

          at?com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder?.createTypeInfoSet(RuntimeModelBuilder.java:
          41)

          at?com.sun.xml.bind.v2.model.impl.ModelBuilder.
          <init>?(ModelBuilder.java:104)

          Truncated.?see?log?file?
          for?complete?stacktrace


          [Suggestion by David.Turing]
          When the same class is loaded from two different classloader(weblogic system classloader and application classloader),?we will encountering this problem.
          I am sure that?weblogic use?javax/xml/namespace/QName?class and your version could be different at the build time.

          I found that javax.xml.namespace.QName locate in 3 jar in WebLogic 10:
          QName_Problem.JPG
          ?
          ?
          So could you please replace the your original jar that contains the javax.xml.namespace.QName with? D:\bea100\wlserver_10.0\server\lib\api.jar
          and then rebuild your application.
          ?
          Then try to redeploy again.

          ?

          posted on 2008-07-06 18:41 david.turing 閱讀(8853) 評論(0)  編輯  收藏 所屬分類: ★Spring TroubleShooting

          導航

          統計

          常用鏈接

          留言簿(110)

          我參與的團隊

          隨筆分類(126)

          隨筆檔案(155)

          文章分類(9)

          文章檔案(19)

          相冊

          搜索

          積分與排名

          最新隨筆

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 双辽市| 新绛县| 巴林右旗| 枣强县| 建瓯市| 邹平县| 泽州县| 昭苏县| 龙井市| 琼中| 夏津县| 凉山| 滕州市| 嘉鱼县| 眉山市| 岳阳市| 开远市| 六盘水市| 炉霍县| 禄丰县| 湘潭市| 寻乌县| 张家港市| 衡水市| 维西| 遂溪县| 孝昌县| 敦化市| 城固县| 博白县| 灯塔市| 平塘县| 当阳市| 奈曼旗| 老河口市| 延边| 公主岭市| 姚安县| 墨玉县| 和林格尔县| 枣强县|