Hi,
I spent almost all my day trying to solve this issue. I am consuming web
services using axis2 1.4.1 with XmlBeans binding.
Everything works fine if I consume the web services with my test clients . But
when I deploy my application to an app server (Oc4j or Oracle AS) I am getting
some errors.
When I try with jdk 1.5 it works fine..
I debugged the application and this line is the cause of the exception. It is
in request document class.
return
(org.htng.pws._2008a.guestselfservice.name.types.FetchProfileRequestDocument)org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance(type,
null);
I did some further testing and found that it is happening when I call
org.apache.xmlbeans.XmlBeans.getContextTypeLoader()
The error messages that I am getting are
1. JBO-29000: Unexpected exception caught: java.lang.IllegalAccessError,
msg=tried to access field
org.htng.pws._2008a.guestselfservice.name.types.FetchProfileRequestDocument$1.class$org$htng$pws$_2008a$guestselfservice$name$types$FetchProfileRequestDocument
from class
org.htng.pws._2008a.guestselfservice.name.types.FetchProfileRequestDocument
2. tried to access field
org.htng.pws._2008a.guestselfservice.name.types.FetchProfileRequestDocument$1.class$org$htng$pws$_2008a$guestselfservice$name$types$FetchProfileRequestDocument
from class
org.htng.pws._2008a.guestselfservice.name.types.FetchProfileRequestDocument
As I understand somehow the application server is not allowing the XMLBeans
APIs to dynamically load the classes ..But I couldn't find a way to convince
it..
Does anybody have any idea by any chance?
Thanks a lot
-ms