Hi at all,
I´m new to jBoss (5.1.0 GA) and it´s web service features. I´ve a problem which I wasn´t able to resolve the last days.
I´ve created web services from wsdl's and built in a schema validation. I tested it with soapUI but got the following error every time I inserted a wrong data type: java.lang.IllegalAccessError: tried to access class com.sun.xml.bind.v2.runtime.reflect.opt.Const from class ...
As far as i know, it´s a bug with the JAX-WS components (described e.g. in http://www.java.net/node/674944 or in the discussion of http://one-size-doesnt-fit-all.blogspot.com/2009/04/jax-ws-schemavalidation-custom-handler.html).
My idea was to update the JAX-WS components but I didn´t find a guidance (or similar) how to do this. How can I do this? Or am I on the wrong way with my idea?
Solved this issue by copying the files jaxb1-impl.jar, jaxb-impl.jar and jaxb-xjc.jar to the %jboss_home%/lib/endorsed directory. The mentioned files can be found with within the reference implementation of JAX-B (tested with versions 2.1.13 and 2.2.4) which can be downloaded from http://jaxb.java.net/.