You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Tim Johnson <Ti...@Sunquest.com> on 2001/04/04 22:02:56 UTC

trouble deploying samples

I apologize ahead of time for being a pain in the butt (I posted this same
problem a couple of times
last week) but I could really use some help...

cd /sunquest/web/xml-soap/samples/addressbook   and run
java org.apache.soap.server.ServiceManagerClient
http://localhost:7676/soap/servlet/rpcrouter deploy DeploymentDescriptor.xml

I get the following error:
Ouch, the call failed:
  Fault Code   = SOAP-ENV:Client
  Fault String = Unable to retrieve PropertyDescriptor for property 'iD' of
class 'class org.apache.soap.server.DeploymentDescriptor'.

I have played with every combination of the CLASSPATH that I can think off
and nothing helps.
For this post I added the IP trace from TunnelGui:

Any suggestions???????????????????

The Service uses 'id' but what we see in the trace is <iD
xsi:type="xsd:string">urn:xmltoday-delayed-quotes</iD> 
Is that the problem? If so who is putting the iD in the above string?

<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
             id="urn:xmltoday-delayed-quotes">
  <isd:provider type="java"
                scope="Application"
                methods="getQuote">
    <isd:java class="samples.stockquote.StockQuoteService"/>
  </isd:provider>
 
<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListene
r>
</isd:service>


>From localhost:7676
POST /soap/servlet/rpcrouter HTTP/1.0 Host: localhost:7676 
Content-Type: text/xml; charset=utf-8 
Content-Length: 1727 
SOAPAction: ""  

<?xml version='1.0' encoding='UTF-8'?> 
<SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/1999/XMLSchema"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> 
<SOAP-ENV:Body> 
<ns1:deploy xmlns:ns1="urn:xml-soap-service-management-service"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> 
<descriptor xmlns:ns2="http://xml.apache.org/xml-soap"
xsi:type="ns2:DeploymentDescriptor"> 
<serviceType xsi:type="xsd:int">0</serviceType> 
<serviceClass xsi:type="xsd:string" xsi:null="true"/> 
<isStatic xsi:type="xsd:boolean">false</isStatic> 
<defaultSMRClass xsi:type="xsd:string" xsi:null="true"/> 
<scope xsi:type="xsd:int">2</scope> 
<props xsi:type="ns2:Map" xsi:null="true"/> 
<methods xmlns:ns3="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns3:Array" ns3:arrayType="xsd:string[1]"> 
<item xsi:type="xsd:string">getQuote</item> 
</methods> 
<scriptFilenameOrString xsi:type="xsd:string" xsi:null="true"/> 
<providerType xsi:type="xsd:byte">0</providerType> 
<scriptLanguage xsi:type="xsd:string" xsi:null="true"/> 
<checkMustUnderstands xsi:type="xsd:boolean">false</checkMustUnderstands> 
<faultListener xmlns:ns4="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns4:Array" ns4:arrayType="xsd:string[1]"> 
<item xsi:type="xsd:string">org.apache.soap.server.DOMFaultListener</item> 
</faultListener> 
<iD xsi:type="xsd:string">urn:xmltoday-delayed-quotes</iD> 
<mappings xmlns:ns5="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns5:Array" ns5:arrayType="ns2:TypeMapping[]" xsi:null="true"/> 
<providerClass
xsi:type="xsd:string">samples.stockquote.StockQuoteService</providerClass> 
</descriptor> 
</ns1:deploy> 
</SOAP-ENV:Body> 
</SOAP-ENV:Envelope> 

>From localhost:7676
HTTP/1.0 500 Internal Server Error 
Content-Type: text/xml; charset=utf-8 
Content-Length: 541 
Set-Cookie2: JSESSIONID=x48vrp47y1;Version=1;Discard;Path="/soap"
Set-Cookie: JSESSIONID=x48vrp47y1;Path=/soap 
Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.3.0;
Linux 2.2.16-22 i386; java.vendor=Sun Microsystems Inc.)  

<?xml version='1.0' encoding='UTF-8'?> 
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body> 
<SOAP-ENV:Fault> 
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>Unable to retrieve PropertyDescriptor for property 'iD' of
class 'class org.apache.soap.server.DeploymentDescriptor'.</faultstring>
<faultactor>/soap/servlet/rpcrouter</faultactor> 
</SOAP-ENV:Fault>

</SOAP-ENV:Body>
</SOAP-ENV:Envelope> 

****************************************************************************
******************************************************
PREVIOUS POSTING:

I am running tomcat 3.2.1 on linux Red Hat 7.0
I installed JavaMail 1.2 (mail.jar)
I installed jaf 1.0.1 (activation.jar)
I installed xerces 1.2.3
I installed Soap 2.1 from the nightly builds xml-soap.tar.gz

I made the following changes:
vi /sunquest/web/tomcat/bin/tomcat.sh
	line 113
	CLASSPATH=/sunquest/web/xerces-1_2_3/xerces.jar:${CLASSPATH}
	
vi /sunquest/web/tomcat/conf/server.xml
	<Context path="/soap" 
	   docBase="/sunquest/web/xml-soap/webapps/soap" 
	   debug="1" 
	   reloadable="true">
	</Context>
	<Context path="/soapdoc" 
	   docBase="/sunquest/web/xml-soap/docs" 
	   debug="1" 
	   reloadable="true">
	</Context>

The following is my class path:
/sunquest/web/xerces-1_2_3/xerces.jar:/sunquest/web/jaf-1.0.1/activation.jar
:/su
nquest/web/javamail-1.2/mail.jar:/sunquest/web/xml-soap/lib/soap.jar:/sunque
st/w
eb/xml-soap:/sunquest/web/tomcat/webapps/ix/IXWeb.jar:/sunquest/web/tomcat/w
ebap
ps/ix:/sunquest/web/tomcat/webapps/ixtst:/sunquest/web/tomcat/webapps/ixtst/
IXWe
b.jar:/sunquest/web/xml-soap/webapps/soap

Stopped and restarted tomcat.



---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org