gbk

          DOMImplementationRegistry tomcat

          Hi Michael,

          Works for me. Are you sure you were actually picking up Xerces when you tried this and not the JAXP impl in the JDK? I recall that the equivalent in Java 5 had some bugs in this area. Have you tried using the Endorsed Standards Override Mechanism [1] with xml-apis.jar, xercesImpl.jar?

          Thanks.

          [1] http://java.sun.com/j2se/1.5.0/docs/guide/standards/

          Michael Glavassevich
          XML Parser Development
          IBM Toronto Lab
          E-mail: mrglavas@xxxxxxxxxx

          E-mail: mrglavas@xxxxxxxxxx

          Michael Burbidge <mburbidg@xxxxxxxxx> wrote on 06/04/2008 01:30:01 PM:

          > I'm trying to determine the correct way to get the serializer using
          > the DOM Level 3 Load and Save functionality support by Xerces. I'm
          > using version 2.8.1. According to the book "Java and XML" this is
          > the appropriate way to get an LSSerializer:

          >
          > DOMImplementationRegistry domRegistry = DOMImplementationRegistry.
          > newInstance();

          > DOMImplementationLS domImpl = (DOMImplementationLS) domRegistry.
          > getDOMImplementation("LS");

          >
          > But when I do this the second call returns null. I'm trying to use
          > this from a servlet that is deployed to Tomcat. The xerces jar is on
          > my class path. Is there something I have to do to get the xerces
          > versions of the load and save classes registered in the registry? Is
          > there a more appropriate way to get the right LSSerializer from xerces?

          >
          > Thanks,

          > Michael-

          http://www.archivum.info/j-users@xerces.apache.org/2008-06/msg00004.html

          posted on 2009-01-05 10:33 百科 閱讀(142) 評(píng)論(0)  編輯  收藏


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


          網(wǎng)站導(dǎo)航:
           

          My Links

          Blog Stats

          常用鏈接

          留言簿(2)

          隨筆檔案

          文章檔案

          搜索

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          主站蜘蛛池模板: 周至县| 宿松县| 汾西县| 马尔康县| 文昌市| 阿克苏市| 东海县| 都江堰市| 正宁县| 瓦房店市| 淮安市| 昆山市| 建湖县| 鹤岗市| 鸡东县| 霍州市| 静宁县| 株洲县| 枣阳市| 崇仁县| 内丘县| 宜川县| 望江县| 治多县| 洛阳市| 沙河市| 灵川县| 永清县| 蓬莱市| 习水县| 沁源县| 郎溪县| 永顺县| 榆林市| 吉木萨尔县| 团风县| 灵武市| 张家川| 永康市| 武穴市| 星子县|