users@jaxb.java.net

com.sun.xml.bind.ContextFactory could not be instantiated exc eption

From: Zhidong Zhao <zzhao_at_CS.UNO.EDU>
Date: Tue, 11 Feb 2003 09:20:57 -0700

I'm using jaxb with oc4j 9.0.2 and 9.0.3 too.
My solution was to create an ObjectFactory instance to replace JAXBContext, though this was not perfered by Ray Shoemaker. This is currently the only way to get things work in a container.

<Sriram_Thyagarajan_at_KEANE-NNE.com> wrote:

>> Hi,
>>
>> I am getting the following error using JAXB with Oracle App server 9.0.2.
>> I also saw there were few positings in java.sun.com forum for the same
>> problem.
>>
>> How can I over come this problem ? Is there any workarounds if it is a
>> know bug ?
>>
>> Thanks,
>> Sriram
>>
>>
>> Provider com.sun.xml.bind.ContextFactory could not be instantiated:
>> java.lang.reflect.InvocationTargetException
>> |javax.xml.bind.JAXBException: Provider com.sun.xml.bind.ContextFactory
>> could not be instantiated: java.lang.reflect.InvocationTargetException
>>
>> - with linked exception:
>> [java.lang.reflect.InvocationTargetException]
>> void javax.xml.bind.JAXBException.<init>(java.lang.String,
>> java.lang.Throwable)
>> JAXBException.java:77
>> java.lang.Object
>> javax.xml.bind.ContextFinder.newInstance(java.lang.String,
>> java.lang.String, java.lang.ClassLoader)
>> ContextFinder.java:105
>> java.lang.Object
>> javax.xml.bind.ContextFinder.searchcontextPath(java.lang.String,
>> java.lang.String, java.lang.ClassLoader)
>> ContextFinder.java:200
>> java.lang.Object javax.xml.bind.ContextFinder.find(java.lang.String,
>> java.lang.String, java.lang.ClassLoader)
>> ContextFinder.java:126
>> javax.xml.bind.JAXBContext
>> javax.xml.bind.JAXBContext.newInstance(java.lang.String,
>> java.lang.ClassLoader)
>> JAXBContext.java:274
>>