Hi all,
I have enabled SSL for the DFS services by following the steps mentioned in https://community.emc.com/docs/DOC-2212
I am able to access the services over HTTPs i.e, https://<myserver>:8443/services/core/SearchService. I am facing problems in consuming the services on eclipse using Java. I placed the my.cert file in my project folder and also generated the my.keystore at the client following the steps mentioned in https://community.emc.com/docs/DOC-2213. I however dont know how to reference the trustStore (step 2 in the previous doc) as i am developing my consumer on Eclipse.
Can u please provide me pointers on how i can reference the trustStore using eclipse. The error i am getting right now is:
com.emc.documentum.fs.rt.ServiceInvocationException
: Service "com.emc.documentum.fs.services.search.SearchService" is not available at url: "https://<myserver>:8443/services/search/SearchService?WSDL"
at com.emc.documentum.fs.rt.context.impl.DfsSoapService.newWebServiceClient(
DfsSoapService.java:156
)
at com.emc.documentum.fs.rt.context.impl.DfsSoapService.getInstance(
DfsSoapService.java:46
)
at com.emc.documentum.fs.rt.context.impl.DfsCachedService.getInstance(
DfsCachedService.java:30
)
at com.emc.documentum.fs.rt.context.impl.DfsCachedUnlessChangedService.getInstance(
DfsCachedUnlessChangedService.java:26
)
at com.emc.documentum.fs.rt.context.impl.compat.ClientReflectionServiceInvokerCompat60.invoke(
ClientReflectionServiceInvokerCompat60.java:31
)
at com.emc.documentum.fs.rt.context.impl.SoapClientInvocationHandler.invoke(
SoapClientInvocationHandler.java:64
)
at com.emc.documentum.fs.rt.context.impl.UcfClientInvocationHandler.invoke(
UcfClientInvocationHandler.java:47
)
at com.emc.documentum.fs.rt.context.impl.MtomCompatHandler60SP1.invoke(
MtomCompatHandler60SP1.java:55
)
at com.emc.documentum.fs.rt.context.impl.HttpSessionInvocationHandler.invoke(
HttpSessionInvocationHandler.java:65
)
at com.emc.documentum.fs.rt.context.impl.OperationOptionsHandler.invoke(
OperationOptionsHandler.java:48
)
at com.emc.documentum.fs.rt.context.impl.ReturnedContentTransformationHandler.invoke(
ReturnedContentTransformationHandler.java:44
)
at com.emc.documentum.fs.rt.context.impl.ContextThreadLocalInvocationHandler.invoke(
ContextThreadLocalInvocationHandler.java:46
)
at com.emc.documentum.fs.rt.context.impl.ServiceContextInvocationHandler.invoke(
ServiceContextInvocationHandler.java:30
)
at $Proxy15.execute(Unknown Source)
at com.documentum.control.SearchTest.main(
SearchTest.java:79
)
Caused by:
javax.xml.ws.WebServiceException
: Failed to access the WSDL at: https://<myserver>:8443/services/search/SearchService?WSDL. It failed with:
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException
: unable to find valid certification path to requested target.
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.tryWithMex(
RuntimeWSDLParser.java:162
)
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(
RuntimeWSDLParser.java:144
)
at com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(
WSServiceDelegate.java:263
)
at com.sun.xml.ws.client.WSServiceDelegate.<init>(
WSServiceDelegate.java:226
)
at com.sun.xml.ws.client.WSServiceDelegate.<init>(
WSServiceDelegate.java:174
)
at com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(
ProviderImpl.java:104
)
at javax.xml.ws.Service.<init>(
Service.java:56
)
at com.emc.documentum.fs.services.search.SearchService.<init>(
SearchService.java:53
)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(
Native Method
)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.emc.documentum.fs.rt.context.impl.DfsSoapService.newWebServiceClient(
DfsSoapService.java:143
)
... 14 more
Caused by:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException
: unable to find valid certification path to requested target
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(Unknown Source)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
at java.net.URL.openStream(Unknown Source)
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.createReader(
RuntimeWSDLParser.java:805
)
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.resolveWSDL(
RuntimeWSDLParser.java:262
)
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(
RuntimeWSDLParser.java:129
)
... 25 more
Caused by:
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException
: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
at sun.security.validator.Validator.validate(Unknown Source)
at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(Unknown Source)
... 40 more
Caused by:
sun.security.provider.certpath.SunCertPathBuilderException
: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
at java.security.cert.CertPathBuilder.build(Unknown Source)
... 45 more
Exception in thread "main"
java.lang.RuntimeException: com.emc.documentum.fs.rt.ServiceInvocationException
: Service "com.emc.documentum.fs.services.search.SearchService" is not available at url: "https://<myserver>:8443/services/search/SearchService?WSDL"
at com.documentum.control.SearchTest.main(
SearchTest.java:93
)
Caused by:
com.emc.documentum.fs.rt.ServiceInvocationException
: Service "com.emc.documentum.fs.services.search.SearchService" is not available at url: "https://<myserver>:8443/services/search/SearchService?WSDL"
at com.emc.documentum.fs.rt.context.impl.DfsSoapService.newWebServiceClient(
DfsSoapService.java:156
)
at com.emc.documentum.fs.rt.context.impl.DfsSoapService.getInstance(
DfsSoapService.java:46
)
at com.emc.documentum.fs.rt.context.impl.DfsCachedService.getInstance(
DfsCachedService.java:30
)
at com.emc.documentum.fs.rt.context.impl.DfsCachedUnlessChangedService.getInstance(
DfsCachedUnlessChangedService.java:26
)
at com.emc.documentum.fs.rt.context.impl.compat.ClientReflectionServiceInvokerCompat60.invoke(
ClientReflectionServiceInvokerCompat60.java:31
)
at com.emc.documentum.fs.rt.context.impl.SoapClientInvocationHandler.invoke(
SoapClientInvocationHandler.java:64
)
at com.emc.documentum.fs.rt.context.impl.UcfClientInvocationHandler.invoke(
UcfClientInvocationHandler.java:47
)
at com.emc.documentum.fs.rt.context.impl.MtomCompatHandler60SP1.invoke(
MtomCompatHandler60SP1.java:55
)
at com.emc.documentum.fs.rt.context.impl.HttpSessionInvocationHandler.invoke(
HttpSessionInvocationHandler.java:65
)
at com.emc.documentum.fs.rt.context.impl.OperationOptionsHandler.invoke(
OperationOptionsHandler.java:48
)
at com.emc.documentum.fs.rt.context.impl.ReturnedContentTransformationHandler.invoke(
ReturnedContentTransformationHandler.java:44
)
at com.emc.documentum.fs.rt.context.impl.ContextThreadLocalInvocationHandler.invoke(
ContextThreadLocalInvocationHandler.java:46
)
at com.emc.documentum.fs.rt.context.impl.ServiceContextInvocationHandler.invoke(
ServiceContextInvocationHandler.java:30
)
at $Proxy15.execute(Unknown Source)
at com.documentum.control.SearchTest.main(
SearchTest.java:79
)
Caused by:
javax.xml.ws.WebServiceException
: Failed to access the WSDL at: https://<myserver>:8443/services/search/SearchService?WSDL. It failed with:
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException
: unable to find valid certification path to requested target.
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.tryWithMex(
RuntimeWSDLParser.java:162
)
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(
RuntimeWSDLParser.java:144
)
at com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(
WSServiceDelegate.java:263
)
at com.sun.xml.ws.client.WSServiceDelegate.<init>(
WSServiceDelegate.java:226
)
at com.sun.xml.ws.client.WSServiceDelegate.<init>(
WSServiceDelegate.java:174
)
at com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(
ProviderImpl.java:104
)
at javax.xml.ws.Service.<init>(
Service.java:56
)
at com.emc.documentum.fs.services.search.SearchService.<init>(
SearchService.java:53
)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(
Native Method
)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.emc.documentum.fs.rt.context.impl.DfsSoapService.newWebServiceClient(
DfsSoapService.java:143
)
... 14 more
Caused by:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException
: unable to find valid certification path to requested target
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(Unknown Source)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
at java.net.URL.openStream(Unknown Source)
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.createReader(
RuntimeWSDLParser.java:805
)
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.resolveWSDL(
RuntimeWSDLParser.java:262
)
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(
RuntimeWSDLParser.java:129
)
... 25 more
Caused by:
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException
: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
at sun.security.validator.Validator.validate(Unknown Source)
at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(Unknown Source)
... 40 more
Caused by:
sun.security.provider.certpath.SunCertPathBuilderException
: unable to find valid certification path to requested target
Thanks in advance