I am using Apache CXF cxf-codegen-plugin Maven plugin to generate sources from WSDL file. Problem is that I get JAXBElement<String> generated instead of String. I have added the jaxb-bindings.xml file which looks like this: This should prevent JAXB to generate JAXBElement<String>. But it is not working I still have JAXBElement<String> generated instead of String. My Maven plugin looks like this:
Tag: wsdl2java
Access restriction on class due to restriction on required library rt.jar?
I’m attempting to compile Java 1.4 code that was created by IBM’s WSDL2Java on Java5 without recreating the stubs and saw this error in Eclipse. I’m under the assumption that the stubs generated should just compile as long as the runtime jars are available (they are). Access restriction: The type QName is not accessible due to restriction on required library