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 "Jinyu.Wang" <Ji...@oracle.com> on 2002/01/22 20:32:19 UTC

How to get the content of SOAP RPC messages

Hi,

Does anyone try to get the content of the SOAP RPC messages? Any example
using call.marshall()?

Thanks.
Jinyu


Re: SOAP and Tomcat 4.0

Posted by Michal Pisanko <mp...@evanto.de>.

> You discovered something that took me a while. :-)
>
> Tomcat has it's own CLASSPATH that gets set up by the set statements in
> the catalina.bat or catalina.sh file.  So when you ad things to the
> system, you must add them to the CLASSPATH in the catalina startup file.

hey, isn't it enough to add the stuff to the system CLASSPATH?
i mean that is not a nice way - especially if the number of apps is
growing...
but saying "must" did you mean must in the way defined in RFC2119 :) ?
and bear no grudge - just asking - i'm kinda new to the whole business :)

>
> As for why Tomcat doesn't think your provider isn't a valid provider, I
> can't help much there as I haven't written a provider.  I'd look into
> the xml config files for Tomcat.  Providers probably need entries there.
>
> -----Original Message-----
> From: Martin Centner [mailto:mcentner@sbox.tugraz.at]
> Sent: Tuesday, January 22, 2002 4:14 PM
> To: soap-user@xml.apache.org
> Subject: Re: SOAP and Tomcat 4.0
>
>
> Thomas Thornbury wrote:
>
> > What exactly is your CLASSPATH and how are you setting that CLASSPATH?
>
>
> servlet.jar is in ${TOMCAT_HOME}/common/lib/
>
> and i just thought that would be in the CLASSPATH too
>
> But now i tried to put it into to CLASSPATH manualy (by editing
> catalina.sh, varaiable: CP) and the error message changed to:
>
>
> [SOAPException: faultCode=SOAP-ENV:Server; msg='myProvider' isn't a
> provider]
> at org.apache.soap.server.ServerUtils.loadProvider(ServerUtils.java:150)
> at
> org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.jav
> a:279)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:247)
>
>
> But myProvider must be a Provider, when it is directly derived from
> RPCJavaProivder !!?
>
>
> cu
> martin
>
>
> > -----Original Message-----
> > From: Martin Centner [mailto:mcentner@sbox.tugraz.at]
> > Sent: Tuesday, January 22, 2002 3:18 PM
> > To: soap-user@xml.apache.org
> > Subject: Re: SOAP and Tomcat 4.0
> >
> >
> > Thomas Thornbury wrote:
> >
> >
> >>Sure.  I'm running SOAP 2.2 and 4.0.1 right now.
> >>
> >
> >
> > ... so maybe you could help me:
> >
> >
> > I am using SOAP 2.2 and Tomcat 4.0.1 too. Normal RPC calls over the
> > RPCJavaProvider work so far, but when I try to use my own provider -
> > even if it just exetends RPCJavaProvider without anything else - I get
>
> > the following error message:
> >
> > <stackTrace>
> > java.lang.NoClassDefFoundError: javax/servlet/GenericServlet at
> > java.lang.Class.forName0(Native Method) at
> > java.lang.Class.forName(Class.java:195)
> > at org.apache.soap.rpc.SOAPContext.loadClass(SOAPContext.java:557)
> > at
> > org.apache.soap.server.ServerUtils.loadProvider(ServerUtils.java:141)
> > at
> >
> org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.jav
> > a:279)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> > tionFilterChain.java:247)
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> > erChain.java:193)
> >
> >
> > My provider looks like the following:
> >
> > public class myProvider extends
> >       org.apache.soap.providers.RPCJavaProvider {}
> >
> >
> >
> > The servlet.jar is in the CLASSPATH of the server, thus the server
> > should be able to find javay.servlet.GenericServlet.
> >
> >
> > Any ideas?
> >
> > thx
> > martin
> >
> >
> >
> >
>
>
>
>
>


Re: SOAP and Tomcat 4.0

Posted by Michal Pisanko <mp...@evanto.de>.

> You discovered something that took me a while. :-)
>
> Tomcat has it's own CLASSPATH that gets set up by the set statements in
> the catalina.bat or catalina.sh file.  So when you ad things to the
> system, you must add them to the CLASSPATH in the catalina startup file.

hey, isn't it enough to add the stuff to the system CLASSPATH?
i mean that is not a nice way - especially if the number of apps is
growing...
but saying "must" did you mean must in the way defined in RFC2119 :) ?
and bear no grudge - just asking - i'm kinda new to the whole business :)

>
> As for why Tomcat doesn't think your provider isn't a valid provider, I
> can't help much there as I haven't written a provider.  I'd look into
> the xml config files for Tomcat.  Providers probably need entries there.
>
> -----Original Message-----
> From: Martin Centner [mailto:mcentner@sbox.tugraz.at]
> Sent: Tuesday, January 22, 2002 4:14 PM
> To: soap-user@xml.apache.org
> Subject: Re: SOAP and Tomcat 4.0
>
>
> Thomas Thornbury wrote:
>
> > What exactly is your CLASSPATH and how are you setting that CLASSPATH?
>
>
> servlet.jar is in ${TOMCAT_HOME}/common/lib/
>
> and i just thought that would be in the CLASSPATH too
>
> But now i tried to put it into to CLASSPATH manualy (by editing
> catalina.sh, varaiable: CP) and the error message changed to:
>
>
> [SOAPException: faultCode=SOAP-ENV:Server; msg='myProvider' isn't a
> provider]
> at org.apache.soap.server.ServerUtils.loadProvider(ServerUtils.java:150)
> at
> org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.jav
> a:279)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:247)
>
>
> But myProvider must be a Provider, when it is directly derived from
> RPCJavaProivder !!?
>
>
> cu
> martin
>
>
> > -----Original Message-----
> > From: Martin Centner [mailto:mcentner@sbox.tugraz.at]
> > Sent: Tuesday, January 22, 2002 3:18 PM
> > To: soap-user@xml.apache.org
> > Subject: Re: SOAP and Tomcat 4.0
> >
> >
> > Thomas Thornbury wrote:
> >
> >
> >>Sure.  I'm running SOAP 2.2 and 4.0.1 right now.
> >>
> >
> >
> > ... so maybe you could help me:
> >
> >
> > I am using SOAP 2.2 and Tomcat 4.0.1 too. Normal RPC calls over the
> > RPCJavaProvider work so far, but when I try to use my own provider -
> > even if it just exetends RPCJavaProvider without anything else - I get
>
> > the following error message:
> >
> > <stackTrace>
> > java.lang.NoClassDefFoundError: javax/servlet/GenericServlet at
> > java.lang.Class.forName0(Native Method) at
> > java.lang.Class.forName(Class.java:195)
> > at org.apache.soap.rpc.SOAPContext.loadClass(SOAPContext.java:557)
> > at
> > org.apache.soap.server.ServerUtils.loadProvider(ServerUtils.java:141)
> > at
> >
> org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.jav
> > a:279)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> > tionFilterChain.java:247)
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> > erChain.java:193)
> >
> >
> > My provider looks like the following:
> >
> > public class myProvider extends
> >       org.apache.soap.providers.RPCJavaProvider {}
> >
> >
> >
> > The servlet.jar is in the CLASSPATH of the server, thus the server
> > should be able to find javay.servlet.GenericServlet.
> >
> >
> > Any ideas?
> >
> > thx
> > martin
> >
> >
> >
> >
>
>
>
>
>


RE: SOAP and Tomcat 4.0

Posted by Thomas Thornbury <th...@optonline.net>.
You discovered something that took me a while. :-)

Tomcat has it's own CLASSPATH that gets set up by the set statements in
the catalina.bat or catalina.sh file.  So when you ad things to the
system, you must add them to the CLASSPATH in the catalina startup file.

As for why Tomcat doesn't think your provider isn't a valid provider, I
can't help much there as I haven't written a provider.  I'd look into
the xml config files for Tomcat.  Providers probably need entries there.

-----Original Message-----
From: Martin Centner [mailto:mcentner@sbox.tugraz.at] 
Sent: Tuesday, January 22, 2002 4:14 PM
To: soap-user@xml.apache.org
Subject: Re: SOAP and Tomcat 4.0


Thomas Thornbury wrote:

> What exactly is your CLASSPATH and how are you setting that CLASSPATH?


servlet.jar is in ${TOMCAT_HOME}/common/lib/

and i just thought that would be in the CLASSPATH too

But now i tried to put it into to CLASSPATH manualy (by editing 
catalina.sh, varaiable: CP) and the error message changed to:


[SOAPException: faultCode=SOAP-ENV:Server; msg='myProvider' isn't a 
provider]
at org.apache.soap.server.ServerUtils.loadProvider(ServerUtils.java:150)
at 
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.jav
a:279)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)


But myProvider must be a Provider, when it is directly derived from 
RPCJavaProivder !!?


cu
martin

 
> -----Original Message-----
> From: Martin Centner [mailto:mcentner@sbox.tugraz.at]
> Sent: Tuesday, January 22, 2002 3:18 PM
> To: soap-user@xml.apache.org
> Subject: Re: SOAP and Tomcat 4.0
> 
> 
> Thomas Thornbury wrote:
> 
> 
>>Sure.  I'm running SOAP 2.2 and 4.0.1 right now.
>>
> 
> 
> ... so maybe you could help me:
> 
> 
> I am using SOAP 2.2 and Tomcat 4.0.1 too. Normal RPC calls over the
> RPCJavaProvider work so far, but when I try to use my own provider - 
> even if it just exetends RPCJavaProvider without anything else - I get

> the following error message:
> 
> <stackTrace>
> java.lang.NoClassDefFoundError: javax/servlet/GenericServlet at 
> java.lang.Class.forName0(Native Method) at 
> java.lang.Class.forName(Class.java:195)
> at org.apache.soap.rpc.SOAPContext.loadClass(SOAPContext.java:557)
> at 
> org.apache.soap.server.ServerUtils.loadProvider(ServerUtils.java:141)
> at 
>
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.jav
> a:279)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at 
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:247)
> at 
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:193)
> 
> 
> My provider looks like the following:
> 
> public class myProvider extends
>       org.apache.soap.providers.RPCJavaProvider {}
> 
> 
> 
> The servlet.jar is in the CLASSPATH of the server, thus the server
> should be able to find javay.servlet.GenericServlet.
> 
> 
> Any ideas?
> 
> thx
> martin
> 
> 
> 
> 






RE: SOAP and Tomcat 4.0

Posted by Thomas Thornbury <th...@optonline.net>.
You discovered something that took me a while. :-)

Tomcat has it's own CLASSPATH that gets set up by the set statements in
the catalina.bat or catalina.sh file.  So when you ad things to the
system, you must add them to the CLASSPATH in the catalina startup file.

As for why Tomcat doesn't think your provider isn't a valid provider, I
can't help much there as I haven't written a provider.  I'd look into
the xml config files for Tomcat.  Providers probably need entries there.

-----Original Message-----
From: Martin Centner [mailto:mcentner@sbox.tugraz.at] 
Sent: Tuesday, January 22, 2002 4:14 PM
To: soap-user@xml.apache.org
Subject: Re: SOAP and Tomcat 4.0


Thomas Thornbury wrote:

> What exactly is your CLASSPATH and how are you setting that CLASSPATH?


servlet.jar is in ${TOMCAT_HOME}/common/lib/

and i just thought that would be in the CLASSPATH too

But now i tried to put it into to CLASSPATH manualy (by editing 
catalina.sh, varaiable: CP) and the error message changed to:


[SOAPException: faultCode=SOAP-ENV:Server; msg='myProvider' isn't a 
provider]
at org.apache.soap.server.ServerUtils.loadProvider(ServerUtils.java:150)
at 
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.jav
a:279)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)


But myProvider must be a Provider, when it is directly derived from 
RPCJavaProivder !!?


cu
martin

 
> -----Original Message-----
> From: Martin Centner [mailto:mcentner@sbox.tugraz.at]
> Sent: Tuesday, January 22, 2002 3:18 PM
> To: soap-user@xml.apache.org
> Subject: Re: SOAP and Tomcat 4.0
> 
> 
> Thomas Thornbury wrote:
> 
> 
>>Sure.  I'm running SOAP 2.2 and 4.0.1 right now.
>>
> 
> 
> ... so maybe you could help me:
> 
> 
> I am using SOAP 2.2 and Tomcat 4.0.1 too. Normal RPC calls over the
> RPCJavaProvider work so far, but when I try to use my own provider - 
> even if it just exetends RPCJavaProvider without anything else - I get

> the following error message:
> 
> <stackTrace>
> java.lang.NoClassDefFoundError: javax/servlet/GenericServlet at 
> java.lang.Class.forName0(Native Method) at 
> java.lang.Class.forName(Class.java:195)
> at org.apache.soap.rpc.SOAPContext.loadClass(SOAPContext.java:557)
> at 
> org.apache.soap.server.ServerUtils.loadProvider(ServerUtils.java:141)
> at 
>
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.jav
> a:279)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at 
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:247)
> at 
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:193)
> 
> 
> My provider looks like the following:
> 
> public class myProvider extends
>       org.apache.soap.providers.RPCJavaProvider {}
> 
> 
> 
> The servlet.jar is in the CLASSPATH of the server, thus the server
> should be able to find javay.servlet.GenericServlet.
> 
> 
> Any ideas?
> 
> thx
> martin
> 
> 
> 
> 






Re: SOAP and Tomcat 4.0

Posted by Martin Centner <mc...@sbox.tugraz.at>.
Thomas Thornbury wrote:

> What exactly is your CLASSPATH and how are you setting that CLASSPATH?


servlet.jar is in ${TOMCAT_HOME}/common/lib/

and i just thought that would be in the CLASSPATH too

But now i tried to put it into to CLASSPATH manualy (by editing 
catalina.sh, varaiable: CP) and the error message changed to:


[SOAPException: faultCode=SOAP-ENV:Server; msg='myProvider' isn't a 
provider]
at org.apache.soap.server.ServerUtils.loadProvider(ServerUtils.java:150)
at 
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:279)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)


But myProvider must be a Provider, when it is directly derived from 
RPCJavaProivder !!?


cu
martin

 
> -----Original Message-----
> From: Martin Centner [mailto:mcentner@sbox.tugraz.at] 
> Sent: Tuesday, January 22, 2002 3:18 PM
> To: soap-user@xml.apache.org
> Subject: Re: SOAP and Tomcat 4.0
> 
> 
> Thomas Thornbury wrote:
> 
> 
>>Sure.  I'm running SOAP 2.2 and 4.0.1 right now.
>>
> 
> 
> ... so maybe you could help me:
> 
> 
> I am using SOAP 2.2 and Tomcat 4.0.1 too. Normal RPC calls over the 
> RPCJavaProvider work so far, but when I try to use my own provider - 
> even if it just exetends RPCJavaProvider without anything else - I get 
> the following error message:
> 
> <stackTrace>
> java.lang.NoClassDefFoundError: javax/servlet/GenericServlet
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:195)
> at org.apache.soap.rpc.SOAPContext.loadClass(SOAPContext.java:557)
> at org.apache.soap.server.ServerUtils.loadProvider(ServerUtils.java:141)
> at 
> org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.jav
> a:279)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:247)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:193)
> 
> 
> My provider looks like the following:
> 
> public class myProvider extends
>       org.apache.soap.providers.RPCJavaProvider {}
> 
> 
> 
> The servlet.jar is in the CLASSPATH of the server, thus the server 
> should be able to find javay.servlet.GenericServlet.
> 
> 
> Any ideas?
> 
> thx
> martin
> 
> 
> 
> 





Re: SOAP and Tomcat 4.0

Posted by Martin Centner <mc...@sbox.tugraz.at>.
Thomas Thornbury wrote:

> What exactly is your CLASSPATH and how are you setting that CLASSPATH?


servlet.jar is in ${TOMCAT_HOME}/common/lib/

and i just thought that would be in the CLASSPATH too

But now i tried to put it into to CLASSPATH manualy (by editing 
catalina.sh, varaiable: CP) and the error message changed to:


[SOAPException: faultCode=SOAP-ENV:Server; msg='myProvider' isn't a 
provider]
at org.apache.soap.server.ServerUtils.loadProvider(ServerUtils.java:150)
at 
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:279)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)


But myProvider must be a Provider, when it is directly derived from 
RPCJavaProivder !!?


cu
martin

 
> -----Original Message-----
> From: Martin Centner [mailto:mcentner@sbox.tugraz.at] 
> Sent: Tuesday, January 22, 2002 3:18 PM
> To: soap-user@xml.apache.org
> Subject: Re: SOAP and Tomcat 4.0
> 
> 
> Thomas Thornbury wrote:
> 
> 
>>Sure.  I'm running SOAP 2.2 and 4.0.1 right now.
>>
> 
> 
> ... so maybe you could help me:
> 
> 
> I am using SOAP 2.2 and Tomcat 4.0.1 too. Normal RPC calls over the 
> RPCJavaProvider work so far, but when I try to use my own provider - 
> even if it just exetends RPCJavaProvider without anything else - I get 
> the following error message:
> 
> <stackTrace>
> java.lang.NoClassDefFoundError: javax/servlet/GenericServlet
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:195)
> at org.apache.soap.rpc.SOAPContext.loadClass(SOAPContext.java:557)
> at org.apache.soap.server.ServerUtils.loadProvider(ServerUtils.java:141)
> at 
> org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.jav
> a:279)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:247)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:193)
> 
> 
> My provider looks like the following:
> 
> public class myProvider extends
>       org.apache.soap.providers.RPCJavaProvider {}
> 
> 
> 
> The servlet.jar is in the CLASSPATH of the server, thus the server 
> should be able to find javay.servlet.GenericServlet.
> 
> 
> Any ideas?
> 
> thx
> martin
> 
> 
> 
> 





RE: SOAP and Tomcat 4.0

Posted by Thomas Thornbury <th...@optonline.net>.
What exactly is your CLASSPATH and how are you setting that CLASSPATH?

-----Original Message-----
From: Martin Centner [mailto:mcentner@sbox.tugraz.at] 
Sent: Tuesday, January 22, 2002 3:18 PM
To: soap-user@xml.apache.org
Subject: Re: SOAP and Tomcat 4.0


Thomas Thornbury wrote:

> Sure.  I'm running SOAP 2.2 and 4.0.1 right now.


... so maybe you could help me:


I am using SOAP 2.2 and Tomcat 4.0.1 too. Normal RPC calls over the 
RPCJavaProvider work so far, but when I try to use my own provider - 
even if it just exetends RPCJavaProvider without anything else - I get 
the following error message:

<stackTrace>
java.lang.NoClassDefFoundError: javax/servlet/GenericServlet
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:195)
at org.apache.soap.rpc.SOAPContext.loadClass(SOAPContext.java:557)
at org.apache.soap.server.ServerUtils.loadProvider(ServerUtils.java:141)
at 
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.jav
a:279)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)


My provider looks like the following:

public class myProvider extends
      org.apache.soap.providers.RPCJavaProvider {}



The servlet.jar is in the CLASSPATH of the server, thus the server 
should be able to find javay.servlet.GenericServlet.


Any ideas?

thx
martin




RE: SOAP and Tomcat 4.0

Posted by Thomas Thornbury <th...@optonline.net>.
What exactly is your CLASSPATH and how are you setting that CLASSPATH?

-----Original Message-----
From: Martin Centner [mailto:mcentner@sbox.tugraz.at] 
Sent: Tuesday, January 22, 2002 3:18 PM
To: soap-user@xml.apache.org
Subject: Re: SOAP and Tomcat 4.0


Thomas Thornbury wrote:

> Sure.  I'm running SOAP 2.2 and 4.0.1 right now.


... so maybe you could help me:


I am using SOAP 2.2 and Tomcat 4.0.1 too. Normal RPC calls over the 
RPCJavaProvider work so far, but when I try to use my own provider - 
even if it just exetends RPCJavaProvider without anything else - I get 
the following error message:

<stackTrace>
java.lang.NoClassDefFoundError: javax/servlet/GenericServlet
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:195)
at org.apache.soap.rpc.SOAPContext.loadClass(SOAPContext.java:557)
at org.apache.soap.server.ServerUtils.loadProvider(ServerUtils.java:141)
at 
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.jav
a:279)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)


My provider looks like the following:

public class myProvider extends
      org.apache.soap.providers.RPCJavaProvider {}



The servlet.jar is in the CLASSPATH of the server, thus the server 
should be able to find javay.servlet.GenericServlet.


Any ideas?

thx
martin




Re: SOAP and Tomcat 4.0

Posted by Martin Centner <mc...@sbox.tugraz.at>.
Thomas Thornbury wrote:

> Sure.  I'm running SOAP 2.2 and 4.0.1 right now.


... so maybe you could help me:


I am using SOAP 2.2 and Tomcat 4.0.1 too. Normal RPC calls over the 
RPCJavaProvider work so far, but when I try to use my own provider - 
even if it just exetends RPCJavaProvider without anything else - I get 
the following error message:

<stackTrace>
java.lang.NoClassDefFoundError: javax/servlet/GenericServlet
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:195)
at org.apache.soap.rpc.SOAPContext.loadClass(SOAPContext.java:557)
at org.apache.soap.server.ServerUtils.loadProvider(ServerUtils.java:141)
at 
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:279)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)


My provider looks like the following:

public class myProvider extends
      org.apache.soap.providers.RPCJavaProvider {}



The servlet.jar is in the CLASSPATH of the server, thus the server 
should be able to find javay.servlet.GenericServlet.


Any ideas?

thx
martin



Re: SOAP and Tomcat 4.0

Posted by Martin Centner <mc...@sbox.tugraz.at>.
Thomas Thornbury wrote:

> Sure.  I'm running SOAP 2.2 and 4.0.1 right now.


... so maybe you could help me:


I am using SOAP 2.2 and Tomcat 4.0.1 too. Normal RPC calls over the 
RPCJavaProvider work so far, but when I try to use my own provider - 
even if it just exetends RPCJavaProvider without anything else - I get 
the following error message:

<stackTrace>
java.lang.NoClassDefFoundError: javax/servlet/GenericServlet
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:195)
at org.apache.soap.rpc.SOAPContext.loadClass(SOAPContext.java:557)
at org.apache.soap.server.ServerUtils.loadProvider(ServerUtils.java:141)
at 
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:279)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)


My provider looks like the following:

public class myProvider extends
      org.apache.soap.providers.RPCJavaProvider {}



The servlet.jar is in the CLASSPATH of the server, thus the server 
should be able to find javay.servlet.GenericServlet.


Any ideas?

thx
martin



RE: SOAP and Tomcat 4.0

Posted by Richard Bourland <re...@yahoo.com>.
try putting the soap.war file in the root of the
webapps directory and restart tomcat.  The soap rpc
servlet and admin console should be running after
that.

--- Thomas Thornbury <th...@optonline.net> wrote:
> Sure.  I'm running SOAP 2.2 and 4.0.1 right now.
> 
> -----Original Message-----
> From: Terry Petty [mailto:tmpetty@msp-drilex.com] 
> Sent: Tuesday, January 22, 2002 3:04 PM
> To: soap-user@xml.apache.org
> Subject: SOAP and Tomcat 4.0
> 
> 
> I have set up Apache Soap 2.0 to work with Tomcat
> 3.2.x Now I am trying
> to work with the new upgraded environments. I have
> not been successful
> getting Soap 2.2 to work with Tomcat 4.0.x.
> 
> Does anyone know if that is possible?
> 
> Thanks - Terry
> 
> -----Original Message-----
> From: Thomas Thornbury [mailto:thornt@optonline.net]
> Sent: Tuesday, January 22, 2002 1:40 PM
> To: soap-user@xml.apache.org; Jinyu.Wang@oracle.com
> Subject: RE: How to get the content of SOAP RPC
> messages
> 
> 
> I don't think you can get the content of RPC
> messages, you need to have
> access to the Envelope and I don't believe you have
> access to that in an
> RPC message, only Message based SOAP calls.  In RPC
> based messages, SOAP
> hides all that for you.
> 
> -----Original Message-----
> From: Jinyu.Wang [mailto:Jinyu.Wang@oracle.com]
> Sent: Tuesday, January 22, 2002 2:32 PM
> To: 'Soap-User
> Subject: How to get the content of SOAP RPC messages
> 
> 
> Hi,
> 
> Does anyone try to get the content of the SOAP RPC
> messages? Any example
> using call.marshall()?
> 
> Thanks.
> Jinyu
> 
> 
> 
> 
> 


=====
------------------------------
email - rebourland@yahoo.com
Home  - 972.869.9878
Cell  - 972.567.7536   
------------------------------

__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

RE: SOAP and Tomcat 4.0

Posted by Richard Bourland <re...@yahoo.com>.
try putting the soap.war file in the root of the
webapps directory and restart tomcat.  The soap rpc
servlet and admin console should be running after
that.

--- Thomas Thornbury <th...@optonline.net> wrote:
> Sure.  I'm running SOAP 2.2 and 4.0.1 right now.
> 
> -----Original Message-----
> From: Terry Petty [mailto:tmpetty@msp-drilex.com] 
> Sent: Tuesday, January 22, 2002 3:04 PM
> To: soap-user@xml.apache.org
> Subject: SOAP and Tomcat 4.0
> 
> 
> I have set up Apache Soap 2.0 to work with Tomcat
> 3.2.x Now I am trying
> to work with the new upgraded environments. I have
> not been successful
> getting Soap 2.2 to work with Tomcat 4.0.x.
> 
> Does anyone know if that is possible?
> 
> Thanks - Terry
> 
> -----Original Message-----
> From: Thomas Thornbury [mailto:thornt@optonline.net]
> Sent: Tuesday, January 22, 2002 1:40 PM
> To: soap-user@xml.apache.org; Jinyu.Wang@oracle.com
> Subject: RE: How to get the content of SOAP RPC
> messages
> 
> 
> I don't think you can get the content of RPC
> messages, you need to have
> access to the Envelope and I don't believe you have
> access to that in an
> RPC message, only Message based SOAP calls.  In RPC
> based messages, SOAP
> hides all that for you.
> 
> -----Original Message-----
> From: Jinyu.Wang [mailto:Jinyu.Wang@oracle.com]
> Sent: Tuesday, January 22, 2002 2:32 PM
> To: 'Soap-User
> Subject: How to get the content of SOAP RPC messages
> 
> 
> Hi,
> 
> Does anyone try to get the content of the SOAP RPC
> messages? Any example
> using call.marshall()?
> 
> Thanks.
> Jinyu
> 
> 
> 
> 
> 


=====
------------------------------
email - rebourland@yahoo.com
Home  - 972.869.9878
Cell  - 972.567.7536   
------------------------------

__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

RE: SOAP and Tomcat 4.0

Posted by Thomas Thornbury <th...@optonline.net>.
Sure.  I'm running SOAP 2.2 and 4.0.1 right now.

-----Original Message-----
From: Terry Petty [mailto:tmpetty@msp-drilex.com] 
Sent: Tuesday, January 22, 2002 3:04 PM
To: soap-user@xml.apache.org
Subject: SOAP and Tomcat 4.0


I have set up Apache Soap 2.0 to work with Tomcat 3.2.x Now I am trying
to work with the new upgraded environments. I have not been successful
getting Soap 2.2 to work with Tomcat 4.0.x.

Does anyone know if that is possible?

Thanks - Terry

-----Original Message-----
From: Thomas Thornbury [mailto:thornt@optonline.net]
Sent: Tuesday, January 22, 2002 1:40 PM
To: soap-user@xml.apache.org; Jinyu.Wang@oracle.com
Subject: RE: How to get the content of SOAP RPC messages


I don't think you can get the content of RPC messages, you need to have
access to the Envelope and I don't believe you have access to that in an
RPC message, only Message based SOAP calls.  In RPC based messages, SOAP
hides all that for you.

-----Original Message-----
From: Jinyu.Wang [mailto:Jinyu.Wang@oracle.com]
Sent: Tuesday, January 22, 2002 2:32 PM
To: 'Soap-User
Subject: How to get the content of SOAP RPC messages


Hi,

Does anyone try to get the content of the SOAP RPC messages? Any example
using call.marshall()?

Thanks.
Jinyu






RE: SOAP and Tomcat 4.0

Posted by Thomas Thornbury <th...@optonline.net>.
Sure.  I'm running SOAP 2.2 and 4.0.1 right now.

-----Original Message-----
From: Terry Petty [mailto:tmpetty@msp-drilex.com] 
Sent: Tuesday, January 22, 2002 3:04 PM
To: soap-user@xml.apache.org
Subject: SOAP and Tomcat 4.0


I have set up Apache Soap 2.0 to work with Tomcat 3.2.x Now I am trying
to work with the new upgraded environments. I have not been successful
getting Soap 2.2 to work with Tomcat 4.0.x.

Does anyone know if that is possible?

Thanks - Terry

-----Original Message-----
From: Thomas Thornbury [mailto:thornt@optonline.net]
Sent: Tuesday, January 22, 2002 1:40 PM
To: soap-user@xml.apache.org; Jinyu.Wang@oracle.com
Subject: RE: How to get the content of SOAP RPC messages


I don't think you can get the content of RPC messages, you need to have
access to the Envelope and I don't believe you have access to that in an
RPC message, only Message based SOAP calls.  In RPC based messages, SOAP
hides all that for you.

-----Original Message-----
From: Jinyu.Wang [mailto:Jinyu.Wang@oracle.com]
Sent: Tuesday, January 22, 2002 2:32 PM
To: 'Soap-User
Subject: How to get the content of SOAP RPC messages


Hi,

Does anyone try to get the content of the SOAP RPC messages? Any example
using call.marshall()?

Thanks.
Jinyu






SOAP and Tomcat 4.0

Posted by Terry Petty <tm...@msp-drilex.com>.
I have set up Apache Soap 2.0 to work with Tomcat 3.2.x Now I am trying to
work with the new upgraded environments. I have not been successful getting
Soap 2.2 to work with Tomcat 4.0.x.

Does anyone know if that is possible?

Thanks - Terry

-----Original Message-----
From: Thomas Thornbury [mailto:thornt@optonline.net]
Sent: Tuesday, January 22, 2002 1:40 PM
To: soap-user@xml.apache.org; Jinyu.Wang@oracle.com
Subject: RE: How to get the content of SOAP RPC messages


I don't think you can get the content of RPC messages, you need to have
access to the Envelope and I don't believe you have access to that in an
RPC message, only Message based SOAP calls.  In RPC based messages, SOAP
hides all that for you.

-----Original Message-----
From: Jinyu.Wang [mailto:Jinyu.Wang@oracle.com]
Sent: Tuesday, January 22, 2002 2:32 PM
To: 'Soap-User
Subject: How to get the content of SOAP RPC messages


Hi,

Does anyone try to get the content of the SOAP RPC messages? Any example
using call.marshall()?

Thanks.
Jinyu





SOAP and Tomcat 4.0

Posted by Terry Petty <tm...@msp-drilex.com>.
I have set up Apache Soap 2.0 to work with Tomcat 3.2.x Now I am trying to
work with the new upgraded environments. I have not been successful getting
Soap 2.2 to work with Tomcat 4.0.x.

Does anyone know if that is possible?

Thanks - Terry

-----Original Message-----
From: Thomas Thornbury [mailto:thornt@optonline.net]
Sent: Tuesday, January 22, 2002 1:40 PM
To: soap-user@xml.apache.org; Jinyu.Wang@oracle.com
Subject: RE: How to get the content of SOAP RPC messages


I don't think you can get the content of RPC messages, you need to have
access to the Envelope and I don't believe you have access to that in an
RPC message, only Message based SOAP calls.  In RPC based messages, SOAP
hides all that for you.

-----Original Message-----
From: Jinyu.Wang [mailto:Jinyu.Wang@oracle.com]
Sent: Tuesday, January 22, 2002 2:32 PM
To: 'Soap-User
Subject: How to get the content of SOAP RPC messages


Hi,

Does anyone try to get the content of the SOAP RPC messages? Any example
using call.marshall()?

Thanks.
Jinyu





RE: How to get the content of SOAP RPC messages

Posted by Thomas Thornbury <th...@optonline.net>.
I don't think you can get the content of RPC messages, you need to have
access to the Envelope and I don't believe you have access to that in an
RPC message, only Message based SOAP calls.  In RPC based messages, SOAP
hides all that for you.

-----Original Message-----
From: Jinyu.Wang [mailto:Jinyu.Wang@oracle.com] 
Sent: Tuesday, January 22, 2002 2:32 PM
To: 'Soap-User
Subject: How to get the content of SOAP RPC messages


Hi,

Does anyone try to get the content of the SOAP RPC messages? Any example
using call.marshall()?

Thanks.
Jinyu



RE: How to get the content of SOAP RPC messages

Posted by Thomas Thornbury <th...@optonline.net>.
I don't think you can get the content of RPC messages, you need to have
access to the Envelope and I don't believe you have access to that in an
RPC message, only Message based SOAP calls.  In RPC based messages, SOAP
hides all that for you.

-----Original Message-----
From: Jinyu.Wang [mailto:Jinyu.Wang@oracle.com] 
Sent: Tuesday, January 22, 2002 2:32 PM
To: 'Soap-User
Subject: How to get the content of SOAP RPC messages


Hi,

Does anyone try to get the content of the SOAP RPC messages? Any example
using call.marshall()?

Thanks.
Jinyu