This content has been marked as final.
Show 6 replies
-
1. Re: JAVA 6 compatibility with Castor and Xerces
807580 May 14, 2007 12:29 PM (in response to 807580)Your suspicions are well founded.
For one, Xerces doesn't support Java 6 yet.
The general rule here is to double-check if the libs that you're using are up-to-date with the newer jdk you want to use, before making the actual shift of Java version. -
2. Re: JAVA 6 compatibility with Castor and Xerces
807580 May 14, 2007 1:16 PM (in response to 807580)Hi,
Thanks for your reply.
For one, Xerces doesn't support Java 6 yet.
what should I do then ? Do u know any replacement for Xerces compatible with JAVA 6 ?
Thanks,
Rawad. -
3. Re: JAVA 6 compatibility with Castor and Xerces
807580 May 14, 2007 1:22 PM (in response to 807580)
No. The reasonable thing to do right now is to revert to Java 5...For one, Xerces doesn't support Java 6 yet.
what should I do then ? Do u know any replacement for
Xerces compatible with JAVA 6 ? -
4. Re: JAVA 6 compatibility with Castor and Xerces
807580 Aug 18, 2009 5:03 PM (in response to 807580)I have also faced this same issue ..
following can be resolve this issue for you
In the begining of the application set the following factory.
System.setProperty("javax.xml.parsers.DocumentBuilderFactory","com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImp");
DocumentImpl is refered from the package org.apache.xerces.dom.DocumentImpl instead of com.sun.org.apache.xerces.internal.dom.DocumentImpl
org.apache.xerces.dom.DocumentImpl.getXmlStandalone()Z
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.setDocumentInfo(DOM2TO.java:373)
Kindly post if you face any problem with this solution
Regards,
Piyush -
5. Re: JAVA 6 compatibility with Castor and Xerces
796447 Aug 18, 2009 5:08 PM (in response to 807580)vjpiyush wrote:
I'm sure after over *2 years* the OP can finally put this to rest now that you've come to save the day.
I have also faced this same issue ..
following can be resolve this issue for you
...
Please stop resurrecting long-dead topics. -
6. Re: JAVA 6 compatibility with Castor and Xerces
PhHein Aug 18, 2009 5:09 PM (in response to 807580)Thanks for the contribution, but please don't revive long dead threads. Locking.