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 Richard Heintze <si...@yahoo.com> on 2001/07/31 07:43:49 UTC

return args in examples don't work

I've tried running several examples and the only one I
can make work is provider. I think this is because
nothing is passed back from the server to the client.
The addressbook sampe, for example, works if I am
adding an address but fails when I try to list all the
addresses or get an address.

Here is a sample stack trace from the tunnel program:

HTTP/1.0 500 Internal Server Error

Content-Type: text/xml; charset=utf-8

Content-Length: 2314

Set-Cookie2:
JSESSIONID=qfi3mauiq1;Version=1;Discard;Path="/soap"

Set-Cookie: JSESSIONID=qfi3mauiq1;Path=/soap

Servlet-Engine: Tomcat Web Server/3.2.3 (JSP 1.1;
Servlet 2.2; Java 1.3.0; Windows 2000 5.0 x86;
java.vendor=Sun Microsystems Inc.)



<?xml version='1.0' encoding='UTF-8'?>

<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">

<SOAP-ENV:Body>

<SOAP-ENV:Fault>

<faultcode>SOAP-ENV:Server.BadTargetObjectURI</faultcode>

<faultstring>Unable to resolve target object:
samples.stockquote.StockQuoteService</faultstring>

<faultactor>/soap/servlet/rpcrouter</faultactor>

<detail>

<stackTrace>java.lang.ClassNotFoundException:
samples.stockquote.StockQuoteService

	at
java.net.URLClassLoader$1.run(URLClassLoader.java:200)

	at java.security.AccessController.doPrivileged(Native
Method)

	at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)

	at
java.lang.ClassLoader.loadClass(ClassLoader.java:297)

	at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)

	at
java.lang.ClassLoader.loadClass(ClassLoader.java:253)

	at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)

	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.http.ServerHTTPUtils.getTargetObject(ServerHTTPUtils.java:274)

	at
org.apache.soap.providers.RPCJavaProvider.locate(RPCJavaProvider.java:117)

	at
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:285)

	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

	at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)

	at
org.apache.tomcat.core.Handler.service(Handler.java:287)

	at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)

	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)

	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)

	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)

	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)

	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)

	at java.lang.Thread.run(Thread.java:484)

</stackTrace>

</detail>

</SOAP-ENV:Fault>



</SOAP-ENV:Body>

</SOAP-ENV:Envelope>





__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

Re: Calc Example Works!

Posted by Richard Heintze <si...@yahoo.com>.
Thank you Tom!

Here is my fix:

  (1) In the tomcat/lib directory
     (1a) rename bsf.jar to zbsf.jar
     (1b) rename bsfengines.jar
  (2) Copy apache_soap/bsf2_2/bsf.jar to the
tomcat/lib directory.

          Siegfried


--- Tom Myers <to...@dreamscape.com> wrote:
> At 12:15 AM 7/31/2001 -0700, Richard Heintze wrote:
> >Matt,
> >  I had a heck of a time with the classpath. I
> thought
> >I just had to restart the server for changes to the
> >class path to take effect. Not so. I had to log out
> >and log back in again (it only took me about 4
> hours
> >to figure this out). I'm really confused because it
> >sometimes works to kill the processes and start new
> >new ones on Win2K.
> 
> If the classpath is an environment variable, you may
> need to reinitialize the environment, but on NT this
> has usually just required closing a window (and
> restarting the server, of course.)
> 
> 
> >To the class path I added 
> >
>
>.;..\\..;c:\\jakarta-tomcat-3.2.3\\webapps\\soap\\WEB-INF\\classes;
> >
> >
> >Is this wrong? Should I have added
> >c:\apache_soap\soap-2.2\samples instead?
> 
> If you're looking to load foo.bar.Yuk as a class,
> then you add
> some directory which contains foo as a subdirectory
> (so that
> foo/bar/Yuk.class is included from that point).
> 
> 
> >Now the stockquote works and the addressbook works
> and
> >the message works too! The calculator example still
> >does not work -- it still cannot load javascript
> for
> >some reason.
> >
> >Here is my classpath from cp.jsp:
> 
> and I see it includes
> 
> >  ..\lib\bsf.jar;
> >..\lib\bsfengines.jar; 
> 
> 
> >c:\apache_soap\bsf-2_2\lib\bsf.jar;
> >c:\apache_soap\rhino\rhino\js.jar;
> 
> (1)You may be having a version
> trouble...bsfengines.jar was
> separate from bsf.jar in older versions, but
> according to
>  
>
http://mailman.real-time.com/pipermail/cocoon-devel/2000-November/003332.html
> the xalan2 bsf.jar, which seems to be the same as
> the soap
> distribution bsf.jar, has incorporated
> bsfengines.jar; I
> don't have bsfengines.jar in my setup, which works
> fine.
> It might be a good idea for you to get rid of your
> old
> xerces/xalan stuff, including anything distributed
> with
> Tomcat (move things into temporary directories) and
> just
> put in the current xerces.
> 
> (2) If the file "c:\apache_soap\rhino\rhino\js.jar"
> does not exist, I think you'd get the error message
> you're
> getting (try removing it and see if anything
> changes; try
> putting it into your java_home/jre/lib/ext directory
> and
> see if anything changes) 
> (3) You might want to download bsf from
>   
>
http://oss.software.ibm.com/developerworks/projects/bsf
> and js from
> http://www.mozilla.org/rhino/download.html
> and see what you can get to work in isolation; each
> of
> course comes with javadoc and examples, and if your
> problem
> is that bsf can't find js within soap then it might
> be best 
> to first make sure you can run js, then make sure
> bsf can
> find it outside of soap.
> (4) or you might just want to check within a jsp,
> say insert
> ----------------------------
> <h4>Rhino Implementation: 
> <%
>    try {
>    out.write(new
>
org.mozilla.javascript.Context().getImplementationVersion());
>    }catch(Exception ex){out.write("none ");}
> %></h4>
> ----------------------------
> into cp.jsp -- it won't compile unless the class is
> found,
> of course.
> 
> 
> Tom Myers
> 


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

Re: Calc Example Works!

Posted by Richard Heintze <si...@yahoo.com>.
Thank you Tom!

Here is my fix:

  (1) In the tomcat/lib directory
     (1a) rename bsf.jar to zbsf.jar
     (1b) rename bsfengines.jar
  (2) Copy apache_soap/bsf2_2/bsf.jar to the
tomcat/lib directory.

          Siegfried


--- Tom Myers <to...@dreamscape.com> wrote:
> At 12:15 AM 7/31/2001 -0700, Richard Heintze wrote:
> >Matt,
> >  I had a heck of a time with the classpath. I
> thought
> >I just had to restart the server for changes to the
> >class path to take effect. Not so. I had to log out
> >and log back in again (it only took me about 4
> hours
> >to figure this out). I'm really confused because it
> >sometimes works to kill the processes and start new
> >new ones on Win2K.
> 
> If the classpath is an environment variable, you may
> need to reinitialize the environment, but on NT this
> has usually just required closing a window (and
> restarting the server, of course.)
> 
> 
> >To the class path I added 
> >
>
>.;..\\..;c:\\jakarta-tomcat-3.2.3\\webapps\\soap\\WEB-INF\\classes;
> >
> >
> >Is this wrong? Should I have added
> >c:\apache_soap\soap-2.2\samples instead?
> 
> If you're looking to load foo.bar.Yuk as a class,
> then you add
> some directory which contains foo as a subdirectory
> (so that
> foo/bar/Yuk.class is included from that point).
> 
> 
> >Now the stockquote works and the addressbook works
> and
> >the message works too! The calculator example still
> >does not work -- it still cannot load javascript
> for
> >some reason.
> >
> >Here is my classpath from cp.jsp:
> 
> and I see it includes
> 
> >  ..\lib\bsf.jar;
> >..\lib\bsfengines.jar; 
> 
> 
> >c:\apache_soap\bsf-2_2\lib\bsf.jar;
> >c:\apache_soap\rhino\rhino\js.jar;
> 
> (1)You may be having a version
> trouble...bsfengines.jar was
> separate from bsf.jar in older versions, but
> according to
>  
>
http://mailman.real-time.com/pipermail/cocoon-devel/2000-November/003332.html
> the xalan2 bsf.jar, which seems to be the same as
> the soap
> distribution bsf.jar, has incorporated
> bsfengines.jar; I
> don't have bsfengines.jar in my setup, which works
> fine.
> It might be a good idea for you to get rid of your
> old
> xerces/xalan stuff, including anything distributed
> with
> Tomcat (move things into temporary directories) and
> just
> put in the current xerces.
> 
> (2) If the file "c:\apache_soap\rhino\rhino\js.jar"
> does not exist, I think you'd get the error message
> you're
> getting (try removing it and see if anything
> changes; try
> putting it into your java_home/jre/lib/ext directory
> and
> see if anything changes) 
> (3) You might want to download bsf from
>   
>
http://oss.software.ibm.com/developerworks/projects/bsf
> and js from
> http://www.mozilla.org/rhino/download.html
> and see what you can get to work in isolation; each
> of
> course comes with javadoc and examples, and if your
> problem
> is that bsf can't find js within soap then it might
> be best 
> to first make sure you can run js, then make sure
> bsf can
> find it outside of soap.
> (4) or you might just want to check within a jsp,
> say insert
> ----------------------------
> <h4>Rhino Implementation: 
> <%
>    try {
>    out.write(new
>
org.mozilla.javascript.Context().getImplementationVersion());
>    }catch(Exception ex){out.write("none ");}
> %></h4>
> ----------------------------
> into cp.jsp -- it won't compile unless the class is
> found,
> of course.
> 
> 
> Tom Myers
> 


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

Re: Calc Example failes

Posted by Tom Myers <to...@dreamscape.com>.
At 12:15 AM 7/31/2001 -0700, Richard Heintze wrote:
>Matt,
>  I had a heck of a time with the classpath. I thought
>I just had to restart the server for changes to the
>class path to take effect. Not so. I had to log out
>and log back in again (it only took me about 4 hours
>to figure this out). I'm really confused because it
>sometimes works to kill the processes and start new
>new ones on Win2K.

If the classpath is an environment variable, you may
need to reinitialize the environment, but on NT this
has usually just required closing a window (and
restarting the server, of course.)


>To the class path I added 
>
>.;..\\..;c:\\jakarta-tomcat-3.2.3\\webapps\\soap\\WEB-INF\\classes;
>
>
>Is this wrong? Should I have added
>c:\apache_soap\soap-2.2\samples instead?

If you're looking to load foo.bar.Yuk as a class, then you add
some directory which contains foo as a subdirectory (so that
foo/bar/Yuk.class is included from that point).


>Now the stockquote works and the addressbook works and
>the message works too! The calculator example still
>does not work -- it still cannot load javascript for
>some reason.
>
>Here is my classpath from cp.jsp:

and I see it includes

>  ..\lib\bsf.jar;
>..\lib\bsfengines.jar; 


>c:\apache_soap\bsf-2_2\lib\bsf.jar;
>c:\apache_soap\rhino\rhino\js.jar;

(1)You may be having a version trouble...bsfengines.jar was
separate from bsf.jar in older versions, but according to
  http://mailman.real-time.com/pipermail/cocoon-devel/2000-November/003332.html
the xalan2 bsf.jar, which seems to be the same as the soap
distribution bsf.jar, has incorporated bsfengines.jar; I
don't have bsfengines.jar in my setup, which works fine.
It might be a good idea for you to get rid of your old
xerces/xalan stuff, including anything distributed with
Tomcat (move things into temporary directories) and just
put in the current xerces.

(2) If the file "c:\apache_soap\rhino\rhino\js.jar"
does not exist, I think you'd get the error message you're
getting (try removing it and see if anything changes; try
putting it into your java_home/jre/lib/ext directory and
see if anything changes) 
(3) You might want to download bsf from
   http://oss.software.ibm.com/developerworks/projects/bsf
and js from http://www.mozilla.org/rhino/download.html
and see what you can get to work in isolation; each of
course comes with javadoc and examples, and if your problem
is that bsf can't find js within soap then it might be best 
to first make sure you can run js, then make sure bsf can
find it outside of soap.
(4) or you might just want to check within a jsp, say insert
----------------------------
<h4>Rhino Implementation: 
<%
   try {
   out.write(new org.mozilla.javascript.Context().getImplementationVersion());
   }catch(Exception ex){out.write("none ");}
%></h4>
----------------------------
into cp.jsp -- it won't compile unless the class is found,
of course.


Tom Myers


Re: Calc Example failes

Posted by Tom Myers <to...@dreamscape.com>.
At 12:15 AM 7/31/2001 -0700, Richard Heintze wrote:
>Matt,
>  I had a heck of a time with the classpath. I thought
>I just had to restart the server for changes to the
>class path to take effect. Not so. I had to log out
>and log back in again (it only took me about 4 hours
>to figure this out). I'm really confused because it
>sometimes works to kill the processes and start new
>new ones on Win2K.

If the classpath is an environment variable, you may
need to reinitialize the environment, but on NT this
has usually just required closing a window (and
restarting the server, of course.)


>To the class path I added 
>
>.;..\\..;c:\\jakarta-tomcat-3.2.3\\webapps\\soap\\WEB-INF\\classes;
>
>
>Is this wrong? Should I have added
>c:\apache_soap\soap-2.2\samples instead?

If you're looking to load foo.bar.Yuk as a class, then you add
some directory which contains foo as a subdirectory (so that
foo/bar/Yuk.class is included from that point).


>Now the stockquote works and the addressbook works and
>the message works too! The calculator example still
>does not work -- it still cannot load javascript for
>some reason.
>
>Here is my classpath from cp.jsp:

and I see it includes

>  ..\lib\bsf.jar;
>..\lib\bsfengines.jar; 


>c:\apache_soap\bsf-2_2\lib\bsf.jar;
>c:\apache_soap\rhino\rhino\js.jar;

(1)You may be having a version trouble...bsfengines.jar was
separate from bsf.jar in older versions, but according to
  http://mailman.real-time.com/pipermail/cocoon-devel/2000-November/003332.html
the xalan2 bsf.jar, which seems to be the same as the soap
distribution bsf.jar, has incorporated bsfengines.jar; I
don't have bsfengines.jar in my setup, which works fine.
It might be a good idea for you to get rid of your old
xerces/xalan stuff, including anything distributed with
Tomcat (move things into temporary directories) and just
put in the current xerces.

(2) If the file "c:\apache_soap\rhino\rhino\js.jar"
does not exist, I think you'd get the error message you're
getting (try removing it and see if anything changes; try
putting it into your java_home/jre/lib/ext directory and
see if anything changes) 
(3) You might want to download bsf from
   http://oss.software.ibm.com/developerworks/projects/bsf
and js from http://www.mozilla.org/rhino/download.html
and see what you can get to work in isolation; each of
course comes with javadoc and examples, and if your problem
is that bsf can't find js within soap then it might be best 
to first make sure you can run js, then make sure bsf can
find it outside of soap.
(4) or you might just want to check within a jsp, say insert
----------------------------
<h4>Rhino Implementation: 
<%
   try {
   out.write(new org.mozilla.javascript.Context().getImplementationVersion());
   }catch(Exception ex){out.write("none ");}
%></h4>
----------------------------
into cp.jsp -- it won't compile unless the class is found,
of course.


Tom Myers


Calc Example failes

Posted by Richard Heintze <si...@yahoo.com>.
Matt,
 I had a heck of a time with the classpath. I thought
I just had to restart the server for changes to the
class path to take effect. Not so. I had to log out
and log back in again (it only took me about 4 hours
to figure this out). I'm really confused because it
sometimes works to kill the processes and start new
new ones on Win2K.

To the class path I added 

.;..\\..;c:\\jakarta-tomcat-3.2.3\\webapps\\soap\\WEB-INF\\classes;


Is this wrong? Should I have added
c:\apache_soap\soap-2.2\samples instead?

Now the stockquote works and the addressbook works and
the message works too! The calculator example still
does not work -- it still cannot load javascript for
some reason.

Here is my classpath from cp.jsp:
..\classes; ..\lib\ant.jar; ..\lib\ant_1_1.jar;
..\lib\a_xerces.jar; ..\lib\bsf.jar;
..\lib\bsfengines.jar; ..\lib\cocoon.jar;
..\lib\fesi.jar; ..\lib\fop_0_15_0.jar;
..\lib\jasper.jar; ..\lib\jaxp.jar;
..\lib\sax-bugfix.jar; ..\lib\servlet.jar;
..\lib\servlet_2_2.jar; ..\lib\soap.jar;
..\lib\stylebook-1.0-b2.jar; ..\lib\turbine-pool.jar;
..\lib\w3c.jar; ..\lib\webserver.jar;
..\lib\xalan_1_2_D02.jar; ..\lib\xerces_1_2.jar;
..\lib\xt.jar; ..\lib\zparser.jar; ..\lib\zxml.jar; .;
..\..;
c:\jakarta-tomcat-3.2.3\webapps\soap\WEB-INF\classes;
c:\jakarta-tomcat-3.2.3\lib\xerces_1_2.jar;
c:\jakarta-tomcat-3.2.3\lib\soap.jar;
c:\apache_soap\bsf-2_2\lib\bsf.jar;
c:\apache_soap\jaf\jaf1_0_1\jaf-1.0.1\activation.jar;
c:\apache_soap\java_mail\javamail-1_2\javamail-1.2\mail.jar;
c:\apache_soap\rhino\rhino\js.jar;
c:\apache_soap\soap-2_2\lib\soap.jar;
C:\Books\Java\Code\Java_Swing\ch2\BWM.jar;
C:\Fop-0.19.0-CVS; c:\jdk1.3\lib\tools.jar; 


Here is the stack trace:
HTTP/1.0 500 Internal Server Error
Content-Type: text/xml; charset=utf-8
Content-Length: 1825
Set-Cookie2:
JSESSIONID=pw86buwn31;Version=1;Discard;Path="/soap"
Set-Cookie: JSESSIONID=pw86buwn31;Path=/soap
Servlet-Engine: Tomcat Web Server/3.2.3 (JSP 1.1;
Servlet 2.2; Java 1.3.0; Windows 2000 5.0 x86;
java.vendor=Sun Microsystems Inc.)
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>BSF Error: unable to load language:
javascript</faultstring>
<faultactor>/soap/servlet/rpcrouter</faultactor>
<detail>
<stackTrace>com.ibm.bsf.BSFException: unable to load
language: javascript
	at
com.ibm.bsf.BSFManager.loadScriptingEngine(BSFManager.java:325)
	at
org.apache.soap.server.InvokeBSF.service(InvokeBSF.java:117)
	at java.lang.reflect.Method.invoke(Native Method)
	at
org.apache.soap.server.RPCRouter.invoke(RPCRouter.java:158)
	at
org.apache.soap.providers.RPCJavaProvider.invoke(RPCJavaProvider.java:129)
	at
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:287)
	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at
org.apache.tomcat.core.Handler.service(Handler.java:287)
	at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:484)
</stackTrace>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Thanks,
      Siegfried (Richard)




--- "Matthew J. Duftler" <du...@watson.ibm.com>
wrote:
> Hi Richard,
> 
> From reading your note:
> 
> > <stackTrace>java.lang.ClassNotFoundException:
> > samples.stockquote.StockQuoteService
> 
> it appears as if your server can't resolve the
> samples.stockquote.StockQuoteService class. Did you
> add the soap-2_2
> directory to your classpath as described in the
> installation docs?
> 
> Thanks,
> -Matt
> 
> > -----Original Message-----
> > From: Richard Heintze
> [mailto:sieg_heintze@yahoo.com]
> > Sent: Tuesday, July 31, 2001 1:44 AM
> > To: soap-user@xml.apache.org
> > Subject: return args in examples don't work
> >
> >
> > I've tried running several examples and the only
> one I
> > can make work is provider. I think this is because
> > nothing is passed back from the server to the
> client.
> > The addressbook sampe, for example, works if I am
> > adding an address but fails when I try to list all
> the
> > addresses or get an address.
> >
> > Here is a sample stack trace from the tunnel
> program:
> >
> > HTTP/1.0 500 Internal Server Error
> >
> > Content-Type: text/xml; charset=utf-8
> >
> > Content-Length: 2314
> >
> > Set-Cookie2:
> >
> JSESSIONID=qfi3mauiq1;Version=1;Discard;Path="/soap"
> >
> > Set-Cookie: JSESSIONID=qfi3mauiq1;Path=/soap
> >
> > Servlet-Engine: Tomcat Web Server/3.2.3 (JSP 1.1;
> > Servlet 2.2; Java 1.3.0; Windows 2000 5.0 x86;
> > java.vendor=Sun Microsystems Inc.)
> >
> >
> >
> > <?xml version='1.0' encoding='UTF-8'?>
> >
> > <SOAP-ENV:Envelope
> >
>
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> >
>
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
> > xmlns:xsd="http://www.w3.org/1999/XMLSchema">
> >
> > <SOAP-ENV:Body>
> >
> > <SOAP-ENV:Fault>
> >
> >
>
<faultcode>SOAP-ENV:Server.BadTargetObjectURI</faultcode>
> >
> > <faultstring>Unable to resolve target object:
> > samples.stockquote.StockQuoteService</faultstring>
> >
> > <faultactor>/soap/servlet/rpcrouter</faultactor>
> >
> > <detail>
> >
> > <stackTrace>java.lang.ClassNotFoundException:
> > samples.stockquote.StockQuoteService
> >
> > 	at
> >
>
java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> >
> > 	at
> java.security.AccessController.doPrivileged(Native
> > Method)
> >
> > 	at
> >
>
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> >
> > 	at
> >
>
java.lang.ClassLoader.loadClass(ClassLoader.java:297)
> >
> > 	at
> >
>
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
> >
> > 	at
> >
>
java.lang.ClassLoader.loadClass(ClassLoader.java:253)
> >
> > 	at
> >
>
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
> >
> > 	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.http.ServerHTTPUtils.getTargetObject(Server
> > HTTPUtils.java:274)
> >
> > 	at
> >
>
org.apache.soap.providers.RPCJavaProvider.locate(RPCJavaProvider.java:117)
> >
> > 	at
> >
>
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServl
> > et.java:285)
> >
> > 	at
> >
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> >
> > 	at
> >
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >
> > 	at
> >
>
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> >
> > 	at
> >
>
org.apache.tomcat.core.Handler.service(Handler.java:287)
> >
> > 	at
> >
>
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> >
> > 	at
> >
>
org.apache.tomcat.core.ContextManager.internalService(ContextManag
> > er.java:812)
> >
> > 	at
> >
>
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
> >
> > 	at
> >
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnec
> > tion(HttpConnectionHandler.java:213)
> >
> > 	at
> >
>
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> >
> > 	at
> >
>
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
> >
> > 	at java.lang.Thread.run(Thread.java:484)
> >
> > </stackTrace>
> >
> > </detail>
> >
> > </SOAP-ENV:Fault>
> >
> >
> >
> > </SOAP-ENV:Body>
> >
> > </SOAP-ENV:Envelope>
> >
> >
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Make international calls for as low as $.04/minute
> with Yahoo! Messenger
> > http://phonecard.yahoo.com/
> >
> 


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

Calc Example failes

Posted by Richard Heintze <si...@yahoo.com>.
Matt,
 I had a heck of a time with the classpath. I thought
I just had to restart the server for changes to the
class path to take effect. Not so. I had to log out
and log back in again (it only took me about 4 hours
to figure this out). I'm really confused because it
sometimes works to kill the processes and start new
new ones on Win2K.

To the class path I added 

.;..\\..;c:\\jakarta-tomcat-3.2.3\\webapps\\soap\\WEB-INF\\classes;


Is this wrong? Should I have added
c:\apache_soap\soap-2.2\samples instead?

Now the stockquote works and the addressbook works and
the message works too! The calculator example still
does not work -- it still cannot load javascript for
some reason.

Here is my classpath from cp.jsp:
..\classes; ..\lib\ant.jar; ..\lib\ant_1_1.jar;
..\lib\a_xerces.jar; ..\lib\bsf.jar;
..\lib\bsfengines.jar; ..\lib\cocoon.jar;
..\lib\fesi.jar; ..\lib\fop_0_15_0.jar;
..\lib\jasper.jar; ..\lib\jaxp.jar;
..\lib\sax-bugfix.jar; ..\lib\servlet.jar;
..\lib\servlet_2_2.jar; ..\lib\soap.jar;
..\lib\stylebook-1.0-b2.jar; ..\lib\turbine-pool.jar;
..\lib\w3c.jar; ..\lib\webserver.jar;
..\lib\xalan_1_2_D02.jar; ..\lib\xerces_1_2.jar;
..\lib\xt.jar; ..\lib\zparser.jar; ..\lib\zxml.jar; .;
..\..;
c:\jakarta-tomcat-3.2.3\webapps\soap\WEB-INF\classes;
c:\jakarta-tomcat-3.2.3\lib\xerces_1_2.jar;
c:\jakarta-tomcat-3.2.3\lib\soap.jar;
c:\apache_soap\bsf-2_2\lib\bsf.jar;
c:\apache_soap\jaf\jaf1_0_1\jaf-1.0.1\activation.jar;
c:\apache_soap\java_mail\javamail-1_2\javamail-1.2\mail.jar;
c:\apache_soap\rhino\rhino\js.jar;
c:\apache_soap\soap-2_2\lib\soap.jar;
C:\Books\Java\Code\Java_Swing\ch2\BWM.jar;
C:\Fop-0.19.0-CVS; c:\jdk1.3\lib\tools.jar; 


Here is the stack trace:
HTTP/1.0 500 Internal Server Error
Content-Type: text/xml; charset=utf-8
Content-Length: 1825
Set-Cookie2:
JSESSIONID=pw86buwn31;Version=1;Discard;Path="/soap"
Set-Cookie: JSESSIONID=pw86buwn31;Path=/soap
Servlet-Engine: Tomcat Web Server/3.2.3 (JSP 1.1;
Servlet 2.2; Java 1.3.0; Windows 2000 5.0 x86;
java.vendor=Sun Microsystems Inc.)
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>BSF Error: unable to load language:
javascript</faultstring>
<faultactor>/soap/servlet/rpcrouter</faultactor>
<detail>
<stackTrace>com.ibm.bsf.BSFException: unable to load
language: javascript
	at
com.ibm.bsf.BSFManager.loadScriptingEngine(BSFManager.java:325)
	at
org.apache.soap.server.InvokeBSF.service(InvokeBSF.java:117)
	at java.lang.reflect.Method.invoke(Native Method)
	at
org.apache.soap.server.RPCRouter.invoke(RPCRouter.java:158)
	at
org.apache.soap.providers.RPCJavaProvider.invoke(RPCJavaProvider.java:129)
	at
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:287)
	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at
org.apache.tomcat.core.Handler.service(Handler.java:287)
	at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:484)
</stackTrace>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Thanks,
      Siegfried (Richard)




--- "Matthew J. Duftler" <du...@watson.ibm.com>
wrote:
> Hi Richard,
> 
> From reading your note:
> 
> > <stackTrace>java.lang.ClassNotFoundException:
> > samples.stockquote.StockQuoteService
> 
> it appears as if your server can't resolve the
> samples.stockquote.StockQuoteService class. Did you
> add the soap-2_2
> directory to your classpath as described in the
> installation docs?
> 
> Thanks,
> -Matt
> 
> > -----Original Message-----
> > From: Richard Heintze
> [mailto:sieg_heintze@yahoo.com]
> > Sent: Tuesday, July 31, 2001 1:44 AM
> > To: soap-user@xml.apache.org
> > Subject: return args in examples don't work
> >
> >
> > I've tried running several examples and the only
> one I
> > can make work is provider. I think this is because
> > nothing is passed back from the server to the
> client.
> > The addressbook sampe, for example, works if I am
> > adding an address but fails when I try to list all
> the
> > addresses or get an address.
> >
> > Here is a sample stack trace from the tunnel
> program:
> >
> > HTTP/1.0 500 Internal Server Error
> >
> > Content-Type: text/xml; charset=utf-8
> >
> > Content-Length: 2314
> >
> > Set-Cookie2:
> >
> JSESSIONID=qfi3mauiq1;Version=1;Discard;Path="/soap"
> >
> > Set-Cookie: JSESSIONID=qfi3mauiq1;Path=/soap
> >
> > Servlet-Engine: Tomcat Web Server/3.2.3 (JSP 1.1;
> > Servlet 2.2; Java 1.3.0; Windows 2000 5.0 x86;
> > java.vendor=Sun Microsystems Inc.)
> >
> >
> >
> > <?xml version='1.0' encoding='UTF-8'?>
> >
> > <SOAP-ENV:Envelope
> >
>
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> >
>
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
> > xmlns:xsd="http://www.w3.org/1999/XMLSchema">
> >
> > <SOAP-ENV:Body>
> >
> > <SOAP-ENV:Fault>
> >
> >
>
<faultcode>SOAP-ENV:Server.BadTargetObjectURI</faultcode>
> >
> > <faultstring>Unable to resolve target object:
> > samples.stockquote.StockQuoteService</faultstring>
> >
> > <faultactor>/soap/servlet/rpcrouter</faultactor>
> >
> > <detail>
> >
> > <stackTrace>java.lang.ClassNotFoundException:
> > samples.stockquote.StockQuoteService
> >
> > 	at
> >
>
java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> >
> > 	at
> java.security.AccessController.doPrivileged(Native
> > Method)
> >
> > 	at
> >
>
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> >
> > 	at
> >
>
java.lang.ClassLoader.loadClass(ClassLoader.java:297)
> >
> > 	at
> >
>
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
> >
> > 	at
> >
>
java.lang.ClassLoader.loadClass(ClassLoader.java:253)
> >
> > 	at
> >
>
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
> >
> > 	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.http.ServerHTTPUtils.getTargetObject(Server
> > HTTPUtils.java:274)
> >
> > 	at
> >
>
org.apache.soap.providers.RPCJavaProvider.locate(RPCJavaProvider.java:117)
> >
> > 	at
> >
>
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServl
> > et.java:285)
> >
> > 	at
> >
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> >
> > 	at
> >
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >
> > 	at
> >
>
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> >
> > 	at
> >
>
org.apache.tomcat.core.Handler.service(Handler.java:287)
> >
> > 	at
> >
>
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> >
> > 	at
> >
>
org.apache.tomcat.core.ContextManager.internalService(ContextManag
> > er.java:812)
> >
> > 	at
> >
>
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
> >
> > 	at
> >
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnec
> > tion(HttpConnectionHandler.java:213)
> >
> > 	at
> >
>
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> >
> > 	at
> >
>
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
> >
> > 	at java.lang.Thread.run(Thread.java:484)
> >
> > </stackTrace>
> >
> > </detail>
> >
> > </SOAP-ENV:Fault>
> >
> >
> >
> > </SOAP-ENV:Body>
> >
> > </SOAP-ENV:Envelope>
> >
> >
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Make international calls for as low as $.04/minute
> with Yahoo! Messenger
> > http://phonecard.yahoo.com/
> >
> 


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

RE: return args in examples don't work

Posted by "Matthew J. Duftler" <du...@watson.ibm.com>.
Hi Richard,

>From reading your note:

> <stackTrace>java.lang.ClassNotFoundException:
> samples.stockquote.StockQuoteService

it appears as if your server can't resolve the
samples.stockquote.StockQuoteService class. Did you add the soap-2_2
directory to your classpath as described in the installation docs?

Thanks,
-Matt

> -----Original Message-----
> From: Richard Heintze [mailto:sieg_heintze@yahoo.com]
> Sent: Tuesday, July 31, 2001 1:44 AM
> To: soap-user@xml.apache.org
> Subject: return args in examples don't work
>
>
> I've tried running several examples and the only one I
> can make work is provider. I think this is because
> nothing is passed back from the server to the client.
> The addressbook sampe, for example, works if I am
> adding an address but fails when I try to list all the
> addresses or get an address.
>
> Here is a sample stack trace from the tunnel program:
>
> HTTP/1.0 500 Internal Server Error
>
> Content-Type: text/xml; charset=utf-8
>
> Content-Length: 2314
>
> Set-Cookie2:
> JSESSIONID=qfi3mauiq1;Version=1;Discard;Path="/soap"
>
> Set-Cookie: JSESSIONID=qfi3mauiq1;Path=/soap
>
> Servlet-Engine: Tomcat Web Server/3.2.3 (JSP 1.1;
> Servlet 2.2; Java 1.3.0; Windows 2000 5.0 x86;
> java.vendor=Sun Microsystems Inc.)
>
>
>
> <?xml version='1.0' encoding='UTF-8'?>
>
> <SOAP-ENV:Envelope
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/1999/XMLSchema">
>
> <SOAP-ENV:Body>
>
> <SOAP-ENV:Fault>
>
> <faultcode>SOAP-ENV:Server.BadTargetObjectURI</faultcode>
>
> <faultstring>Unable to resolve target object:
> samples.stockquote.StockQuoteService</faultstring>
>
> <faultactor>/soap/servlet/rpcrouter</faultactor>
>
> <detail>
>
> <stackTrace>java.lang.ClassNotFoundException:
> samples.stockquote.StockQuoteService
>
> 	at
> java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>
> 	at java.security.AccessController.doPrivileged(Native
> Method)
>
> 	at
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>
> 	at
> java.lang.ClassLoader.loadClass(ClassLoader.java:297)
>
> 	at
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
>
> 	at
> java.lang.ClassLoader.loadClass(ClassLoader.java:253)
>
> 	at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
>
> 	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.http.ServerHTTPUtils.getTargetObject(Server
> HTTPUtils.java:274)
>
> 	at
> org.apache.soap.providers.RPCJavaProvider.locate(RPCJavaProvider.java:117)
>
> 	at
> org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServl
> et.java:285)
>
> 	at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>
> 	at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>
> 	at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
>
> 	at
> org.apache.tomcat.core.Handler.service(Handler.java:287)
>
> 	at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>
> 	at
> org.apache.tomcat.core.ContextManager.internalService(ContextManag
> er.java:812)
>
> 	at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
>
> 	at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnec
> tion(HttpConnectionHandler.java:213)
>
> 	at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
>
> 	at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
>
> 	at java.lang.Thread.run(Thread.java:484)
>
> </stackTrace>
>
> </detail>
>
> </SOAP-ENV:Fault>
>
>
>
> </SOAP-ENV:Body>
>
> </SOAP-ENV:Envelope>
>
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
>


RE: return args in examples don't work

Posted by "Matthew J. Duftler" <du...@watson.ibm.com>.
Hi Richard,

>From reading your note:

> <stackTrace>java.lang.ClassNotFoundException:
> samples.stockquote.StockQuoteService

it appears as if your server can't resolve the
samples.stockquote.StockQuoteService class. Did you add the soap-2_2
directory to your classpath as described in the installation docs?

Thanks,
-Matt

> -----Original Message-----
> From: Richard Heintze [mailto:sieg_heintze@yahoo.com]
> Sent: Tuesday, July 31, 2001 1:44 AM
> To: soap-user@xml.apache.org
> Subject: return args in examples don't work
>
>
> I've tried running several examples and the only one I
> can make work is provider. I think this is because
> nothing is passed back from the server to the client.
> The addressbook sampe, for example, works if I am
> adding an address but fails when I try to list all the
> addresses or get an address.
>
> Here is a sample stack trace from the tunnel program:
>
> HTTP/1.0 500 Internal Server Error
>
> Content-Type: text/xml; charset=utf-8
>
> Content-Length: 2314
>
> Set-Cookie2:
> JSESSIONID=qfi3mauiq1;Version=1;Discard;Path="/soap"
>
> Set-Cookie: JSESSIONID=qfi3mauiq1;Path=/soap
>
> Servlet-Engine: Tomcat Web Server/3.2.3 (JSP 1.1;
> Servlet 2.2; Java 1.3.0; Windows 2000 5.0 x86;
> java.vendor=Sun Microsystems Inc.)
>
>
>
> <?xml version='1.0' encoding='UTF-8'?>
>
> <SOAP-ENV:Envelope
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/1999/XMLSchema">
>
> <SOAP-ENV:Body>
>
> <SOAP-ENV:Fault>
>
> <faultcode>SOAP-ENV:Server.BadTargetObjectURI</faultcode>
>
> <faultstring>Unable to resolve target object:
> samples.stockquote.StockQuoteService</faultstring>
>
> <faultactor>/soap/servlet/rpcrouter</faultactor>
>
> <detail>
>
> <stackTrace>java.lang.ClassNotFoundException:
> samples.stockquote.StockQuoteService
>
> 	at
> java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>
> 	at java.security.AccessController.doPrivileged(Native
> Method)
>
> 	at
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>
> 	at
> java.lang.ClassLoader.loadClass(ClassLoader.java:297)
>
> 	at
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
>
> 	at
> java.lang.ClassLoader.loadClass(ClassLoader.java:253)
>
> 	at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
>
> 	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.http.ServerHTTPUtils.getTargetObject(Server
> HTTPUtils.java:274)
>
> 	at
> org.apache.soap.providers.RPCJavaProvider.locate(RPCJavaProvider.java:117)
>
> 	at
> org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServl
> et.java:285)
>
> 	at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>
> 	at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>
> 	at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
>
> 	at
> org.apache.tomcat.core.Handler.service(Handler.java:287)
>
> 	at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>
> 	at
> org.apache.tomcat.core.ContextManager.internalService(ContextManag
> er.java:812)
>
> 	at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
>
> 	at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnec
> tion(HttpConnectionHandler.java:213)
>
> 	at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
>
> 	at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
>
> 	at java.lang.Thread.run(Thread.java:484)
>
> </stackTrace>
>
> </detail>
>
> </SOAP-ENV:Fault>
>
>
>
> </SOAP-ENV:Body>
>
> </SOAP-ENV:Envelope>
>
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
>