Hi,
I have an install/test problem:
I just installed Soap and am trying to run it with apache. I have followed
the install instructons. The server test works fine but when I run the
client test it errors out:
C:\>java org.apache.soap.server.ServiceManagerClient
http://localhost:8080/soap/ rpcrouter list
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Protocol;
msg=Unsupported response content type "text/html", must be: "text/xml".
Response was:
<head><title>Not Found (404)</title></head>
<body><h1>Not Found (404)</h1>
<b>Original request:</b> /soap/rpcrouter<br><br>
<b>Not found request:</b> /soap/rpcrouter</body>
]
        at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:175)
        at org.apache.soap.rpc.Call.invoke(Call.java:212)
        at
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManag
erClient.java:129)
        at
org.apache.soap.server.ServiceManagerClient.list(ServiceManagerClient
.java:151)
        at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient
.java:237)

I do have the xerces.jar in my classpath ( ahead of jaxp.jar). I also made
changes to the tomat.bat as below.
Any body has any ideas on this.
Thanks
Sanjay

-----Original Message-----
From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 19, 2001 9:06 AM
To: '[EMAIL PROTECTED]'
Subject: Fix for NoSuchMethodError (Was Re: Urgent)


To all those who have been struggling with the NoSuchMethodError try
Blaine's recommendation; get xerces 1.4.1. It works. 
For me the combination of products & platform is: 
-- win NT 
-- tomcat 3.2.2 
-- xerces 1.4.1 
-- soap 2.2 
The only change I made to the tomcat.bat file was to add the following
lines: 
        rem --- SOAP ---
        set CP=c:\apache\xerces-1_4_1\xerces.jar;%CP%
        set CP=%CP%;c:\apache\soap-2_2\samples
        rem --- end SOAP ---
This is done just before the classpath is set (find: set CLASSPATH=%CP%).
Of course, your path may be different.   Instead of adding mail.jar,
activation.jar etc in the classpath, I simply created a lib directory under
soap's WEB-INF.  Tomcat automatically will load jars in there at startup.
I would like to know why do we ever have to include xerces.jar if jaxp.jar
is a replacement?
Sri 

        -----Original Message-----
        From: R. Blaine Mincey [mailto:[EMAIL PROTECTED]]
        Sent: Thursday, July 19, 2001 3:53 AM
        To: [EMAIL PROTECTED]
        Cc: [EMAIL PROTECTED]
        Subject: RE: urgent
        
        I was having a very difficult time as well. I started using Xerces
1.4.1 and everything worked. Try getting the latest version of Xerces and
give that a shot. 
        Blaine 
                -----Original Message-----
                From: BKS_prasad [mailto:[EMAIL PROTECTED]]
                Sent: Wednesday, July 18, 2001 9:32 PM
                To: [EMAIL PROTECTED]
                Subject: RE: urgent
                
                
                
                
                                        Hi All, 
                                        I am also getting the same error
like most of them when ever I run the samples of APACHE-Soap on Jrun3.0. 
                                        D:\soap-2_2>java
samples.addressbook.GetAddress
<http://localhost:8100/soap/servlet/rpcrouter> "John B . Good" 
                                        Generated fault: 
                                        Fault Code =
SOAP-ENV:Server.Exception: 
                                        Fault String =
java.lang.NoSuchMethodError 
                                        I already read the posted
solutions.I followed all instructions like xerces1.3.0 etc Still I am
getting the same problem.
                                        I am sending the classpaths for
server as well as My systemPath 
        
MysystemPath:D:\xerces-1_3_0\xerces.jar;D:\soap-2_2\lib\soap.jar;D:\soap-2_2
;E:\jdk1.3\lib\dt.jar;E:\jdk1.3\lib\tools.jar;E:\jdk1.3\lib\servlet.jar;D:\J
Run3.0\lib\ext\activation.jar;D:\JRun3.0\lib\ext\mail.jar;D:\bsf.jar;.;
                                        jrun-default.bat 
                                        MyserverPath 
                                        @echo off 
                                        set
classpath=D:\xerces-1_3_0\xerces.jar;D:\soap-2_2\lib\soap.jar;D:\soap-2_2;D:
\JRun3.0\lib\ext\activation.jar;D:\JRun3.0\lib\ext\mail.jar;D:\bsf.jar;%clas
spath%;
                                        start jrun -start default 
                                        My apache-SOAP samples are in
D:\soap-2_2; 
                                        Can Any body help in resolving this
problem 
                                        Thanks&Regards 
                                        Prasad 
 
**************************************************************************
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