0 Replies Latest reply on Oct 10, 2003 3:56 AM by fujita

    IllegalAccessError when using JAXB

    fujita Newbie

      I'm using JAXB within a web application to perform some XML operations. So i compiled JAXB relevant classes using the JWSDP-JAXB-precompiler xjc.sh.

      When i deploy the WAR containing the JAXB classes i get an IllegalAccessError.

      This is what i get on SYSOUT:

      java.lang.IllegalAccessError: tried to access class com.wanci.dmerce.forms.impl.runtime.GrammarInfoFacade from class com.wanci.dmerce.forms.impl.runtime.DefaultJAXBContextImpl
      at com.wanci.dmerce.forms.impl.runtime.DefaultJAXBContextImpl.(Unknown Source)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
      at com.sun.xml.bind.ContextFactory_1_0_1.createContext(ContextFactory_1_0_1.java:50)
      ...


      Seems to be a class loader problem???

      Masanori