spring,cxf,jax-ws,autowired,jaxws-maven-plugin
Given NoClassDefFoundError: Could not initialize class org.apache.cxf.common.injection.ResourceInjector I would guess that there's a problem with the static initialization in ResourceInjector due to class loading issues. When you look at the source code of ResourceInjector you'll notice that it has a static initializer that uses javax.annotation.Resource. I'm am not familiar with...
java,xpath,xsd,jax-ws,jaxws-maven-plugin
I've found the solution here: JAXB Customizations With a Poorly Formed WSDL I had to add /xs:complexType at the end of the Xpath. I guess it's because the root of the class is in fact the complexType and not enclosing xs:element. So it was like this: <jaxb:bindings node="//xs:complexType[@name='TrafficCountsReplyData']//xs:element[@name='counts']/xs:complexType/xs:sequence/xs:element[@name='item']/xs:complexType"> <jaxb:class name="Lulz"/>...