Ok I found the problem. The problem was java.sql.Date in ServiceUsage. I wish I had a better error message in that case I could figure it out earlier. I changed it with java.util.Date. And also I used @Temporal as part of the JPA req.
On 8/19/07, blacksheep <[EMAIL PROTECTED]> wrote: > > > 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. > > -- Mustafa Egilmezbilek
