You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Richard Heintze <si...@yahoo.com> on 2001/08/04 00:55:34 UTC

Re: Calc Example Works!

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/