File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Password Authentication Problem for JAXR Connection Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Password Authentication Problem for JAXR Connection" Watch "Password Authentication Problem for JAXR Connection" New topic
Author

Password Authentication Problem for JAXR Connection

Prasad Lakkavaram
Greenhorn

Joined: Sep 01, 2005
Posts: 8
Hi All,
I registered with IBM UDDI test registry with user name and password and tried to connect to it using a servlet with the following code:
----------
javax.naming.InitialContext jndiEnc=new javax.naming.InitialContext();
ConnectionFactory factory= (ConnectionFactory) jndiEnc.lookup("java:comp/env/eis/JAXR");
Connection connection=factory.createConnection();

PasswordAuthentication credential = new PasswordAuthentication(userName, password.toCharArray());
Set credentials = new HashSet();
credentials.add(credential);
connection.setCredentials(credentials);
-------------------
I could get the connection but while setting the credential I got the following error:
--------
com.sun.xml.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed
--------
at line "connection.setCredentials(credentials)
-----
I gave the same user-id and password that I gave for UDDI test registry . Can any one guide me.I am not sure whether the attributes I set for the JAXR Resource Adapter are correct. I used the following:
---
AuthMethod: UDDI_GET_AUTHTOKEN
HttpsProxyPort:8181
HttpProxyPort:8080
HttpProxyHost:localhost
HttpsProxyHost:localhost
LifeCycleManagerURL:https://uddi.ibm.com/testregistry/publishapi
QueryManagerURL:http://uddi.ibm.com/testregistry/inquiryapi
---
I would really appreciate if any one could provide some hints,
Thanks in advance
Prasad
 
 
subject: Password Authentication Problem for JAXR Connection
 
Threads others viewed
JAXR problem
Federated Identity
Error in connection.setCredentials(creds) while get authorization to UDDI Registry
Trouble to get simple web service registration code running
Unable to publish to IBM test UDDI registry server
MyEclipse, The Clear Choice