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 ??? <ma...@handysoft.co.kr> on 2001/03/07 12:57:12 UTC

E﹐?A: why??

Hi, Alex.

Sorry for late answer.

I hope this message will solve your problem.. ;-)

I think you did not include the classpath for the AddressBook sample
classes.

I've just deployed the AddressBook sample in my soap server, and I'll
explain my case...

My tomcat server is located in c:\jakarta-tomcat-3.2.1, and

my apache soap V2.1 is located in C:\soap-2_1, and the samples is in
C:\soap-2_1\samples.

And you know, the FQN of AddressBook class is
samples.addressbook.AddressBook.

Therefore, I should include the C:\soap-2_1 directory path to my
classpath during deploying...

During deploying a bean, apache soap library will find the bean class in
classpath...

My detail actions are as follows...

1. Start tomcat

C:\jakarta-tomcat-3.2.1\bin>startup

Including all jars in ..\lib in your CLASSPATH.

Using CLASSPATH:
..\classes;..\lib\xerces_1_2.jar;..\lib\ant.jar;..\lib\jaxp.jar

;..\lib\servlet.jar;..\lib\parser.jar;..\lib\webserver.jar;..\lib\jasper
.jar;..\

lib\soap.jar;..\lib\xerces_1_2.jar;..\lib\js.jar;..\lib\bsfengines.jar;.
.\lib\bs

f.jar;..\lib\mail.jar;..\lib\activation.jar;..\lib\xerces_1_2.jar;c:\jdk
1.3.0_02

\lib\tools.jar

Starting Tomcat in new window

2. In another console, I deploy the AddressBook bean using
ServiceManagerClient

C:\soap-2_1\samples\addressbook>echo %CLASSPATH%

c:\jakarta-tomcat-3.2.1\lib\xerces_1_2.jar;c:\jakarta-tomcat-3.2.1\lib\s
oap.jar;c:\jakarta-tomcat-3.2.1\lib\mail.jar;c:\jakarta-tomcat-3.2.1\lib
\activation.jar;c:\soap-2_1;.

C:\soap-2_1\samples\addressbook>java
org.apache.soap.server.ServiceManagerClient

http://localhost:8080/soap/servlet/rpcrouter deploy
DeploymentDescriptor.xml

3. To confirm the deployment, visit
http://localhost:8080/soap/admin/index.html, and click the List button
on the left.

 

Good luck

Regards

Martin

-----?? ???-----
?? ??: Alex (陳照東) [mailto:alex@erp.ncu.edu.tw]
?? ??: Wednesday, March 07, 2001 7:12 PM
?? ??: soap-user@xml.apache.org
??: why??



below is my classpath settings:
Using classpath: d:\xerces-1_2_3\xerces.jar;..\classes;..\lib\webserver.
jar;..\l
ib\jasper.jar;..\lib\xml.jar;..\lib\servlet.jar;d:\jdk1.2.2\lib\tools.ja
r;;D:\IB
MCON~1\CICS\Classes\CTGCLI~1.JAR;D:\IBM
Connectors\classes;d:\jdk1.2.2\lib;d:\xe
rces-1_2_3\xerces.jar;D:\XML4J-3_1_1\xml4j.jar;D:\xalan-j_2_0_0\bin;D:\x
alan-j_2
_0_0\bin\xalan.jar;d:\xalansamples.jar;D:\xalan-j_2_0_0\bin\xalanservlet
.jar;D:\
javamail-1.2\mail.jar;D:\jaf-1.0.1\activation.jar;D:\soap-2_1\lib\soap.j
ar;D:\so
ap-2_1;D:\bsf-2_2\lib\bsf.jar;d:\jdk1.2.2\lib\tools.jar;d:\saxon\saxon.j
ar;D:\xa
lan-j_2_0_0\bin\xalan.jar;d:\soap-2_1\bsf.jar;d:\soap-2_1\bsfengines.jar
;d:\soap
-2_1\pop3.jar;d:\soap-2_1\smtp.jar;d:\soap-2_1\xmisoap.jar;D:\jakarta-to
mcat\lib
;;.
an  i run this
d:\javawork>java org.apache.soap.server.ServiceManagerClient
http://localhost:80 <http://localhost:80> 
80/soap/servlet/rpcrouter deploy DeploymentDescriptor.xml
 
and then it's error :
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Protocol;
msg=Unsu
pported response content type "text/html", must be: "text/xml". Response
was:
<h1>Error: 404</h1>
<h2>Location: /soap/servlet/rpcrouter</h2>
]
        at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:173)
        at org.apache.soap.rpc.Call.invoke(Call.java:210)
        at
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManag
erClient.java:127)
        at
org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClie
nt.java:140)
        at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient
.java, Compiled Code)
 
 
 
i dont know , i do not create the forder http://localhost:80
<http://localhost:80>  80/soap/servlet/rpcrouter 
so how to put my xml file to deploy???
and  each time i run the http://localhost:8080/soap/index.html
<http://localhost:8080/soap/index.html>  and then shows error, because i
do not have the forder servlet/rpcrouter
 
my soap path     D:\soap-2_1 
my tomcat path  D:\jakarta-tomcat
 
do i need to copy the d:\soap-2_1\webapps to
d:\D:\jakarta-tomcat\wabapps   ????
 
why i cant run the addressbook sample currently?????
the path has make me confused...
 

IT DEP. Special Team-XML 
       Alex      
Tel:(03)4227151 ext:6024
 
 <ma...@ERP.NCU.EDU.TW> alex@ERP.NCU.EDU.TW
=We Do Enterprise Services=


IT DEP. Special Team-XML 
       Alex      
Tel:(03)4227151 ext:6024
 
alex@ERP.NCU.EDU.TW <ma...@ERP.NCU.EDU.TW> 
=We Do Enterprise Services=