This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Add Web Service throws Unable to generate JAX-WS client. | ||
---|---|---|---|
Product: | obsolete | Reporter: | dante <dante> |
Component: | visualweb | Assignee: | Quy Nguyen <quynguyen> |
Status: | RESOLVED DUPLICATE | ||
Severity: | blocker | ||
Priority: | P1 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Web Service import Error 1
Web Service Import Error 2 Web Service Import Error 3 WSDL Causing Issue |
Description
dante
2007-07-11 14:34:51 UTC
Created attachment 44943 [details]
Web Service import Error 1
Created attachment 44944 [details]
Web Service Import Error 2
Created attachment 44945 [details]
Web Service Import Error 3
Can you attach the wsdl file that you used? Created attachment 44977 [details]
WSDL Causing Issue
The initial import exception appear to have been resolved in NB 6.0 Build 200707110000 although when attempting to test the Web Service the following exception is thrown: com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions There's no ObjectFactory with an @XmlElementDecl for the element {urn:wsdl:sierra:msoa:servicesRequest}icon. this problem is related to the following location: at protected javax.xml.bind.JAXBElement websvc.ServiceDTO.icon at websvc.ServiceDTO at protected java.util.List websvc.GetAllServicesResponseComplexType.service at websvc.GetAllServicesResponseComplexType There's no ObjectFactory with an @XmlElementDecl for the element {urn:wsdl:sierra:msoa:servicesRequest}status. this problem is related to the following location: at protected javax.xml.bind.JAXBElement websvc.ServiceDTO.status at websvc.ServiceDTO at protected java.util.List websvc.GetAllServicesResponseComplexType.service at websvc.GetAllServicesResponseComplexType at com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:66) at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:361) at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:217) at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:76) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.xml.internal.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:76) at com.sun.xml.internal.ws.model.RuntimeModel$1.run(RuntimeModel.java:196) at java.security.AccessController.doPrivileged(Native Method) at com.sun.xml.internal.ws.model.RuntimeModel.createJAXBContext(RuntimeModel.java:193) at com.sun.xml.internal.ws.model.RuntimeModel.postProcess(RuntimeModel.java:79) at com.sun.xml.internal.ws.modeler.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:255) at com.sun.xml.internal.ws.client.ServiceContextBuilder.processAnnotations(ServiceContextBuilder.java:119) at com.sun.xml.internal.ws.client.ServiceContextBuilder.completeServiceContext(ServiceContextBuilder.java:87) at com.sun.xml.internal.ws.client.WSServiceDelegate.processServiceContext(WSServiceDelegate.java:136) at com.sun.xml.internal.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(WSServiceDelegate.java:288) at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:174) at javax.xml.ws.Service.getPort(Service.java:94) at websvc.GetAllServicesService.getGetAllServicesPort(GetAllServicesService.java:51) at websvc.GetAllServicesPortClient.<init>(GetAllServicesPortClient.java:17) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.netbeans.modules.visualweb.websvcmgr.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:300) at org.netbeans.modules.visualweb.websvcmgr.ui.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:1011) at java.lang.Thread.run(Thread.java:619) Caused: javax.xml.ws.WebServiceException at com.sun.xml.internal.ws.model.RuntimeModel.createJAXBContext(RuntimeModel.java:201) at com.sun.xml.internal.ws.model.RuntimeModel.postProcess(RuntimeModel.java:79) at com.sun.xml.internal.ws.modeler.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:255) at com.sun.xml.internal.ws.client.ServiceContextBuilder.processAnnotations(ServiceContextBuilder.java:119) at com.sun.xml.internal.ws.client.ServiceContextBuilder.completeServiceContext(ServiceContextBuilder.java:87) at com.sun.xml.internal.ws.client.WSServiceDelegate.processServiceContext(WSServiceDelegate.java:136) at com.sun.xml.internal.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(WSServiceDelegate.java:288) at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:174) at javax.xml.ws.Service.getPort(Service.java:94) at websvc.GetAllServicesService.getGetAllServicesPort(GetAllServicesService.java:51) at websvc.GetAllServicesPortClient.<init>(GetAllServicesPortClient.java:17) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.netbeans.modules.visualweb.websvcmgr.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:300) at org.netbeans.modules.visualweb.websvcmgr.ui.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:1011) [catch] at java.lang.Thread.run(Thread.java:619) The original issue appears to be resolved. The Test Service issue has already been filed. *** This issue has been marked as a duplicate of 109642 *** |