Hi,

Using the SimpleServiceClient that is shipped with the simple sample, I get
:

         <soap:Text>[ID = 'DestinationUnreachable'] There is no resource
available at the given EPR:

I have not changed anything in the sample. Just a "ant" and war deployed in
tomcat. Set up a ant target with relevant classpath to run the client. Full
logs attached.

>From looking at the documentation, I expect that with persistence enabled
and three EPR files stored in the relevant directory, the EPR should have a
resource to contact. Is there a configuration step I am missing ?  

On a related note, can the framework support EPRs without reference
parameters ? For example to support stateless WS or services that have a
singleton resource manager that always returns the same resource.

Thanks,
Rachana
$ ant runClient
Buildfile: build.xml

init:

clean:
   [delete] Deleting directory C:\cygwin\home\ranantha\muse\muse-2.1.0
-bin\samples\j2ee\simple\build

layout:
     [copy] Copying 1 file to C:\cygwin\home\ranantha\muse\muse-2.1.0-
bin\samples\j2ee\simple\build\WEB-INF
     [copy] Copying 10 files to C:\cygwin\home\ranantha\muse\muse-2.1.
0-bin\samples\j2ee\simple\build\WEB-INF\classes
     [copy] Copying 23 files to C:\cygwin\home\ranantha\muse\muse-2.1.
0-bin\samples\j2ee\simple\build\WEB-INF\lib

java:
    [javac] Compiling 6 source files to C:\cygwin\home\ranantha\muse\m
use-2.1.0-bin\samples\j2ee\simple\build\WEB-INF\classes

runClient:
     [java] [CLIENT TRACE] SOAP envelope contents (outgoing):

     [java] <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope";>

     [java]     <soap:Header>
     [java]         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing";>htt
p://192.168.1.100:8080/simple/services/SimpleResource</wsa:To>
     [java]         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing";
>http://ws.apache.org/muse/test/simple/first/FirstOperation</wsa:Action>
     [java]         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressi
ng">uuid:4c830c45-b9e2-751d-fe8a-7aa64d102833</wsa:MessageID>
     [java]         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing";>
     [java]             <wsa:Address>http://www.w3.org/2005/08/addressing/role/a
nonymous</wsa:Address>
     [java]         </wsa:From>
     [java]         <muse-wsa:ResourceId
     [java]             xmlns:muse-wsa="http://ws.apache.org/muse/addressing";
     [java]             xmlns:wsa="http://www.w3.org/2005/08/addressing"; wsa:IsR
eferenceParameter="true">MuseResource-1</muse-wsa:ResourceId>
     [java]     </soap:Header>
     [java]     <soap:Body>
     [java]         <first:FirstOperation xmlns:first="http://ws.apache.org/muse
/test/simple/first">Hello, World!</first:FirstOperation>
     [java]     </soap:Body>
     [java] </soap:Envelope>

     [java] [CLIENT TRACE] SOAP envelope contents (incoming):

     [java] <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope";>

     [java]     <soap:Header>
     [java]         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing";>htt
p://www.w3.org/2005/08/addressing/role/anonymous</wsa:To>
     [java]         <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing";
>http://www.w3.org/2005/08/addressing/fault</wsa:Action>
     [java]         <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressi
ng">uuid:6d2ef462-ede3-7853-b595-3865d41c664c</wsa:MessageID>
     [java]         <wsa:RelatesTo RelationshipType="wsa:Reply" xmlns:wsa="http:
//www.w3.org/2005/08/addressing">uuid:4c830c45-b9e2-751d-fe8a-7aa64d102833</wsa:
RelatesTo>
     [java]         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing";>
     [java]             <wsa:Address>http://192.168.1.100:8080/simple/services/S
impleResource</wsa:Address>
     [java]             <wsa:ReferenceParameters>
     [java]                 <muse-wsa:ResourceId wsa:IsReferenceParameter="true"

     [java]                     xmlns:muse-wsa="http://ws.apache.org/muse/addres
sing" xmlns:wsa="http://www.w3.org/2005/08/addressing";>MuseResource-1</muse-wsa:
ResourceId>
     [java]             </wsa:ReferenceParameters>
     [java]         </wsa:From>
     [java]     </soap:Header>
     [java]     <soap:Body>
     [java]         <soap:Fault>
     [java]             <soap:Code>
     [java]                 <soap:Value>soap:Receiver</soap:Value>
     [java]             </soap:Code>
     [java]             <soap:Reason>
     [java]                 <soap:Text>[ID = 'DestinationUnreachable'] There is
no resource available at the given EPR:

     [java] &lt;wsa:EndpointReference xmlns:wsa="http://www.w3.org/2005/08/addre
ssing"&gt;
     [java]     &lt;wsa:Address&gt;http://192.168.1.100:8080/simple/services/Sim
pleResource&lt;/wsa:Address&gt;
     [java]     &lt;wsa:ReferenceParameters&gt;
     [java]         &lt;muse-wsa:ResourceId
     [java]             xmlns:muse-wsa="http://ws.apache.org/muse/addressing";
     [java]             wsa:IsReferenceParameter="true" xmlns:wsa="http://www.w3
.org/2005/08/addressing"&gt;MuseResource-1&lt;/muse-wsa:ResourceId&gt;
     [java]     &lt;/wsa:ReferenceParameters&gt;
     [java] &lt;/wsa:EndpointReference&gt;

     [java] The existing EPRs hosted by this endpoint are:
     [java] </soap:Text>
     [java] org.apache.muse.ws.addressing.soap.SoapFault: [ID = 'DestinationUnre
achable'] There is no resource available at the given EPR:

     [java]             </soap:Reason>
     [java]         </soap:Fault>
     [java]     </soap:Body>
     [java] </soap:Envelope>
     [java] <wsa:EndpointReference xmlns:wsa="http://www.w3.org/2005/08/addressi
ng">
     [java]     <wsa:Address>http://192.168.1.100:8080/simple/services/SimpleRes
ource</wsa:Address>
     [java]     <wsa:ReferenceParameters>

     [java]         <muse-wsa:ResourceId
     [java]             xmlns:muse-wsa="http://ws.apache.org/muse/addressing";
     [java]             wsa:IsReferenceParameter="true" xmlns:wsa="http://www.w3
.org/2005/08/addressing">MuseResource-1</muse-wsa:ResourceId>
     [java]     </wsa:ReferenceParameters>
     [java] </wsa:EndpointReference>

     [java] The existing EPRs hosted by this endpoint are:
     [java]     at org.apache.muse.core.AbstractResourceClient.invoke(AbstractRe
sourceClient.java:279)
     [java]     at org.apache.muse.core.AbstractResourceClient.invoke(AbstractRe
sourceClient.java:235)
     [java]     at org.apache.muse.test.simple.SimpleResourceClient.firstOperati
on(Unknown Source)
     [java]     at org.apache.muse.test.simple.SimpleTestClient.main(Unknown Sou
rce)

BUILD SUCCESSFUL
Total time: 4 seconds

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to