Bug 43106

Summary: Problem with JAXB if the bcel classloader is used
Product: BCEL - Now in Jira Reporter: Oleg Barmin <mail_moderator>
Component: MainAssignee: issues <issues>
Status: NEEDINFO ---    
Severity: normal    
Priority: P2    
Version: 5.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   

Description Oleg Barmin 2007-08-13 04:56:33 UTC
When I try to run program with a JAXB code I got an exception if the bcel
classloader is used.

Exception in thread "main" java.lang.LinkageError: Class org/xml/sax/InputSource
violates loader constraints
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(Unknown Source)
	at java.lang.ClassLoader.defineClass(Unknown Source)
	at org.apache.bcel.util.ClassLoader.loadClass(ClassLoader.java:127)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClassInternal(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
Source)
	at
advdebug.config.parser.impl.runtime.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:140)
	at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:131)
	at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:136)
	at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:145)
	at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:163)
	at test.Test.main(Test.java:47)
Comment 1 Torsten Curdt 2008-02-02 12:16:27 UTC
Can you please provide some testcase or code snippet?