This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Web Services and the fly likes com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark " com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl:" Watch " com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl:" New topic
Author com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl:

Ranjandev shukla

Joined: Dec 01, 2010
Posts: 3

I am having https service url. I wrote java client using SAAJ. but i am getting the below exception:-- com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Message send failed PKIX path building failed: unable to find valid certification path to requested target

>> I exported the certificate from service URL (using browser.) and saved as jssecacerts
>>Then imporetd this by using the following command--> keytool -import -file jssecacerts -keystore cacerts

Now I wrote the java client using SAAJ as below:-

System.setProperty("", "C:/Program Files/Java/jre6/lib/security/cacerts");
System.setProperty("", "changeit");
URL url = new URL("");
SOAPConnectionFactory scf = SOAPConnectionFactory.newInstance();
connection = scf.createConnection();
response =, url);

I dont know where I am wrong...Please am in seriously in trouble..
Thanks in Advance..
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
Have you tried using the following VM arguments when launching the client (removing the code that sets the properties in your code)? Files/Java/jre6/lib/security/cacerts

The last property is for debug output of SSL handshaking, so it may be omitted.
Best wishes!

My free books and tutorials:
Ranjandev shukla

Joined: Dec 01, 2010
Posts: 3

Anyhow I fixed it...Thanks to all..
I agree. Here's the link:
subject: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl:
It's not a secret anymore!