RE: Unable to use DocumentBuilderFactory after adding openjms to my application
"Tim Anderson" <[email protected]>
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
Try adding the following when you execute your app: > java -Djavax.xml.parsers.DocumentBuilderFactory=\ com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl \ -Djaxp.debug=1 \ <your class> See http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/parsers/DocumentBuilderFac tory.html#newInstance() for a description on DocumentBuilderFactory selects the implementation to return. -Tim > -----Original Message----- > From: openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > [mailto:openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf > Of Nicole Kidding > Sent: Tuesday, 12 July 2005 6:04 PM > To: [email protected] > Subject: [openjms-user] Unable to use DocumentBuilderFactory > after adding openjms to my application > > Hi, > > I am writing a Java application which needs to use openjms. > However when I add the openjms jar files to my list of > libraries and execute the program, at a certain point in the > code, it will complain that it could not find the > DocumentBuilderFactoryImpl of javax.xml.parsers. I suspect > that the xerces jar that is included in the openjms is > conflicting with the existing javax.xml package in the > jdk1.5. Is there any way I can change the openjms to use the > jdk1.5 instead of pointing to the xerces2.3? Appreciate any help. > Thanks. > > Regards, > Nicole ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar