Tom,
Thanks again. I have followed the instuctions and my tomcat.bat has the flwg
lines:
set CP=c:\xerces\xerces.jar;%CLASSPATH%;%CP%
set CP=%CP%;c:\soap\samples;
I have put the above lines in 3 different places ( depending on the path the
bat files chooses). But I do not know why xerces.jar is still behind in the
classpath.
Thanks
Sanjay


-----Original Message-----
From: Tom Myers [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 19, 2001 2:26 PM
To: [EMAIL PROTECTED]
Cc: '[EMAIL PROTECTED]'
Subject: RE: Fix for NoSuchMethodError (Was Re: Urgent)


At 01:41 PM 7/19/2001 -0400, Bahal, Sanjay wrote:
>I got that. I had to put it in soap/webapps/soap rather than soap/webapps.
>I get the classpath:
>java.class.path=c\:\\tomcat\\classes;c\:\\tomcat\\lib\\ant.jar;c\:\\tomcat\
\
>lib\\jasper.jar;c\:\\tomcat\\lib\\jaxp.jar;c\:\\tomcat\\lib\\parser.jar;c\:
\
>\tomcat\\lib\\servlet.jar;c\:\\tomcat\\lib\\webserver.jar;.;c\:\\xerces\\xe
r
>ces.jar; .... ..... .....
>I can see all the jar files in the classpath. So what next.

next you look at them, in the order that they're put in, and you see that
C:\tomcat\lib\parser.jar comes in on the second line, and xerces is down a
line later. So the classpath as constructed by tomcat is a badbadbadwicked
nasty rotten classpath; probably you didn't yet change tomcat.bat the way
the
SOAP docs say to, in your downloaded soap-2_2\docs\install\tomcat.html :

>. Even if you put Xerces 1.1.2's xerces.jar in your classpath, the wrong 
>interfaces are found by any Java code running in Tomcat because the shell 
>script / batch file that runs Tomcat puts the user's classpath at the end. 
>So, you must edit tomcat.sh or tomcat.bat in the bin/ directory and put 
>xerces.jar at the BEGINNING of the classpath the script builds. 
and it tells you what lines to look for in the script and how to change
them. The point is that the classpath you constructed is not the classpath
used by Tomcat; a servlet-runner has to do some classpath-munging, and
each of them (Tomcat, websphere, JRun, etc etc) messes up the classpath
in its own individual way... hope this helps.

Tom Myers
 
**************************************************************************
The Information transmitted herewith is sensitive information intended only
for use to the individual or entity to which it is addressed. If the reader
of this message is not the intended recipient, you are hereby notified that
any review, retransmission, dissemination, distribution, copying or other
use of, or taking of any action in reliance upon, this information is
strictly prohibited. If you have received this communication in error,
please contact the sender and delete the material from your computer.

Reply via email to