users@jaxb.java.net

Cannot create ContextFactory

From: <cliff.wong_at_ORACLE.COM>
Date: Thu, 07 Nov 2002 15:30:45 -0700

This message was originally submitted by cliff.wong_at_ORACLE.COM to the
JAXB-INTEREST list at JAVA.SUN.COM. If you simply forward it back to the list,
using a mail command that generates "Resent-" fields (ask your local user
support or consult the documentation of your mail program if in doubt), it will
be distributed and the explanations you are now reading will be removed
automatically. If on the other hand you edit the contributions you receive into
a digest, you will have to remove this paragraph manually. Finally, you should
be able to contact the author of this message by using the normal "reply"
function of your mail program.

----------------- Message requiring your approval (32 lines) ------------------
Hello, I am using Oracle 9iAS with JAXB. I have a JAXB proxy class that
works fine under jdk1.3.1 and 1.4.x. Problem is when I access the class
in a EJB under Oracle 9iAS, I get a com.sun.xml.bind.ContextFactory
error. Does anyone know what class I need to substitute
(i.e. new JAX APIs) from jdk1.4.x/summer pack since I believe the conflict
is coming from a conflict between the JAXB-RI classes and
the Oracle XML parser (v2 parser). Here's the stack trace:

11/7/02 5:07 PM: java.lang.IncompatibleClassChangeError: Implementing class
11/7/02 5:07 PM: at java.lang.ClassLoader.defineClass0(Native Method)
11/7/02 5:07 PM: at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
11/7/02 5:07 PM: at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)
11/7/02 5:07 PM: at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
11/7/02 5:07 PM: at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
11/7/02 5:07 PM: at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
11/7/02 5:07 PM: at java.security.AccessController.doPrivileged(Native Method)
11/7/02 5:07 PM: at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
11/7/02 5:07 PM: at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
11/7/02 5:07 PM: at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
11/7/02 5:07 PM: at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
11/7/02 5:07 PM: at com.sun.xml.bind.ContextFactory.createContext(ContextFactory.java:27)
11/7/02 5:07 PM: at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:109)
11/7/02 5:07 PM: at javax.xml.bind.ContextFinder.searchcontextPath(ContextFinder.java:213)
11/7/02 5:07 PM: at javax.xml.bind.ContextFinder.find(ContextFinder.java:139)
11/7/02 5:07 PM: at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:282)
11/7/02 5:07 PM: at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:231)
11/7/02 5:07 PM: at lks.model.dataAccess.XmlQuery.<init>(XmlQuery.java:41)

Thanks!!!
Cliff Wong
Principle Consultant, Oracle Corp.
Reston, VA