[JBossWS] - JBossXSModel goes into endless loop
by scallens
Hi,
I am new to JbossWs & JAX-WS.
I created my first Webservice, but when I want to deploy it (now using jboss-4.2.2.GA but I have the same error with other versions) JBossXSModel goes into endless loop :-(
Can anybody help me with this problem?
1. service:
package test.ws;
|
| import javax.jws.WebMethod;
| import javax.jws.WebService;
| import javax.jws.soap.SOAPBinding;
| import javax.jws.soap.SOAPBinding.ParameterStyle;
| import javax.jws.soap.SOAPBinding.Style;
| import javax.jws.soap.SOAPBinding.Use;
|
| import test.ws.xhtml.Html;
| import test.ws.xhtml.ObjectFactory;
|
| @WebService(wsdlLocation="WEB-INF/wsdl/MyService.wsdl")
| @SOAPBinding(style=Style.DOCUMENT, use=Use.LITERAL, parameterStyle=ParameterStyle.WRAPPED)
| public class MyService {
|
| @WebMethod
| public Html getHmtl() {
| return new ObjectFactory().createHtml();
| }
| }
2. wsdl-file
<definitions name="MyServiceService"
| targetNamespace="http://ws.test/"
| xmlns="http://schemas.xmlsoap.org/wsdl/"
| xmlns:tns="http://ws.test/"
| xmlns:xhtml="http://www.w3.org/1999/xhtml"
| xmlns:xsd="http://www.w3.org/2001/XMLSchema"
| xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
| <types>
| <xsd:import namespace="http://www.w3.org/1999/xhtml" schemaLocation="http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd"/>
| </types>
| <message name="MyService_getHmtl">
| <part name="getHmtl" element="tns:getHmtl"/>
| </message>
| <message name="MyService_getHmtlResponse">
| <part name="getHmtlResponse" element="tns:getHmtlResponse"/>
| </message>
| <portType name="MyService">
| <operation name="getHmtl" parameterOrder="getHmtl">
| <input message="tns:MyService_getHmtl"/>
| <output message="tns:MyService_getHmtlResponse"/>
| </operation>
| </portType>
| <binding name="MyServiceBinding" type="tns:MyService">
| <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
| <operation name="getHmtl">
| <soap:operation soapAction=""/>
| <input>
| <soap:body use="literal"/>
| </input>
| <output>
| <soap:body use="literal"/>
| </output>
| </operation>
| </binding>
| <service name="MyServiceService">
| <port name="MyServicePort" binding="tns:MyServiceBinding">
| <soap:address location="REPLACE_WITH_ACTUAL_URL"/>
| </port>
| </service>
| </definitions>
3. logfile
2008-03-12 10:58:38,906 DEBUG [org.jboss.ws.metadata.umdm.UnifiedMetaData] Eagerly initialize the meta data model
| 2008-03-12 10:58:38,906 DEBUG [org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel] Registered as anon type: {http://www.w3.org/1999/xhtml:>p} -> Complex type ...
After this, JBossXSModel goes into an endless loop...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135875#4135875
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135875
18 years, 1 month
[EJB 3.0] - How to retrieve an EJB from a JAR used in many EAR ?
by chawax
Hi,
I work with EJB3 (I am a newbie) and I have problems about state of the art way to retrieve an EJB from a JAR that will be used on many EAR projects.
I have the following EJB (generated from AndroMDA) :
<session>
| <description>
| <![CDATA[
|
| ]]>
| </description>
| <ejb-name>ServiceEmployeBean</ejb-name>
| <remote>myCompany.ServiceEmployeRemote</remote>
| <ejb-class>myCompany.ServiceEmployeBean</ejb-class>
| <session-type>Stateless</session-type>
| <transaction-type>Container</transaction-type>
| </session>
My JAR contains Seam pojo classes that need to retrieve this EJB. I could do it this way :
protected ServiceAbsenceRemote getServiceAbsence() throws Exception
| {
| if (this.serviceAbsence == null) {
| InitialContext initialContext = new InitialContext();
| this.serviceAbsence = (ServiceAbsenceRemote)
| initialContext.lookup("t4-ihm-self-ear-1.0-SNAPSHOT/ServiceAbsenceBean/remote");
| }
| return this.serviceAbsence;
| }
As you can see, the problem is that I need to prefix the EJB name with the EAR name. If I don't do that I have a "ServiceAbsenceBean" not bound message. So it looks like this JAR can be used only in one EAR and I ask myself how it could work in another EAR ?
I am sure I do something wrong, so please tell me ;)
Thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135863#4135863
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135863
18 years, 1 month