I added it in the JNDI file following an example factory service. Here is the WSDD and the JNDI.

Thanks again,
Kleopatra

Tom Howe wrote:
Perhaps I'm missing something, but where is:
ApplicationServiceComponentResourceKey

defined?

-Tom
On Thu, Feb 26, 2009 at 9:32 AM, Kleopatra Konstanteli <[email protected] <mailto:[email protected]>> wrote:

    Hi Tom,

    Please find attached the WSDL both for the factory and the instance.

    Best regards,
    Kleopatra

    Tom Howe wrote:

        Sorry,
        Can you also send the WSDL?

        Thanks,
        Tom

        On Thu, Feb 26, 2009 at 9:17 AM, Kleopatra Konstanteli
        <[email protected] <mailto:[email protected]>
        <mailto:[email protected]
        <mailto:[email protected]>>> wrote:

           Hello Tom,

           Here is the SOAP request:

           SOAPEnvelope: <?xml version="1.0"
           encoding="UTF-8"?><soapenv:Envelope
           xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
           xmlns:xsd="http://www.w3.org/2001/XMLSchema";
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:wsa="http://www.w3.org/2005/08/addressing";><soapenv:Header><wsa:MessageID>uuid:c0c41b50-0417-11de-9f72-87a92f1dd4a1</wsa:MessageID><wsa:To>http://localhost:8080/wsrf/services/factory/ApplicationServiceComponent</wsa:To><wsa:Action>http://www.ntua.gr/namespaces/ApplicationServiceComponentService/ApplicationServiceComponentPortType/startRequest</wsa:Action><From xmlns="http://www.w3.org/2005/08/addressing";><Address>http://www.w3.org/2005/08/addressing/anonymous</Address></From><ns1:ApplicationServiceComponentResourceKey
           wsa:IsReferenceParameter="true"
xmlns:ns1="http://www.ntua.gr/namespaces/ApplicationServiceComponentService";>a3916fb0-0417-11de-9be0-b1bb8759f20c</ns1:ApplicationServiceComponentResourceKey></soapenv:Header><soapenv:Body><start xmlns="http://www.ntua.gr/namespaces/ApplicationServiceComponentService";><simpleTypeInputA
           xmlns="">simpleTypeInputA</simpleTypeInputA><simpleTypeInputB
           xmlns="">1</simpleTypeInputB><complexTypeInput><name
           xmlns="">name</name><value
xmlns="">10</value></complexTypeInput></start></soapenv:Body></soapenv:Envelope>

           and the corresponding exception:

           SOAPEnvelope: <?xml version="1.0"
           encoding="UTF-8"?><soapenv:Envelope
           xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
           xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server.userException</faultcode><faultstring>java.rmi.RemoteException:
           ; nested exception is:

                 org.globus.wsrf.ResourceContextException: ; nested
        exception is:
                 org.globus.wsrf.InvalidResourceKeyException: ; nested
           exception is:
                 org.globus.wsrf.encoding.DeserializationException:
           [JWSCORE-178] Deserialization failed [Caused by: For input
        string:
&quot;a3916fb0-0417-11de-9be0-b1bb8759f20c&quot;]</faultstring><detail><ns1:stackTrace xmlns:ns1="http://xml.apache.org/axis/";>java.rmi.RemoteException:
           ; nested exception is:

                 org.globus.wsrf.ResourceContextException: ; nested
        exception is:
                 org.globus.wsrf.InvalidResourceKeyException: ; nested
           exception is:
                 org.globus.wsrf.encoding.DeserializationException:
           [JWSCORE-178] Deserialization failed [Caused by: For input
        string:
           &quot;a3916fb0-0417-11de-9be0-b1bb8759f20c&quot;]
                 at
ntua.irmos.wp4.services.factory.impl.ApplicationServiceComponentService.getResource(ApplicationServiceComponentService.java:25)

           Many thanks in advance,
           Kleopatra


           Tom Howe wrote:

               Can you send the SOAP request that is sent to the
        server and
               produces this, please.

               -Tom

               On Thu, Feb 26, 2009 at 7:56 AM, Kleopatra Konstanteli
               <[email protected] <mailto:[email protected]>
        <mailto:[email protected] <mailto:[email protected]>>
               <mailto:[email protected]
        <mailto:[email protected]>
               <mailto:[email protected]
        <mailto:[email protected]>>>> wrote:

                  Hello All,


                      I  have created a service that follows the factory
               pattern on
                      GT4.2. The instance resources are created
        correctly but
               when I
                      try to invoke an operation on them I get the
        following
               error:

                      AxisFault
                      faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
        <http://schemas.xmlsoap.org/soap/envelope/%7DServer.userException>
<http://schemas.xmlsoap.org/soap/envelope/%7DServer.userException> <http://schemas.xmlsoap.org/soap/envelope/%7DServer.userException>


                      faultSubcode:
                      faultString: java.rmi.RemoteException: ; nested
               exception is:
                            org.globus.wsrf.ResourceContextException:
        ; nested
                      exception is:
org.globus.wsrf.InvalidResourceKeyException: ; nested
                      exception is:
org.globus.wsrf.encoding.DeserializationException:
                      [JWSCORE-178] Deserialization failed [Caused by:
        For input
                      string:
        &quot;c2bc77d0-ff54-11dd-822e-c429a7360031&quot;]

                      I don't remember ever having this error in
        GT4.0. Can
               someone
                      please help me?

                      Thank you in advance,
                      Kleopatra




               --        Tom Howe
               Senior Software Engineer
               Distributed Systems Lab
               University of Chicago/Argonne National Laboratory
               Sent from: Chicago Illinois United States.




-- Tom Howe
        Senior Software Engineer
        Distributed Systems Lab
        University of Chicago/Argonne National Laboratory
        Sent from: Chicago Illinois United States.




--
Tom Howe
Senior Software Engineer
Distributed Systems Lab
University of Chicago/Argonne National Laboratory
Sent from: Chicago Illinois United States.
<?xml version="1.0" encoding="UTF-8"?>
<jndiConfig xmlns="http://wsrf.globus.org/jndi/config";>

<!-- Instance service -->
<service name="factory/ApplicationServiceComponent">
	<resource name="home" type="ntua.services.factory.impl.ApplicationServiceComponentResourceHome">
	<resourceParams>

		<parameter>
			<name>resourceClass</name>
			<value>ntua.services.factory.impl.ApplicationServiceComponentResource</value>
		</parameter>

		<parameter>
			<name>factory</name>
			<value>org.globus.wsrf.jndi.BeanFactory</value>
		</parameter>

		<parameter>
			<name>resourceKeyType</name>
			<value>java.lang.Integer</value>
		</parameter>

		<parameter>
			<name>resourceKeyName</name>
			<value>{http://www.ntua.gr/namespaces/ApplicationServiceComponentService}ApplicationServiceComponentResourceKey</value>
		</parameter>
		
		<parameter>
			<name>instanceServicePath</name>
			<value>factory/ApplicationServiceComponent</value>
		</parameter>

	</resourceParams>
	</resource>
</service>

<!-- Factory service -->
<service name="factory/ApplicationServiceComponentFactory">
	<resourceLink name="home" target="java:comp/env/services/factory/ApplicationServiceComponent/home"/>
</service>

</jndiConfig>
<?xml version="1.0" encoding="UTF-8"?>
<deployment name="defaultServerConfig" 
    xmlns="http://xml.apache.org/axis/wsdd/"; 
    xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"; 
    xmlns:xsd="http://www.w3.org/2001/XMLSchema";>

    <!-- Instance service -->
    <service name="factory/ApplicationServiceComponent" provider="Handler" use="literal" style="document">
        <parameter name="className" value="ntua.services.factory.impl.ApplicationServiceComponentService"/>
        <wsdlFile>share/schema/ntua/ApplicationServiceComponentFactoryService/ApplicationServiceComponent_service.wsdl</wsdlFile>
        <parameter name="allowedMethods" value="*"/>
        <parameter name="handlerClass" value="org.globus.axis.providers.RPCProvider"/>
        <parameter name="scope" value="Application"/>
        <parameter name="providers" value="GetRPProvider SubscribeProvider GetCurrentMessageProvider SetTerminationTimeProvider"/>
    </service>

    <!-- Factory service -->
    <service name="factory/ApplicationServiceComponentFactory" provider="Handler" use="literal" style="document">
        <parameter name="className" value="ntua.irmos.wp4.services.factory.impl.ApplicationServiceComponentFactoryService"/>
        <wsdlFile>share/schema/ntua/ApplicationServiceComponentFactoryService/ApplicationServiceComponentFactory_service.wsdl</wsdlFile>
        <parameter name="allowedMethods" value="*"/>
        <parameter name="handlerClass" value="org.globus.axis.providers.RPCProvider"/>
        <parameter name="scope" value="Application"/>
        <parameter name="instance" value="factory/ApplicationServiceComponent"/>
    </service>

</deployment>

Reply via email to