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 "Vasu, Saikumar (Saikumar)** CTR **" <sv...@lucent.com> on 2001/05/04 23:02:47 UTC

Weblogic and SOAPException

Hi, 
   I am a newbie to this group.
   I am trying to run the apache soap samples with the weblogic server but
seems to fail consistently at the invoke method.
   Could you folks let me know whats wrong with the setup. I am able to
bring in the soap admin and run the rpcrouter from the webbrowser, so the
the SOAP seem to be integrated with the weblogic.
   Environment details are:
   Weblogic 5.1, JDK 1.3, xerces 1.3.1 and Apache Soap 2.1.

Thanks a lot,
--Sai.
     
C:\SOAP\soap-2_1\samples\calculator>set path=c:\jdk1.3\bin

C:\SOAP\soap-2_1\samples\calculator>set
classpath=C:\SOAP\soap-2_1\lib\soap.jar;C:\SOAP\xerces-1_3_1\xerces.jar;C:\S
OAPjavamail-1.2\mail.jar;C:\SOAP\jaf-1.0.1\activation.jar

This test assumes a server URL of
http://localhost:7001/soap/server/rpcrouter
Deploying the calcuator service...
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client; msg=A
'http://schemas.xmlsoap.org/soap/envelope/:F
ault' element must contain a: 'faultcode' element.;
targetException=java.lang.IllegalArgumentException: A 'http://schema
s.xmlsoap.org/soap/envelope/:Fault' element must contain a: 'faultcode'
element.]
        at org.apache.soap.rpc.Call.invoke(Call.java:244)
        at
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClien
t.java:127)
        at
org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.java
:140)
        at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:2
28)
.
Verify that its there
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
msg=Unable to resolve namespace URI for 'ns2'.; ta
rgetException=java.lang.IllegalArgumentException: Unable to resolve
namespace URI for 'ns2'.]
        at org.apache.soap.rpc.Call.invoke(Call.java:244)
        at
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClien
t.java:127)
        at
org.apache.soap.server.ServiceManagerClient.list(ServiceManagerClient.java:1
49)
        at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:2
35)
.
Running the calculator
Exception in thread "main" java.lang.NoClassDefFoundError:
samples/calculator/Calculator
.
Undeploy it now
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client; msg=A
'http://schemas.xmlsoap.org/soap/envelope/:F
ault' element must contain a: 'faultcode' element.;
targetException=java.lang.IllegalArgumentException: A 'http://schema
s.xmlsoap.org/soap/envelope/:Fault' element must contain a: 'faultcode'
element.]
        at org.apache.soap.rpc.Call.invoke(Call.java:244)
        at
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClien
t.java:127)
        at
org.apache.soap.server.ServiceManagerClient.undeploy(ServiceManagerClient.ja
va:145)
        at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:2
33)
.
Verify that its gone
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
msg=Unable to resolve namespace URI for 'ns2'.; ta
rgetException=java.lang.IllegalArgumentException: Unable to resolve
namespace URI for 'ns2'.]
        at org.apache.soap.rpc.Call.invoke(Call.java:244)
        at
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClien
t.java:127)
        at
org.apache.soap.server.ServiceManagerClient.list(ServiceManagerClient.java:1
49)
        at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:2
35)

---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org