You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@juddi.apache.org by Ya...@sybase.com on 2003/09/22 15:23:19 UTC
[juddi-Users] problem about publish and query JUDDI registry by using JAXR API.
Hi
I have problem with publish ,query in JUDDI registry by using JAXR API , I
could successfully get connection with the following code :
props.setProperty("javax.xml.registry.queryManagerURL",
"http://localhost:8080/uddi-server/inquiry));
props.setProperty("javax.xml.registry.lifeCycleManagerURL","http://localhost:8080/uddi-server/publishurl"));
try
{
_bqm = null;
_blcm = null;
//Connect
ConnectionFactory connFactory =
ConnectionFactory.newInstance();
connFactory.setProperties(props);
_connection = connFactory.createConnection();
//Get authorization from the registry
PasswordAuthentication passwdAuth = new
PasswordAuthentication("username" "password");
Set creds = new HashSet();
creds.add(passwdAuth);
_connection.setCredentials(creds);
// Set communication preference
_connection.setSynchronous(true);
......
but I couldn't do anything sucessfully, got following message :
java.lang.ClassCastException
at com.sun.xml.registry.common.util.CastorUtil.unmarshalObject(Unknown
Source)
at com.sun.xml.registry.uddi.Processor.processResponse(Unknown Source)
at com.sun.xml.registry.uddi.Processor.processRequest(Unknown Source)
at com.sun.xml.registry.uddi.UDDIMapper.findOrganizations(Unknown Source)
at
com.sun.xml.registry.uddi.BusinessQueryManagerImpl.findOrganizations(Unknown
Source)
....
The code works fine with other uddi registry, such as "Microsoft Test UDDI
Registry" , "IBM Test UDDI Registry".
I'd appreciate any help about this .
Thanks
-Yan.