Hi, We are using CXF 2.3 and Java 5 along with Maven 2.0.9 in our environment. We are having a WSDL first approach and using the wsdl2java goal to generate the target classes. I'm seeing a public class MyService extends Service class being generated which has an annotation of @WebServiceClient.
The build is working successfully with Java 5. No compilation errors there. But when I open it in Idea which is also running Java 5, I see compilation errors for @WebServiceClient not found. Then I pull in the Javaee-Api-5 dependency, and next thing I run into is compilation error on that generated class for Service - Service - No Constructor found for (URL, QName, WebServiceFeature..) I'm confused as to what's going on here. Why would my build work with Java 5, but Idea complain? The errors in IDEA go away when I point it to use Java 6. Can someone help me understand how CXF is handling these annotatios? Thanks, Dipti Vaidya -- View this message in context: http://cxf.547215.n5.nabble.com/WebServiceClient-annotation-in-CXF-2-3-generated-code-wont-compile-in-Java-5-IDE-tp3358501p3358501.html Sent from the cxf-user mailing list archive at Nabble.com.
