IllegalAccessError from JAXB in EAP 5

Solution In Progress - Updated -

Issue

When using JBossWS (a JAX-WS endpoint) in EAP 5, I get the following error:

16:01:08,761 ERROR [[PCIService]] Servlet.service() for servlet PCIService threw exception
java.lang.IllegalAccessError: tried to access class com.sun.xml.bind.v2.runtime.reflect.opt.Const from class com.rehdat.gss.test.TestProperty$JaxbAccessorF_testProp
      at com.redhat.gss.test.TestProperty$JaxbAccessorF_testProp.set(FieldAccessor_Integer.java:59)
      at com.sun.xml.bind.v2.runtime.unmarshaller.XsiNilLoader$Single.onNil(XsiNilLoader.java:92)
      at com.sun.xml.bind.v2.runtime.unmarshaller.XsiNilLoader.selectLoader(XsiNilLoader.java:67)
      at com.sun.xml.bind.v2.runtime.unmarshaller.ProxyLoader.startElement(ProxyLoader.java:53)
      at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:455)
      at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:433)
      at com.sun.xml.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElement(InterningXmlVisitor.java:71)
      at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:137)
      at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:240)
      at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:277)
      at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:246)
      at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:277)
      at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:246)
      at com.sun.xml.bind.unmarshaller.DOMScanner.scan(DOMScanner.java:123)
      at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:314)
      at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:293)
      at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:244)
      at org.jboss.ws.core.jaxws.JAXBDeserializer.deserialize(JAXBDeserializer.java:71)

Environment

  • JBoss Enterprise Application Platform (EAP) 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.