users@jaxb.java.net

java.lang.IllegalAccessError occured during JAXBContext.newInstance("package name");

From: yankings <yankings_at_hotmail.com>
Date: Tue, 2 Dec 2008 18:20:47 -0800 (PST)

Hi,

i am try to perfrom marshalling by JAXB 2.1.6, the marshalling process is
carried out inside a session bean, exception is throw when the system
reached this statement JAXBContext context =
JAXBContext.newInstance("package name");

The exception message is :
java.lang.IllegalAccessError: tried to access class
javax.xml.bind.ContextFinder from class javax.xml.bind.JAXBContext
oracle.oc4j.rmi.OracleRemoteException: java.lang.IllegalAccessError: tried
to access class javax.xml.bind.ContextFinder from class
javax.xml.bind.JAXBContext

I try to switch the marshalling process to a standalone java class (just
have void main method), the process works fine, can someone help me above
this?

Thanks A lot!!

-- 
View this message in context: http://www.nabble.com/java.lang.IllegalAccessError-occured-during-JAXBContext.newInstance%28%22package-name%22%29--tp20805508p20805508.html
Sent from the java.net - jaxb users mailing list archive at Nabble.com.