Hi,

I suspect you've put in your classpath all the jars, but have you put
also the client-config.wsdd file?

En/na Tim München ha escrit:
> Hi list,
>
>
> I followed the simple factory/instance-service example from the GT4 
> programming java services book. Now, when I run the simple client that uses 
> the factoryservice to create a resource and write the received EPR into a 
> file from within eclipse (similar to the test clients from the book's 
> examples), the serialized EPR looks like this:
>
> <ns1:BasicFactoryResourceReference xsi:type="ns2:EndpointReferenceType" 
> xmlns:ns1="http://grid.lab4inf.fh-muenster.de/namespaces/factory"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xmlns:ns2="http://schemas.xmlsoap.org/ws/2004/03/addressing";>
>  <ns2:Address xsi:type="xsd:anyURI" 
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";>http://127.0.0.2:8080/wsrf/services/lab4inf/factory/InstanceService</ns2:Address>
>  <ns2:ReferenceProperties xsi:type="ns2:ReferencePropertiesType">
>   <ns1:BasicFactoryResourceKey>22081762</ns1:BasicFactoryResourceKey>
>  </ns2:ReferenceProperties>
>  <ns2:ReferenceParameters xsi:type="ns2:ReferenceParametersType"/>
> </ns1:BasicFactoryResourceReference>
>
> Whereas, when the client is manually compiled and run from the command line 
> (as the examples in the book suggest), the content looks like this:
>
> <ns1:BasicFactoryResourceReference xsi:type="ns2:EndpointReferenceType" 
> xmlns:ns1="http://grid.lab4inf.fh-muenster.de/namespaces/factory"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xmlns:ns2="http://schemas.xmlsoap.org/ws/2004/03/addressing";>
>  <ns2:Address 
> xsi:type="ns2:AttributedURI">http://127.0.0.2:8080/wsrf/services/lab4inf/factory/InstanceService</ns2:Address>
>  <ns2:ReferenceProperties xsi:type="ns2:ReferencePropertiesType">
>   <ns1:BasicFactoryResourceKey>12216222</ns1:BasicFactoryResourceKey>
>  </ns2:ReferenceProperties>
>  <ns2:ReferenceParameters xsi:type="ns2:ReferenceParametersType"/>
> </ns1:BasicFactoryResourceReference>
>
> As you can see, the URI is not correctly serialized as AttributedURI when run 
> from eclipse.
>
> Now, when the AddClient (simple client that uses the epr to get the resource, 
> and invoke an "add" operation) is run from within eclipse (with the epr 
> created from within eclipse), I get this exception:
>
> [main] ERROR ser.BeanPropertyTarget  - Could not convert 
> org.apache.axis.types.URI to bean field 'address', type 
> org.apache.axis.message.addressing.AttributedURI
>
> From the command line, everything works.
>
> What could be the cause of this problem? At first I suspected it is because 
> the clients, when run from eclipse, don't have the correct classpath (As set 
> by source /usr/local/globus-4.0.6/etc/globus-devel-env.sh on the command 
> line). I then set the complete contents of the $CLASSPATH var into the run 
> configuration of the client in eclipse - but still the same behaviour shows.
>
>
> Hope someone has had this problem, too, and can help!
>
>
>   


-- 
Marc de Palol Martínez

BSC-CNS 
Barcelona Supercomputing Center
Centro Nacional de Supercomputación 
e-mail: marc.depalol (at) bsc.es
phone : +34-93 4137946

Reply via email to