Hello all! Has anybody succeeded to deploy a JSR-181 EJB Endpoint, created by https://jax-ws.dev.java.net/?
I am trying to use JAX-WS 2.0 with JbossWS 1.0.3. I have done the following: - Launched jboss-4.0.5.GA + jboss-EJB-3.0_RC9-FD + jbossws-1.0.3.GA. - Generated all JAXB entities + ..PortType.java interface + ..Service.java class using the wsimport as written in https://jax-ws.dev.java.net/nonav/jax-ws-21-ea2/docs/UsersGuide.html#3.1.2.1_Generate_a_Service_Endpoint_Interface_. - Implemented ..PortType.java (..PortTypeImpl.java) and turned it to JSR-181 EJB Endpoint: // Standard EJB3 annotations: | @Local(..LocalInterface.class) | @Stateless | // Standard JSR181 annotations: | @WebService(name = "..PortType", wsdlLocation="META-INF/wsdl/Search.wsdl", targetNamespace = "https://webservices.dot.com/services") | @SOAPBinding(style = SOAPBinding.Style.RPC) | // JBoss propriatary annotations: | @PortComponent(contextRoot = "/service/search", urlPattern = "/*") | @LocalBinding(jndiBinding = "/ejb3/MyBean") | public class ..PortTypeImpl | implements ..LocalInterface, ..PortType | { | // EJB local interface: | public SearchRS doHotelSearch(SearchRQ request) | { | return null; | } | | @WebMethod | public SearchRS doHotelSearch(Holder<MessageHeader> ebHeader, | Holder<Security> wsseHeader, SearchRQ bodyRQ) | { | return null; | } | | @WebMethod | public InfoRS getHotelDescriptiveInfo(Holder<MessageHeader> ebHeader, | Holder<Security> wsseHeader, InfoRQ bodyRQ) | { | return null; | } | } And when deploying it I have a lot of errors like this: 02 16:02:18 ERROR [ws.metadata.wsdl.xmlschema.JBossXSErrorHandler] JBossWS_www.opentravel.org_OTA_2003_0544098.xsd[domain:http://www.w3.org/TR/xml-schema-1]::[key=src-resolve]::Message=src-resolve:Cannot resolve the name 'OTA_PayloadStdAttributes' to a(n) 'attribute group' component. | 02 16:02:18 ERROR [ws.metadata.wsdl.xmlschema.JBossXSErrorHandler] JBossWS_www.opentravel.org_OTA_2003_0544098.xsd[domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-in valid-content.1]::Message=s4s-elt-invalid-content.1: The content of '#AnonType_OTA_HotelDescriptiveInfoRS' is invalid. Element 'attributeGroup' is invalid, misplaced, or occurs too often. | ... | org.jboss.ws.WSException: Cannot load schema: [file:/usr/local/jboss-4.0.5.GA/server/default/tmp/jbossws/JBossWS_www.opentravel.org_OTA_2003_0544099.xsd, file:/usr/local/jboss-4.0.5.GA/server/default/tmp/jbossws/JBossWS_schemas.xmlsoap.org_ws_2002_12_secext44092.xsd, file:/usr/local/jboss-4.0.5.GA/server/default/tmp/jbossws/JBossWS_schemas.xmlsoap.org_soap_envelope_44094.xsd, file:/usr/local/jboss-4.0.5.GA/server/default/tmp/jbossws/JBossWS_www.ebxml.org_namespaces_messageHeader44090.xsd] | at org.jboss.ws.tools.JavaToXSD.parseSchema(JavaToXSD.java:172) | at org.jboss.ws.metadata.wsdl.WSDL11Reader.processTypes(WSDL11Reader.java:227) | at org.jboss.ws.metadata.wsdl.WSDL11Reader.processDefinition(WSDL11Reader.java:118) | at org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:145) Is it possible at all? Any ideas? Thanks a lot. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982888#3982888 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982888 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
