Getting PKIX path building failed error when running a build
Hi,
I'm trying to run an Ant build on one my Linux buildengines, but the following error shows up: <b> Unable to update last contact time for engine: com.ibm.team.repository.common.transport.TeamServiceException: CRJAZ0099I HTTP error "com.ibm.jsse2.util.g: PKIX path building failed: java.security.cert.CertPathBuilderException: unable to find valid certification path to requested target" accessing URL "https://<IP>:9443/jazz/service/com.ibm.team.repository.common.internal.IRepositoryRemoteService". com.ibm.team.repository.common.transport.TeamServiceException: CRJAZ0099I HTTP error "com.ibm.jsse2.util.g: PKIX path building failed: java.security.cert.CertPathBuilderException: unable to find valid certification path to requested target" accessing URL "https://<IP>:9443/jazz/service/com.ibm.team.repository.common.internal.IRepositoryRemoteService". </b> Has anyone seen this before? How can I fix this error? Thanks. Here's the complete logfile: 2009-11-30 12:58:21 running on host: ausbuildvm02.bto.ibm.com 2009-11-30 12:58:21 Should build occur? 2009-11-30 12:58:21 Yes: Always build a user initiated request. 2009-11-30 12:58:21 Invoking pre-build participant "com.ibm.team.build.jazzscm" Accepting changes into workspace "Common Cloud Workspace" ... Deleting fetch destination "/build/RTC-ant-project" before fetching ... Fetching files to fetch destination "/build/RTC-ant-project" ... 2009-11-30 12:59:48 Invoking build participant "com.ibm.team.build.ant" Buildfile: /build/RTC-ant-project/Front-end-development/DC_Build/jazz-build.xml rad: Created dir: /build/RTC-ant-project/Front-end-development/DC_Build/null2141949790 HeadlessWorkspaceSettings: INITIAL autoBuild=true maxFile=1048576 HeadlessWorkspaceSettings: TEMP autoBuild=false maxFile=-1 Buildfile: /build/RTC-ant-project/Front-end-development/DC_Build/jazz-build.xml init: Unable to update last contact time for engine: com.ibm.team.repository.common.transport.TeamServiceException: CRJAZ0099I HTTP error "com.ibm.jsse2.util.g: PKIX path building failed: java.security.cert.CertPathBuilderException: unable to find valid certification path to requested target" accessing URL "https://<IP>:9443/jazz/service/com.ibm.team.repository.common.internal.IRepositoryRemoteService". com.ibm.team.repository.common.transport.TeamServiceException: CRJAZ0099I HTTP error "com.ibm.jsse2.util.g: PKIX path building failed: java.security.cert.CertPathBuilderException: unable to find valid certification path to requested target" accessing URL "https://<IP>:9443/jazz/service/com.ibm.team.repository.common.internal.IRepositoryRemoteService". at com.ibm.team.build.ant.task.AbstractPublisherTask.getBuildResult(AbstractPublisherTask.java:150) at com.ibm.team.build.ant.task.AbstractPublisherTask.updateLastContactTime(AbstractPublisherTask.java:180) at com.ibm.team.build.ant.task.AbstractPublisherTask.doExecute(AbstractPublisherTask.java:109) at com.ibm.team.build.ant.task.AbstractTeamBuildTask.execute(AbstractTeamBuildTask.java:433) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:599) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:357) at org.apache.tools.ant.Target.performTasks(Target.java:385) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329) at org.apache.tools.ant.Project.executeTarget(Project.java:1298) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) at org.apache.tools.ant.Project.executeTargets(Project.java:1181) at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:623) at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:495) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:599) at org.eclipse.ant.core.AntRunner.run(AntRunner.java:513) at com.ibm.ant.extras.RunAnt.run(RunAnt.java:24) at org.eclipse.ant.core.AntRunner.start(AntRunner.java:600) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:599) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504) at org.eclipse.equinox.launcher.Main.run(Main.java:1236) at org.eclipse.equinox.launcher.Main.main(Main.java:1212) at org.eclipse.core.launcher.Main.main(Main.java:30) Caused by: com.ibm.team.repository.common.transport.TeamServiceException: CRJAZ0099I HTTP error "com.ibm.jsse2.util.g: PKIX path building failed: java.security.cert.CertPathBuilderException: unable to find valid certification path to requested target" accessing URL "https://<IP>:9443/jazz/service/com.ibm.team.repository.common.internal.IRepositoryRemoteService". at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:175) at com.ibm.team.repository.transport.client.RemoteTeamService.executeCancelableHttpMethod(RemoteTeamService.java:530) at com.ibm.team.repository.transport.client.RemoteTeamService.invokePost(RemoteTeamService.java:506) at com.ibm.team.repository.transport.client.RemoteTeamService.executeMethod(RemoteTeamService.java:451) at com.ibm.team.repository.transport.client.RemoteTeamService.invoke(RemoteTeamService.java:184) at com.ibm.team.repository.transport.client.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:43) at $Proxy0.describe(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:599) at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invokeServiceCall(ServiceInterfaceProxy.java:149) at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invoke(ServiceInterfaceProxy.java:84) at $Proxy0.describe(Unknown Source) at com.ibm.team.repository.client.internal.TeamRepository$4.run(TeamRepository.java:1342) at com.ibm.team.repository.client.internal.TeamRepository$4.run(TeamRepository.java:1) at com.ibm.team.repository.client.internal.TeamRepository$3.run(TeamRepository.java:1129) at com.ibm.team.repository.common.transport.CancelableCaller.call(CancelableCaller.java:76) at com.ibm.team.repository.client.internal.TeamRepository.callCancelableService(TeamRepository.java:1122) at com.ibm.team.repository.client.internal.TeamRepository.internalLogin(TeamRepository.java:1335) at com.ibm.team.repository.client.internal.TeamRepository.login(TeamRepository.java:536) at com.ibm.team.build.ant.task.AbstractTeamBuildTask.getTeamRepository(AbstractTeamBuildTask.java:231) at com.ibm.team.build.ant.task.AbstractPublisherTask.getBuildResult(AbstractPublisherTask.java:142) ... 40 more Caused by: javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.g: PKIX path building failed: java.security.cert.CertPathBuilderException: unable to find valid certification path to requested target at com.ibm.jsse2.n.a(n.java:36) at com.ibm.jsse2.sc.a(sc.java:154) at com.ibm.jsse2.gb.a(gb.java:89) at com.ibm.jsse2.gb.a(gb.java:283) at com.ibm.jsse2.hb.a(hb.java:260) at com.ibm.jsse2.hb.a(hb.java:171) at com.ibm.jsse2.gb.n(gb.java:140) at com.ibm.jsse2.gb.a(gb.java:123) at com.ibm.jsse2.sc.a(sc.java:320) at com.ibm.jsse2.sc.g(sc.java:198) at com.ibm.jsse2.sc.a(sc.java:599) at com.ibm.jsse2.j.write(j.java:20) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:76) at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:134) at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:502) at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324) at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:144) ... 62 more Caused by: com.ibm.jsse2.util.g: PKIX path building failed: java.security.cert.CertPathBuilderException: unable to find valid certification path to requested target at com.ibm.jsse2.util.e.b(e.java:42) at com.ibm.jsse2.util.e.b(e.java:104) at com.ibm.jsse2.util.d.a(d.java:10) at com.ibm.jsse2.gc.a(gc.java:12) at com.ibm.jsse2.gc.checkServerTrusted(gc.java:17) at com.ibm.team.repository.transport.client.ValidatingX509TrustManager.checkServerTrusted(ValidatingX509TrustManager.java:248) at com.ibm.jsse2.hb.a(hb.java:30) ... 79 more Caused by: java.security.cert.CertPathBuilderException: unable to find valid certification path to requested target at com.ibm.security.cert.PKIXCertPathBuilderImpl.buildCertPath(PKIXCertPathBuilderImpl.java:642) at com.ibm.security.cert.PKIXCertPathBuilderImpl.engineBuild(PKIXCertPathBuilderImpl.java:357) at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:258) at com.ibm.jsse2.util.e.b(e.java:98) ... 85 more --- Nested Exception --- com.ibm.team.repository.common.transport.TeamServiceException: CRJAZ0099I HTTP error "com.ibm.jsse2.util.g: PKIX path building failed: java.security.cert.CertPathBuilderException: unable to find valid certification path to requested target" accessing URL "https://<IP>:9443/jazz/service/com.ibm.team.repository.common.internal.IRepositoryRemoteService". at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:175) at com.ibm.team.repository.transport.client.RemoteTeamService.executeCancelableHttpMethod(RemoteTeamService.java:530) at com.ibm.team.repository.transport.client.RemoteTeamService.invokePost(RemoteTeamService.java:506) at com.ibm.team.repository.transport.client.RemoteTeamService.executeMethod(RemoteTeamService.java:451) at com.ibm.team.repository.transport.client.RemoteTeamService.invoke(RemoteTeamService.java:184) at com.ibm.team.repository.transport.client.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:43) at $Proxy0.describe(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:599) at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invokeServiceCall(ServiceInterfaceProxy.java:149) at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invoke(ServiceInterfaceProxy.java:84) at $Proxy0.describe(Unknown Source) at com.ibm.team.repository.client.internal.TeamRepository$4.run(TeamRepository.java:1342) at com.ibm.team.repository.client.internal.TeamRepository$4.run(TeamRepository.java:1) at com.ibm.team.repository.client.internal.TeamRepository$3.run(TeamRepository.java:1129) at com.ibm.team.repository.common.transport.CancelableCaller.call(CancelableCaller.java:76) at com.ibm.team.repository.client.internal.TeamRepository.callCancelableService(TeamRepository.java:1122) at com.ibm.team.repository.client.internal.TeamRepository.internalLogin(TeamRepository.java:1335) at com.ibm.team.repository.client.internal.TeamRepository.login(TeamRepository.java:536) at com.ibm.team.build.ant.task.AbstractTeamBuildTask.getTeamRepository(AbstractTeamBuildTask.java:231) at com.ibm.team.build.ant.task.AbstractPublisherTask.getBuildResult(AbstractPublisherTask.java:142) at com.ibm.team.build.ant.task.AbstractPublisherTask.updateLastContactTime(AbstractPublisherTask.java:180) at com.ibm.team.build.ant.task.AbstractPublisherTask.doExecute(AbstractPublisherTask.java:109) at com.ibm.team.build.ant.task.AbstractTeamBuildTask.execute(AbstractTeamBuildTask.java:433) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:599) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:357) at org.apache.tools.ant.Target.performTasks(Target.java:385) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329) at org.apache.tools.ant.Project.executeTarget(Project.java:1298) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) at org.apache.tools.ant.Project.executeTargets(Project.java:1181) at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:623) at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:495) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:599) at org.eclipse.ant.core.AntRunner.run(AntRunner.java:513) at com.ibm.ant.extras.RunAnt.run(RunAnt.java:24) at org.eclipse.ant.core.AntRunner.start(AntRunner.java:600) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:599) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504) at org.eclipse.equinox.launcher.Main.run(Main.java:1236) at org.eclipse.equinox.launcher.Main.main(Main.java:1212) at org.eclipse.core.launcher.Main.main(Main.java:30) Caused by: javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.g: PKIX path building failed: java.security.cert.CertPathBuilderException: unable to find valid certification path to requested target at com.ibm.jsse2.n.a(n.java:36) at com.ibm.jsse2.sc.a(sc.java:154) at com.ibm.jsse2.gb.a(gb.java:89) at com.ibm.jsse2.gb.a(gb.java:283) at com.ibm.jsse2.hb.a(hb.java:260) at com.ibm.jsse2.hb.a(hb.java:171) at com.ibm.jsse2.gb.n(gb.java:140) at com.ibm.jsse2.gb.a(gb.java:123) at com.ibm.jsse2.sc.a(sc.java:320) at com.ibm.jsse2.sc.g(sc.java:198) at com.ibm.jsse2.sc.a(sc.java:599) at com.ibm.jsse2.j.write(j.java:20) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:76) at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:134) at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:502) at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324) at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:144) ... 62 more Caused by: com.ibm.jsse2.util.g: PKIX path building failed: java.security.cert.CertPathBuilderException: unable to find valid certification path to requested target at com.ibm.jsse2.util.e.b(e.java:42) at com.ibm.jsse2.util.e.b(e.java:104) at com.ibm.jsse2.util.d.a(d.java:10) at com.ibm.jsse2.gc.a(gc.java:12) at com.ibm.jsse2.gc.checkServerTrusted(gc.java:17) at com.ibm.team.repository.transport.client.ValidatingX509TrustManager.checkServerTrusted(ValidatingX509TrustManager.java:248) at com.ibm.jsse2.hb.a(hb.java:30) ... 79 more Caused by: java.security.cert.CertPathBuilderException: unable to find valid certification path to requested target at com.ibm.security.cert.PKIXCertPathBuilderImpl.buildCertPath(PKIXCertPathBuilderImpl.java:642) at com.ibm.security.cert.PKIXCertPathBuilderImpl.engineBuild(PKIXCertPathBuilderImpl.java:357) at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:258) at com.ibm.jsse2.util.e.b(e.java:98) ... 85 more BUILD FAILED /build/RTC-ant-project/Front-end-development/DC_Build/jazz-build.xml:111: com.ibm.team.repository.common.transport.TeamServiceException: CRJAZ0099I HTTP error "com.ibm.jsse2.util.g: PKIX path building failed: java.security.cert.CertPathBuilderException: unable to find valid certification path to requested target" accessing URL "https://<IP>:9443/jazz/service/com.ibm.team.repository.common.internal.IRepositoryRemoteService". Total time: 3 seconds HeadlessWorkspaceSettings: RESTORED autoBuild=true maxFile=1048576 Deleting directory /build/RTC-ant-project/Front-end-development/DC_Build/null2141949790 BUILD FAILED /build/RTC-ant-project/Front-end-development/DC_Build/jazz-build.xml:43: Java returned: 13 Total time: 11 seconds Build failed. Exit value was 13. |
One answer
The log indicates that JBE was able to connect to the repository, fetch the build request etc, then run the Ant script. One of the build toolkit Ant tasks then had trouble connecting. Both JBE and the Ant tasks connect in the same way, so the first thing I'd check is that you're using the same JDK for running Ant as is used for JBE. This is the default, but may be configured differently in the Ant page of your build definition.
We also recommend running with the JDK that ships with RTC. See https://jazz.net/wiki/bin/view/Main/BuildFAQ#WhichJDK Regards, Nick |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.