I have defined my JPA entities and then tried to execute the Java2wsdl command, but I got the following error:
JavaToWSDL Error : java.lang.ClassCastException: com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$5 cannot be cast to com.sun.xml.bind.v2.model.impl.ClassInfoImpl I am using JAXB binding and thought the wsdl generation would be no problem. Any ideas on this problem. @WebService(name="TestOps", targetNamespace="http://test/") @SOAPBinding(style=SOAPBinding.Style.RPC, use=SOAPBinding.Use.LITERAL) public interface TestOps { @WebResult(targetNamespace="http://test/", name="activeUsages", partName="activeUsages") @WebMethod(operationName="getServiceUsage", exclude=false) public List<ServiceUsage> getServiceUsage(); } And I attached the entities: Thanks, http://www.nabble.com/file/p12221320/Customer.java Customer.java http://www.nabble.com/file/p12221320/ServiceUsage.java ServiceUsage.java http://www.nabble.com/file/p12221320/ServiceUsageDetail.java ServiceUsageDetail.java -- View this message in context: http://www.nabble.com/Java2Wsdl-Error-%3A-ClassCastException-tf4293141.html#a12221320 Sent from the cxf-user mailing list archive at Nabble.com.
