You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by sn...@apache.org on 2002/11/12 19:58:57 UTC

cvs commit: xml-soap/java/docs/install tomcat.html

snichol     2002/11/12 10:58:57

  Modified:    java/docs/install tomcat.html
  Log:
  Add a note about Java 1.4 and endorsed directories.
  
  Revision  Changes    Path
  1.15      +6 -0      xml-soap/java/docs/install/tomcat.html
  
  Index: tomcat.html
  ===================================================================
  RCS file: /home/cvs/xml-soap/java/docs/install/tomcat.html,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- tomcat.html	16 Oct 2002 05:13:26 -0000	1.14
  +++ tomcat.html	12 Nov 2002 18:58:57 -0000	1.15
  @@ -23,6 +23,12 @@
   and classes in %CATALINA_HOME%/classes.  Anything placed in these directories is
   visible to all Web applications running on the Tomcat server.</p>
   
  +<p><strong>IMPORTANT</strong>: Java 1.4 changed the rules as to to
  +how packages beginning in java.* and javax.* get loaded.  Specifically, they only
  +get loaded from endorsed directories.  If you are trying to access code from
  +such packages, the associated jars will presumably need to be in endorsed directories,
  +not the directories of your webapp.</p>
  +
   <h2>Deploying Apache-SOAP on Tomcat:</h2>
   
   <p>There are two different ways to actually deploy Apache SOAP on Tomcat:</p>
  
  
  

--
To unsubscribe, e-mail:   <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>


Re: Serializer + deployment descriptor

Posted by Scott Nichol <sn...@scottnichol.com>.
I fixed the file.  Sorry about that.  Thanks for bringing it to my
attention.

Scott Nichol

----- Original Message -----
From: "Mattias Jiderhamn" <ma...@expertsystem.se>
To: <so...@xml.apache.org>
Sent: Thursday, November 14, 2002 2:33 AM
Subject: RE: Serializer + deployment descriptor


> Now I also found *why* I made the misstake.
> In the /docs/guide/deploy.html#typemapping you can find
> "Where encoding-uri is the URI for the encoding method (i.e.
> http://schemas.xmlsoap.org/soap/encoding for the standard SOAP
encoding,)"
> Without the trailing /!
>
> May I suggest a fix?
>
> > -----Original Message-----
> > From: Scott Nichol [mailto:snicholnews@scottnichol.com]
> > Sent: Wednesday, November 13, 2002 6:26 PM
> > To: soap-dev@xml.apache.org
> > Subject: Re: Serializer + deployment descriptor
> >
> >
> > Try putting a trailing / on the encoding:
> >
> >     http://schemas.xmlsoap.org/soap/encoding/
> >
> > instead of
> >
> >     http://schemas.xmlsoap.org/soap/encoding
> >
> > Scott Nichol
> >
> > ----- Original Message -----
> > From: "Mattias Jiderhamn" <ma...@expertsystem.se>
> > To: <so...@xml.apache.org>
> > Sent: Wednesday, November 13, 2002 4:12 AM
> > Subject: Serializer + deployment descriptor
> >
> >
> > > I am really, really tired of the fact that I can not get any type
> > mappings
> > > to work in the deployment desriptor.
> > >
> > > If I have the file:
> > > <isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
> > >   id="urn:ApiTest">
> > >   <isd:provider type="java"
> > >     scope="Application"
> > >     methods="isOk getIntPair getIntArray getIntPairArray
getNullObject
> > > getNullArray">
> > >     <isd:java class="se.exder.api.ApiTest" static="true" />
> > >   </isd:provider>
> > >   <isd:faultListener>
> > >     org.apache.soap.server.DOMFaultListener
> > >   </isd:faultListener>
> > >
> > >   <isd:mappings>
> > >     <isd:map
encodingStyle="http://schemas.xmlsoap.org/soap/encoding"
> > >      xmlns:x="urn:ApiTest" qname="x:IntPair"
> > >      javaType="se.exder.api.IntPair"
> > >
> > java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
> > >
> >
xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
> > >   </isd:mappings>
> > > </isd:service>
> > >
> > > and try to deploy it with
> > >   java -classpath $CLASSPATH
> > org.apache.soap.server.ServiceManagerClient
> > > http://localhost/servlet/rpcrouter deploy filename.wsdd
> > > The mapping is never working (client says
> > > "java.lang.IllegalArgumentException: No Serializer found to
serialize
> > a
> > > 'se.exder.api.IntPair' using encoding style
> > > 'http://schemas.xmlsoap.org/soap/encoding/'")
> > >
> > > But if I input the exact same information in the admin page
> > > (/soap/deploy.jsp) everything works just fine. (See attached
> > sceenshots).
> > >
> > > I always undeploy the service before re-deploying. I have tried
the
> > latest
> > > build (2002-10-27) and I am still having the same problem.
> > > Why is this???
> > > What can I do about it?
> > >
> >
> >
>
> ----------------------------------------------------------------------
--
> > --------
> >
> >
> > > --
> > > To unsubscribe, e-mail:
<ma...@xml.apache.org>
> > > For additional commands, e-mail:
<ma...@xml.apache.org>
> >
> >
> > --
> > To unsubscribe, e-mail:
<ma...@xml.apache.org>
> > For additional commands, e-mail:
<ma...@xml.apache.org>
> >
> >
>
>
> --
> To unsubscribe, e-mail:   <ma...@xml.apache.org>
> For additional commands, e-mail: <ma...@xml.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>


Re: Serializer + deployment descriptor

Posted by Scott Nichol <sn...@scottnichol.com>.
I fixed the file.  Sorry about that.  Thanks for bringing it to my
attention.

Scott Nichol

----- Original Message -----
From: "Mattias Jiderhamn" <ma...@expertsystem.se>
To: <so...@xml.apache.org>
Sent: Thursday, November 14, 2002 2:33 AM
Subject: RE: Serializer + deployment descriptor


> Now I also found *why* I made the misstake.
> In the /docs/guide/deploy.html#typemapping you can find
> "Where encoding-uri is the URI for the encoding method (i.e.
> http://schemas.xmlsoap.org/soap/encoding for the standard SOAP
encoding,)"
> Without the trailing /!
>
> May I suggest a fix?
>
> > -----Original Message-----
> > From: Scott Nichol [mailto:snicholnews@scottnichol.com]
> > Sent: Wednesday, November 13, 2002 6:26 PM
> > To: soap-dev@xml.apache.org
> > Subject: Re: Serializer + deployment descriptor
> >
> >
> > Try putting a trailing / on the encoding:
> >
> >     http://schemas.xmlsoap.org/soap/encoding/
> >
> > instead of
> >
> >     http://schemas.xmlsoap.org/soap/encoding
> >
> > Scott Nichol
> >
> > ----- Original Message -----
> > From: "Mattias Jiderhamn" <ma...@expertsystem.se>
> > To: <so...@xml.apache.org>
> > Sent: Wednesday, November 13, 2002 4:12 AM
> > Subject: Serializer + deployment descriptor
> >
> >
> > > I am really, really tired of the fact that I can not get any type
> > mappings
> > > to work in the deployment desriptor.
> > >
> > > If I have the file:
> > > <isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
> > >   id="urn:ApiTest">
> > >   <isd:provider type="java"
> > >     scope="Application"
> > >     methods="isOk getIntPair getIntArray getIntPairArray
getNullObject
> > > getNullArray">
> > >     <isd:java class="se.exder.api.ApiTest" static="true" />
> > >   </isd:provider>
> > >   <isd:faultListener>
> > >     org.apache.soap.server.DOMFaultListener
> > >   </isd:faultListener>
> > >
> > >   <isd:mappings>
> > >     <isd:map
encodingStyle="http://schemas.xmlsoap.org/soap/encoding"
> > >      xmlns:x="urn:ApiTest" qname="x:IntPair"
> > >      javaType="se.exder.api.IntPair"
> > >
> > java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
> > >
> >
xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
> > >   </isd:mappings>
> > > </isd:service>
> > >
> > > and try to deploy it with
> > >   java -classpath $CLASSPATH
> > org.apache.soap.server.ServiceManagerClient
> > > http://localhost/servlet/rpcrouter deploy filename.wsdd
> > > The mapping is never working (client says
> > > "java.lang.IllegalArgumentException: No Serializer found to
serialize
> > a
> > > 'se.exder.api.IntPair' using encoding style
> > > 'http://schemas.xmlsoap.org/soap/encoding/'")
> > >
> > > But if I input the exact same information in the admin page
> > > (/soap/deploy.jsp) everything works just fine. (See attached
> > sceenshots).
> > >
> > > I always undeploy the service before re-deploying. I have tried
the
> > latest
> > > build (2002-10-27) and I am still having the same problem.
> > > Why is this???
> > > What can I do about it?
> > >
> >
> >
>
> ----------------------------------------------------------------------
--
> > --------
> >
> >
> > > --
> > > To unsubscribe, e-mail:
<ma...@xml.apache.org>
> > > For additional commands, e-mail:
<ma...@xml.apache.org>
> >
> >
> > --
> > To unsubscribe, e-mail:
<ma...@xml.apache.org>
> > For additional commands, e-mail:
<ma...@xml.apache.org>
> >
> >
>
>
> --
> To unsubscribe, e-mail:   <ma...@xml.apache.org>
> For additional commands, e-mail: <ma...@xml.apache.org>
>
>


RE: Serializer + deployment descriptor

Posted by Mattias Jiderhamn <ma...@expertsystem.se>.
Now I also found *why* I made the misstake.
In the /docs/guide/deploy.html#typemapping you can find
"Where encoding-uri is the URI for the encoding method (i.e.
http://schemas.xmlsoap.org/soap/encoding for the standard SOAP encoding,)"
Without the trailing /!

May I suggest a fix?

> -----Original Message-----
> From: Scott Nichol [mailto:snicholnews@scottnichol.com]
> Sent: Wednesday, November 13, 2002 6:26 PM
> To: soap-dev@xml.apache.org
> Subject: Re: Serializer + deployment descriptor
>
>
> Try putting a trailing / on the encoding:
>
>     http://schemas.xmlsoap.org/soap/encoding/
>
> instead of
>
>     http://schemas.xmlsoap.org/soap/encoding
>
> Scott Nichol
>
> ----- Original Message -----
> From: "Mattias Jiderhamn" <ma...@expertsystem.se>
> To: <so...@xml.apache.org>
> Sent: Wednesday, November 13, 2002 4:12 AM
> Subject: Serializer + deployment descriptor
>
>
> > I am really, really tired of the fact that I can not get any type
> mappings
> > to work in the deployment desriptor.
> >
> > If I have the file:
> > <isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
> >   id="urn:ApiTest">
> >   <isd:provider type="java"
> >     scope="Application"
> >     methods="isOk getIntPair getIntArray getIntPairArray getNullObject
> > getNullArray">
> >     <isd:java class="se.exder.api.ApiTest" static="true" />
> >   </isd:provider>
> >   <isd:faultListener>
> >     org.apache.soap.server.DOMFaultListener
> >   </isd:faultListener>
> >
> >   <isd:mappings>
> >     <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding"
> >      xmlns:x="urn:ApiTest" qname="x:IntPair"
> >      javaType="se.exder.api.IntPair"
> >
> java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
> >
> xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
> >   </isd:mappings>
> > </isd:service>
> >
> > and try to deploy it with
> >   java -classpath $CLASSPATH
> org.apache.soap.server.ServiceManagerClient
> > http://localhost/servlet/rpcrouter deploy filename.wsdd
> > The mapping is never working (client says
> > "java.lang.IllegalArgumentException: No Serializer found to serialize
> a
> > 'se.exder.api.IntPair' using encoding style
> > 'http://schemas.xmlsoap.org/soap/encoding/'")
> >
> > But if I input the exact same information in the admin page
> > (/soap/deploy.jsp) everything works just fine. (See attached
> sceenshots).
> >
> > I always undeploy the service before re-deploying. I have tried the
> latest
> > build (2002-10-27) and I am still having the same problem.
> > Why is this???
> > What can I do about it?
> >
>
>
> ------------------------------------------------------------------------
> --------
>
>
> > --
> > To unsubscribe, e-mail:   <ma...@xml.apache.org>
> > For additional commands, e-mail: <ma...@xml.apache.org>
>
>
> --
> To unsubscribe, e-mail:   <ma...@xml.apache.org>
> For additional commands, e-mail: <ma...@xml.apache.org>
>
>


RE: Serializer + deployment descriptor

Posted by Mattias Jiderhamn <ma...@expertsystem.se>.
Now I also found *why* I made the misstake.
In the /docs/guide/deploy.html#typemapping you can find
"Where encoding-uri is the URI for the encoding method (i.e.
http://schemas.xmlsoap.org/soap/encoding for the standard SOAP encoding,)"
Without the trailing /!

May I suggest a fix?

> -----Original Message-----
> From: Scott Nichol [mailto:snicholnews@scottnichol.com]
> Sent: Wednesday, November 13, 2002 6:26 PM
> To: soap-dev@xml.apache.org
> Subject: Re: Serializer + deployment descriptor
>
>
> Try putting a trailing / on the encoding:
>
>     http://schemas.xmlsoap.org/soap/encoding/
>
> instead of
>
>     http://schemas.xmlsoap.org/soap/encoding
>
> Scott Nichol
>
> ----- Original Message -----
> From: "Mattias Jiderhamn" <ma...@expertsystem.se>
> To: <so...@xml.apache.org>
> Sent: Wednesday, November 13, 2002 4:12 AM
> Subject: Serializer + deployment descriptor
>
>
> > I am really, really tired of the fact that I can not get any type
> mappings
> > to work in the deployment desriptor.
> >
> > If I have the file:
> > <isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
> >   id="urn:ApiTest">
> >   <isd:provider type="java"
> >     scope="Application"
> >     methods="isOk getIntPair getIntArray getIntPairArray getNullObject
> > getNullArray">
> >     <isd:java class="se.exder.api.ApiTest" static="true" />
> >   </isd:provider>
> >   <isd:faultListener>
> >     org.apache.soap.server.DOMFaultListener
> >   </isd:faultListener>
> >
> >   <isd:mappings>
> >     <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding"
> >      xmlns:x="urn:ApiTest" qname="x:IntPair"
> >      javaType="se.exder.api.IntPair"
> >
> java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
> >
> xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
> >   </isd:mappings>
> > </isd:service>
> >
> > and try to deploy it with
> >   java -classpath $CLASSPATH
> org.apache.soap.server.ServiceManagerClient
> > http://localhost/servlet/rpcrouter deploy filename.wsdd
> > The mapping is never working (client says
> > "java.lang.IllegalArgumentException: No Serializer found to serialize
> a
> > 'se.exder.api.IntPair' using encoding style
> > 'http://schemas.xmlsoap.org/soap/encoding/'")
> >
> > But if I input the exact same information in the admin page
> > (/soap/deploy.jsp) everything works just fine. (See attached
> sceenshots).
> >
> > I always undeploy the service before re-deploying. I have tried the
> latest
> > build (2002-10-27) and I am still having the same problem.
> > Why is this???
> > What can I do about it?
> >
>
>
> ------------------------------------------------------------------------
> --------
>
>
> > --
> > To unsubscribe, e-mail:   <ma...@xml.apache.org>
> > For additional commands, e-mail: <ma...@xml.apache.org>
>
>
> --
> To unsubscribe, e-mail:   <ma...@xml.apache.org>
> For additional commands, e-mail: <ma...@xml.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>


RE: Serializer + deployment descriptor

Posted by Mattias Jiderhamn <ma...@expertsystem.se>.
It's always the simple ones that frustrate you the most...

Anyway, a HUGE thank you!

> -----Original Message-----
> From: Scott Nichol [mailto:snicholnews@scottnichol.com]
> Sent: Wednesday, November 13, 2002 6:26 PM
> To: soap-dev@xml.apache.org
> Subject: Re: Serializer + deployment descriptor
> 
> 
> Try putting a trailing / on the encoding:
> 
>     http://schemas.xmlsoap.org/soap/encoding/
> 
> instead of
> 
>     http://schemas.xmlsoap.org/soap/encoding
> 
> Scott Nichol
> 
> ----- Original Message -----
> From: "Mattias Jiderhamn" <ma...@expertsystem.se>
> To: <so...@xml.apache.org>
> Sent: Wednesday, November 13, 2002 4:12 AM
> Subject: Serializer + deployment descriptor
> 
> 
> > I am really, really tired of the fact that I can not get any type
> mappings
> > to work in the deployment desriptor.
> >
> > If I have the file:
> > <isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
> >   id="urn:ApiTest">
> >   <isd:provider type="java"
> >     scope="Application"
> >     methods="isOk getIntPair getIntArray getIntPairArray getNullObject
> > getNullArray">
> >     <isd:java class="se.exder.api.ApiTest" static="true" />
> >   </isd:provider>
> >   <isd:faultListener>
> >     org.apache.soap.server.DOMFaultListener
> >   </isd:faultListener>
> >
> >   <isd:mappings>
> >     <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding"
> >      xmlns:x="urn:ApiTest" qname="x:IntPair"
> >      javaType="se.exder.api.IntPair"
> >
> java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
> >
> xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
> >   </isd:mappings>
> > </isd:service>
> >
> > and try to deploy it with
> >   java -classpath $CLASSPATH
> org.apache.soap.server.ServiceManagerClient
> > http://localhost/servlet/rpcrouter deploy filename.wsdd
> > The mapping is never working (client says
> > "java.lang.IllegalArgumentException: No Serializer found to serialize
> a
> > 'se.exder.api.IntPair' using encoding style
> > 'http://schemas.xmlsoap.org/soap/encoding/'")
> >
> > But if I input the exact same information in the admin page
> > (/soap/deploy.jsp) everything works just fine. (See attached
> sceenshots).
> >
> > I always undeploy the service before re-deploying. I have tried the
> latest
> > build (2002-10-27) and I am still having the same problem.
> > Why is this???
> > What can I do about it?
> >
> 
> 
> ------------------------------------------------------------------------
> --------
> 
> 
> > --
> > To unsubscribe, e-mail:   <ma...@xml.apache.org>
> > For additional commands, e-mail: <ma...@xml.apache.org>
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@xml.apache.org>
> For additional commands, e-mail: <ma...@xml.apache.org>
> 
> 

RE: Serializer + deployment descriptor

Posted by Mattias Jiderhamn <ma...@expertsystem.se>.
It's always the simple ones that frustrate you the most...

Anyway, a HUGE thank you!

> -----Original Message-----
> From: Scott Nichol [mailto:snicholnews@scottnichol.com]
> Sent: Wednesday, November 13, 2002 6:26 PM
> To: soap-dev@xml.apache.org
> Subject: Re: Serializer + deployment descriptor
> 
> 
> Try putting a trailing / on the encoding:
> 
>     http://schemas.xmlsoap.org/soap/encoding/
> 
> instead of
> 
>     http://schemas.xmlsoap.org/soap/encoding
> 
> Scott Nichol
> 
> ----- Original Message -----
> From: "Mattias Jiderhamn" <ma...@expertsystem.se>
> To: <so...@xml.apache.org>
> Sent: Wednesday, November 13, 2002 4:12 AM
> Subject: Serializer + deployment descriptor
> 
> 
> > I am really, really tired of the fact that I can not get any type
> mappings
> > to work in the deployment desriptor.
> >
> > If I have the file:
> > <isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
> >   id="urn:ApiTest">
> >   <isd:provider type="java"
> >     scope="Application"
> >     methods="isOk getIntPair getIntArray getIntPairArray getNullObject
> > getNullArray">
> >     <isd:java class="se.exder.api.ApiTest" static="true" />
> >   </isd:provider>
> >   <isd:faultListener>
> >     org.apache.soap.server.DOMFaultListener
> >   </isd:faultListener>
> >
> >   <isd:mappings>
> >     <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding"
> >      xmlns:x="urn:ApiTest" qname="x:IntPair"
> >      javaType="se.exder.api.IntPair"
> >
> java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
> >
> xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
> >   </isd:mappings>
> > </isd:service>
> >
> > and try to deploy it with
> >   java -classpath $CLASSPATH
> org.apache.soap.server.ServiceManagerClient
> > http://localhost/servlet/rpcrouter deploy filename.wsdd
> > The mapping is never working (client says
> > "java.lang.IllegalArgumentException: No Serializer found to serialize
> a
> > 'se.exder.api.IntPair' using encoding style
> > 'http://schemas.xmlsoap.org/soap/encoding/'")
> >
> > But if I input the exact same information in the admin page
> > (/soap/deploy.jsp) everything works just fine. (See attached
> sceenshots).
> >
> > I always undeploy the service before re-deploying. I have tried the
> latest
> > build (2002-10-27) and I am still having the same problem.
> > Why is this???
> > What can I do about it?
> >
> 
> 
> ------------------------------------------------------------------------
> --------
> 
> 
> > --
> > To unsubscribe, e-mail:   <ma...@xml.apache.org>
> > For additional commands, e-mail: <ma...@xml.apache.org>
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@xml.apache.org>
> For additional commands, e-mail: <ma...@xml.apache.org>
> 
> 

--
To unsubscribe, e-mail:   <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>


Re: Serializer + deployment descriptor

Posted by Scott Nichol <sn...@scottnichol.com>.
Try putting a trailing / on the encoding:

    http://schemas.xmlsoap.org/soap/encoding/

instead of

    http://schemas.xmlsoap.org/soap/encoding

Scott Nichol

----- Original Message -----
From: "Mattias Jiderhamn" <ma...@expertsystem.se>
To: <so...@xml.apache.org>
Sent: Wednesday, November 13, 2002 4:12 AM
Subject: Serializer + deployment descriptor


> I am really, really tired of the fact that I can not get any type
mappings
> to work in the deployment desriptor.
>
> If I have the file:
> <isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
>   id="urn:ApiTest">
>   <isd:provider type="java"
>     scope="Application"
>     methods="isOk getIntPair getIntArray getIntPairArray getNullObject
> getNullArray">
>     <isd:java class="se.exder.api.ApiTest" static="true" />
>   </isd:provider>
>   <isd:faultListener>
>     org.apache.soap.server.DOMFaultListener
>   </isd:faultListener>
>
>   <isd:mappings>
>     <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding"
>      xmlns:x="urn:ApiTest" qname="x:IntPair"
>      javaType="se.exder.api.IntPair"
>
java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
>
xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
>   </isd:mappings>
> </isd:service>
>
> and try to deploy it with
>   java -classpath $CLASSPATH
org.apache.soap.server.ServiceManagerClient
> http://localhost/servlet/rpcrouter deploy filename.wsdd
> The mapping is never working (client says
> "java.lang.IllegalArgumentException: No Serializer found to serialize
a
> 'se.exder.api.IntPair' using encoding style
> 'http://schemas.xmlsoap.org/soap/encoding/'")
>
> But if I input the exact same information in the admin page
> (/soap/deploy.jsp) everything works just fine. (See attached
sceenshots).
>
> I always undeploy the service before re-deploying. I have tried the
latest
> build (2002-10-27) and I am still having the same problem.
> Why is this???
> What can I do about it?
>


------------------------------------------------------------------------
--------


> --
> To unsubscribe, e-mail:   <ma...@xml.apache.org>
> For additional commands, e-mail: <ma...@xml.apache.org>


Re: Serializer + deployment descriptor

Posted by Scott Nichol <sn...@scottnichol.com>.
Try putting a trailing / on the encoding:

    http://schemas.xmlsoap.org/soap/encoding/

instead of

    http://schemas.xmlsoap.org/soap/encoding

Scott Nichol

----- Original Message -----
From: "Mattias Jiderhamn" <ma...@expertsystem.se>
To: <so...@xml.apache.org>
Sent: Wednesday, November 13, 2002 4:12 AM
Subject: Serializer + deployment descriptor


> I am really, really tired of the fact that I can not get any type
mappings
> to work in the deployment desriptor.
>
> If I have the file:
> <isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
>   id="urn:ApiTest">
>   <isd:provider type="java"
>     scope="Application"
>     methods="isOk getIntPair getIntArray getIntPairArray getNullObject
> getNullArray">
>     <isd:java class="se.exder.api.ApiTest" static="true" />
>   </isd:provider>
>   <isd:faultListener>
>     org.apache.soap.server.DOMFaultListener
>   </isd:faultListener>
>
>   <isd:mappings>
>     <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding"
>      xmlns:x="urn:ApiTest" qname="x:IntPair"
>      javaType="se.exder.api.IntPair"
>
java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
>
xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
>   </isd:mappings>
> </isd:service>
>
> and try to deploy it with
>   java -classpath $CLASSPATH
org.apache.soap.server.ServiceManagerClient
> http://localhost/servlet/rpcrouter deploy filename.wsdd
> The mapping is never working (client says
> "java.lang.IllegalArgumentException: No Serializer found to serialize
a
> 'se.exder.api.IntPair' using encoding style
> 'http://schemas.xmlsoap.org/soap/encoding/'")
>
> But if I input the exact same information in the admin page
> (/soap/deploy.jsp) everything works just fine. (See attached
sceenshots).
>
> I always undeploy the service before re-deploying. I have tried the
latest
> build (2002-10-27) and I am still having the same problem.
> Why is this???
> What can I do about it?
>


------------------------------------------------------------------------
--------


> --
> To unsubscribe, e-mail:   <ma...@xml.apache.org>
> For additional commands, e-mail: <ma...@xml.apache.org>


--
To unsubscribe, e-mail:   <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>


Serializer + deployment descriptor

Posted by Mattias Jiderhamn <ma...@expertsystem.se>.
I am really, really tired of the fact that I can not get any type mappings
to work in the deployment desriptor.

If I have the file:
<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
  id="urn:ApiTest">
  <isd:provider type="java"
    scope="Application"
    methods="isOk getIntPair getIntArray getIntPairArray getNullObject
getNullArray">
    <isd:java class="se.exder.api.ApiTest" static="true" />
  </isd:provider>
  <isd:faultListener>
    org.apache.soap.server.DOMFaultListener
  </isd:faultListener>

  <isd:mappings>
    <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding"
     xmlns:x="urn:ApiTest" qname="x:IntPair"
     javaType="se.exder.api.IntPair"
     java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
     xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
  </isd:mappings>
</isd:service>

and try to deploy it with
  java -classpath $CLASSPATH org.apache.soap.server.ServiceManagerClient
http://localhost/servlet/rpcrouter deploy filename.wsdd
The mapping is never working (client says
"java.lang.IllegalArgumentException: No Serializer found to serialize a
'se.exder.api.IntPair' using encoding style
'http://schemas.xmlsoap.org/soap/encoding/'")

But if I input the exact same information in the admin page
(/soap/deploy.jsp) everything works just fine. (See attached sceenshots).

I always undeploy the service before re-deploying. I have tried the latest
build (2002-10-27) and I am still having the same problem.
Why is this???
What can I do about it?

Serializer + deployment descriptor

Posted by Mattias Jiderhamn <ma...@expertsystem.se>.
I am really, really tired of the fact that I can not get any type mappings
to work in the deployment desriptor.

If I have the file:
<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
  id="urn:ApiTest">
  <isd:provider type="java"
    scope="Application"
    methods="isOk getIntPair getIntArray getIntPairArray getNullObject
getNullArray">
    <isd:java class="se.exder.api.ApiTest" static="true" />
  </isd:provider>
  <isd:faultListener>
    org.apache.soap.server.DOMFaultListener
  </isd:faultListener>

  <isd:mappings>
    <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding"
     xmlns:x="urn:ApiTest" qname="x:IntPair"
     javaType="se.exder.api.IntPair"
     java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
     xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
  </isd:mappings>
</isd:service>

and try to deploy it with
  java -classpath $CLASSPATH org.apache.soap.server.ServiceManagerClient
http://localhost/servlet/rpcrouter deploy filename.wsdd
The mapping is never working (client says
"java.lang.IllegalArgumentException: No Serializer found to serialize a
'se.exder.api.IntPair' using encoding style
'http://schemas.xmlsoap.org/soap/encoding/'")

But if I input the exact same information in the admin page
(/soap/deploy.jsp) everything works just fine. (See attached sceenshots).

I always undeploy the service before re-deploying. I have tried the latest
build (2002-10-27) and I am still having the same problem.
Why is this???
What can I do about it?