I/O exception (org.apache.axis2.AxisFault) caught when processing request: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderE xception: unable to find valid certification path to requested target

After migrating from jdk 1.5 to jdk 1.7 i am getting sun.security.validator.ValidatorException.

Steps : Replaced jdk 1.5 with 1.7(includes jre). Compile the code with jdk1.7. Compilation was success. while accessing the url with the certificate provided by the server i am getting sun.security.validator.ValidatorException in jdk1.7. But the exception is not thrown in jdk1.5. In cacerts file i have imported the specific certificate with alias name xxxx. If i access the url with the domain name as alias name in jdk1.7 name in certificate the exception is not thrown and works fine...

Self signed certificate which was sent by server with no extensions.

version of the certificate is 1.

i am using /jdk1.7/jre/lib/security/cacerts with only jre 1.7. Also i have checked the cacerts file. Certificate details was updated properly.

Do i need to do anything for migrating jdk1.5 to jdk1.7? Do i really missing some thing in the above process?