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 "Ding, Chengmin" <Ch...@tfn.com> on 2001/03/27 21:53:32 UTC

RE: FIXED: Fault String = Unable to resolve namespace URI for 'ns 2'

We encountered similar problems with Xerces-1-3_1, but everything works find
in Xerces-1-3_0.  Is anything changed in 1-3_1 which makes old code fail?
 
-Chengmin

-----Original Message-----
From: Harvey, Jon (Contractor) [mailto:HarveyJ1@bp.com]
Sent: Tuesday, March 27, 2001 2:33 PM
To: 'soap-user@xml.apache.org'
Cc: 'Martin Squicciarini'
Subject: FIXED: Fault String = Unable to resolve namespace URI for 'ns2'


Thanks Matthew - and everyone else who has mailed me this evening.
 
My move to Xerces-1_2_3 was only half-baked ;-)
 
I cleaned up all my tomcat work directories and most importantly updated
my bin/tomcat.bat to use the Xerces-1_2_3/xerces.jar parser instead of 1.3.1
 
Now the samples.addressbook testit.cmd works just fine.
 
Here's the steps I went through:
 
1) Made sure tomcat.bat used correct xerces.jar (this is called by
startup.bat)
2) Removed my work directories from tomcat (where jsps get compiled to)
3) Edited my CLASSPATH to use the Xerces-1_2_3 instead of 1_3_1
4) Ran Tomcat's startup.bat - checked that the classpath was OK
    AND the CLASSPATH included the path to the classes samples.addressbook
(samples\addressbook)
5) Opened IE5 and checked these URLS:
    http://localhost:8080/soap/ <http://localhost:8080/soap/> 
    http://localhost:8080/soap/ <http://localhost:8080/soap/> admin
    http://localhost:8080/soap/servlet/rpcrouter
<http://localhost:8080/soap/servlet/rpcrouter> 
      Should get: "Sorry, I don't speak via HTTP GET- you have to use HTTP
POST to talk to me."
6) Ran testit.cmd
 
Thanks again,
Jon Harvey

-----Original Message-----
From: Mathew Clark [mailto:matt@genicomsystems.com]
Sent: 27 March 2001 19:25
To: soap-user@xml.apache.org
Subject: RE: Fault String = Unable to resolve namespace URI for 'ns2'



Hi,
 
Hmm moving to Xerces 1.2.3 was the cure for me on the 'ns2' problem.  Have
you definitely removed all instances of the Xerces 1.3.1 path from your
various CLASSPATH definitions?   Also if you are using Apache/Tomcat/Soap,
remember to restart/recompile anything that made use of Xerces1.3.1....
 
Regards,
 
Matthew.

-----Original Message-----
From: Harvey, Jon (Contractor) [mailto:HarveyJ1@bp.com]
Sent: 27 March 2001 18:48
To: 'soap-user@xml.apache.org'
Subject: Fault String = Unable to resolve namespace URI for 'ns2'


Hi again,
 
Still trying to deploy the samples.addressbook with the given
DeploymentDescriptor...
(java org.apache.soap.server.ServiceManagerClient
http://localhost:8080/soap/servlet/rpcrouter deploy
DeploymentDescriptor.xml)
 
I moved from Xerces-1_3_1 to Xerces-_1_2_3
which got me over this error:
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client; msg=A
'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
'faultcode' element.; targetException=java.lang.IllegalArgumentException: A
'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
'faultcode' element.]

BUT now I get this:
Ouch, the call failed:
  Fault Code   = SOAP-ENV:Client
  Fault String = Unable to resolve namespace URI for 'ns2'.
 
Has anyone seen this before?
 
Thanks,
 
Jon.

 


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