You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Andrew Klimov <an...@yahoo.com> on 2002/06/13 10:45:18 UTC

Deploy EJB from Borland AppServer to Axis

Hi!

I've a Borland AppServer 4.5.1and Tomcat-3.3a under Linux.

I had put EJB classes into /WEBAPPS/axis/WEB-INF/classes directory of Tomcat.  WSDD descriptor looks as follows:

//***************         foto_deploy.wsdd ***********************//

<deployment xmlns="http://xml.apache.org/axis/wsdd/"
            xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
 <service name="MyAuth" provider="java:EJB">
  <parameter name="className" value="fotos.imagebank.database.AuthRemote"/>
  <parameter name="beanJndiName" value="fotos.imagebank.database.Auth"/>
   <parameter name="allowedMethods" value="findAll"/>
   <parameter name="homeInterfaceName" value="fotos.imagebank.database.AuthHome"/>
  <parameter name="remoteInterfaceName" value="fotos.imagebank.database.AuthRemote"/>
  <parameter name="jndiContextClass" value="com.inprise.j2ee.jndi.CtxFactory"/>
   <parameter name="jndiUrl" value="rmi://192.168.0.4:14000"/>
 </service>
</deployment>

//************************************************ end of foto-deploy.wsdd  *********************************//

Borland App Server's jars (asrt.jar and vbjorb.jar) are in the WEBAPPS/axis/WEB-INF/lib .  

java org.apache.axis.client.AdminClient deploy.wsdd works without errors. I'd seen WSDL file at

http://localhost/axis/services/MyAuth?wsdl as follows:

//************************WSDL file of MyAuth Web Service **********************//

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions 
 targetNamespace="http://localhost/axis/services/MyAuth" 
 xmlns:tns3="http://ejb.javax" 
 xmlns:tns2="http://object.database.imagebank.fotos "
 xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
 xmlns:tns1="http://xml.apache.org/xml-soap" 
 xmlns:impl="http://localhost/axis/services/MyAuth-impl" 
 xmlns:intf="http://localhost/axis/services/MyAuth" 
 xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
 xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" 
 xmlns="http://schemas.xmlsoap.org/wsdl/" 
 xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
>
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.w3.org/2001/XMLSchema">
<element name="anyType" nillable="true" type="xsd:anySimpleType"/>
</schema>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://xml.apache.org/xml-soap">
<complexType name="Vector">
<sequence>
<element name="item" minOccurs="0" maxOccurs="unbounded" type="xsd:anySimpleType"/>
</sequence>
</complexType>
<element name="Vector" nillable="true" type="tns1:Vector"/>
</schema>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://object.database.imagebank.fotos">
<complexType name="AuthData">
<complexContent>
<extension base="tns2:Data">
<sequence>
<element name="TABLE" nillable="true" type="xsd:string"/>
<element name="VIEW" nillable="true" type="xsd:string"/>
<element name="AUTH_ID" nillable="true" type="xsd:string"/>
<element name="NAME" nillable="true" type="xsd:string"/>
<element name="CONTACT" nillable="true" type="xsd:string"/>
<element name="EMAIL" nillable="true" type="xsd:string"/>
<element name="PHONE" nillable="true" type="xsd:string"/>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="Data">
<sequence>
<element name="ROWNUM" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
<element name="AuthData" nillable="true" type="tns2:AuthData"/>
</schema>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://ejb.javax">
<complexType name="EJBHome" abstract="true">
<sequence/>
</complexType>
<element name="EJBHome" nillable="true" type="tns3:EJBHome"/>
<complexType name="Handle" abstract="true">
<sequence/>
</complexType>
<element name="Handle" nillable="true" type="tns3:Handle"/>
<complexType name="EJBObject" abstract="true">
<sequence/>
</complexType>
<element name="EJBObject" nillable="true" type="tns3:EJBObject"/>
</schema>
</types>
  <wsdl:message name="getEJBHomeRequest">
  </wsdl:message>
  <wsdl:message name="deleteRequest1">
    <wsdl:part name="in0" type="tns1:Vector"/>
  </wsdl:message>
  <wsdl:message name="findByPrimaryKeyRequest">
    <wsdl:part name="in0" type="xsd:int"/>
    <wsdl:part name="in1" type="xsd:string"/>
  </wsdl:message>
  <wsdl:message name="insertResponse">
  </wsdl:message>
  <wsdl:message name="deleteRequest">
    <wsdl:part name="in0" type="xsd:anySimpleType"/>
  </wsdl:message>
  <wsdl:message name="CreateException">
  </wsdl:message>
  <wsdl:message name="findByPrimaryKeyResponse">
    <wsdl:part name="return" type="tns2:AuthData"/>
  </wsdl:message>
  <wsdl:message name="deleteResponse1">
  </wsdl:message>
  <wsdl:message name="isIdenticalRequest">
    <wsdl:part name="in0" type="tns3:EJBObject"/>
  </wsdl:message>
  <wsdl:message name="removeResponse">
  </wsdl:message>
  <wsdl:message name="findAllResponse">
    <wsdl:part name="return" type="tns1:Vector"/>
  </wsdl:message>
  <wsdl:message name="removeRequest">
  </wsdl:message>
  <wsdl:message name="updateRequest">
    <wsdl:part name="in0" type="tns2:AuthData"/>
    <wsdl:part name="in1" type="xsd:string"/>
  </wsdl:message>
  <wsdl:message name="getEJBHomeResponse">
    <wsdl:part name="return" type="tns3:EJBHome"/>
  </wsdl:message>
  <wsdl:message name="FinderException">
  </wsdl:message>
  <wsdl:message name="SQLException">
  </wsdl:message>
  <wsdl:message name="getHandleResponse">
    <wsdl:part name="return" type="tns3:Handle"/>
  </wsdl:message>
  <wsdl:message name="updateResponse">
  </wsdl:message>
  <wsdl:message name="isIdenticalResponse">
    <wsdl:part name="return" type="xsd:boolean"/>
  </wsdl:message>
  <wsdl:message name="getHandleRequest">
  </wsdl:message>
  <wsdl:message name="RemoveException">
  </wsdl:message>
  <wsdl:message name="findAllRequest">
    <wsdl:part name="in0" type="xsd:string"/>
  </wsdl:message>
  <wsdl:message name="deleteResponse">
  </wsdl:message>
  <wsdl:message name="insertRequest">
    <wsdl:part name="in0" type="tns2:AuthData"/>
    <wsdl:part name="in1" type="xsd:string"/>
  </wsdl:message>
  <wsdl:message name="getPrimaryKeyResponse">
    <wsdl:part name="return" type="xsd:anySimpleType"/>
  </wsdl:message>
  <wsdl:message name="getPrimaryKeyRequest">
  </wsdl:message>
  <wsdl:portType name="AuthRemote">
    <wsdl:operation name="delete" parameterOrder="in0">
      <wsdl:input message="intf:deleteRequest"/>
      <wsdl:output message="intf:deleteResponse"/>
      <wsdl:fault name="RemoveException" message="intf:RemoveException"/>
      <wsdl:fault name="FinderException" message="intf:FinderException"/>
    </wsdl:operation>
    <wsdl:operation name="delete" parameterOrder="in0">
      <wsdl:input message="intf:deleteRequest1"/>
      <wsdl:output message="intf:deleteResponse1"/>
      <wsdl:fault name="RemoveException" message="intf:RemoveException"/>
      <wsdl:fault name="FinderException" message="intf:FinderException"/>
    </wsdl:operation>
    <wsdl:operation name="insert" parameterOrder="in0 in1">
      <wsdl:input message="intf:insertRequest"/>
      <wsdl:output message="intf:insertResponse"/>
      <wsdl:fault name="CreateException" message="intf:CreateException"/>
    </wsdl:operation>
    <wsdl:operation name="update" parameterOrder="in0 in1">
      <wsdl:input message="intf:updateRequest"/>
      <wsdl:output message="intf:updateResponse"/>
      <wsdl:fault name="FinderException" message="intf:FinderException"/>
    </wsdl:operation>
    <wsdl:operation name="findAll" parameterOrder="in0">
      <wsdl:input message="intf:findAllRequest"/>
      <wsdl:output message="intf:findAllResponse"/>
      <wsdl:fault name="SQLException" message="intf:SQLException"/>
    </wsdl:operation>
    <wsdl:operation name="findByPrimaryKey" parameterOrder="in0 in1">
      <wsdl:input message="intf:findByPrimaryKeyRequest"/>
      <wsdl:output message="intf:findByPrimaryKeyResponse"/>
      <wsdl:fault name="FinderException" message="intf:FinderException"/>
    </wsdl:operation>
    <wsdl:operation name="remove">
      <wsdl:input message="intf:removeRequest"/>
      <wsdl:output message="intf:removeResponse"/>
      <wsdl:fault name="RemoveException" message="intf:RemoveException"/>
    </wsdl:operation>
    <wsdl:operation name="getEJBHome">
      <wsdl:input message="intf:getEJBHomeRequest"/>
      <wsdl:output message="intf:getEJBHomeResponse"/>
    </wsdl:operation>
    <wsdl:operation name="getHandle">
      <wsdl:input message="intf:getHandleRequest"/>
      <wsdl:output message="intf:getHandleResponse"/>
    </wsdl:operation>
    <wsdl:operation name="getPrimaryKey">
      <wsdl:input message="intf:getPrimaryKeyRequest"/>
      <wsdl:output message="intf:getPrimaryKeyResponse"/>
    </wsdl:operation>
    <wsdl:operation name="isIdentical" parameterOrder="in0">
      <wsdl:input message="intf:isIdenticalRequest"/>
      <wsdl:output message="intf:isIdenticalResponse"/>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="MyAuthSoapBinding" type="intf:AuthRemote">
    <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="delete">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input>
        <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="delete"/>
      </wsdl:input>
      <wsdl:output>
        <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost/axis/services/MyAuth"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="delete">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input>
        <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="delete"/>
      </wsdl:input>
      <wsdl:output>
        <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost/axis/services/MyAuth"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="insert">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input>
        <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="insert"/>
      </wsdl:input>
      <wsdl:output>
        <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost/axis/services/MyAuth"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="update">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input>
        <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="update"/>
      </wsdl:input>
      <wsdl:output>
        <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost/axis/services/MyAuth"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="findAll">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input>
        <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="findAll"/>
      </wsdl:input>
      <wsdl:output>
        <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost/axis/services/MyAuth"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="findByPrimaryKey">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input>
        <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="findByPrimaryKey"/>
      </wsdl:input>
      <wsdl:output>
        <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost/axis/services/MyAuth"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="remove">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input>
        <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="remove"/>
      </wsdl:input>
      <wsdl:output>
        <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost/axis/services/MyAuth"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getEJBHome">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input>
        <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="getEJBHome"/>
      </wsdl:input>
      <wsdl:output>
        <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost/axis/services/MyAuth"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getHandle">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input>
        <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="getHandle"/>
      </wsdl:input>
      <wsdl:output>
        <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost/axis/services/MyAuth"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getPrimaryKey">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input>
        <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="getPrimaryKey"/>
      </wsdl:input>
      <wsdl:output>
        <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost/axis/services/MyAuth"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="isIdentical">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input>
        <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="isIdentical"/>
      </wsdl:input>
      <wsdl:output>
        <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost/axis/services/MyAuth"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="AuthRemoteService">
    <wsdl:port name="MyAuth" binding="intf:MyAuthSoapBinding">
      <wsdlsoap:address location="http://localhost/axis/services/MyAuth"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>

// ***************END of WSDL file ********************//

However, when calling method of this service(MyAuth) from Axis client

I took Internal Server Error .

Where is an error? I'd read many How-to's about Axis - WebLogic , Axis-JBOSS,Axis-ORION EJB deployment.

But I can't find info about Axis-BAS . My only suggestion is that I need to modify web.xml file of Axis. But how can I?

Any help would be very appreciated.

Andrew.

 



---------------------------------
Do You Yahoo!?
Sign-up for Video Highlights of 2002 FIFA World Cup