Error while running the jazz build AuthenticationException: CRJAZ0124I Invalid username or password.
Hello ,
We are running eclipse build on windows envirement, fetching files from the repository is sucessfull, but failing with error in log as
[echo] # --> This build ... runs on OS family "windows" started from "JazzBuildEngine"
[teamLastModified] .Not using a proxy to reach https:<host>:9443/ccm/
[teamLastModified] com.ibm.team.repositorycommon.TeamRepositoryException: Error logging in to repository https://<host>:rd.9443/ccm/. Verify that the repository address and credentials to log in are correct.
[teamLastModified] at com.ibm.team.build.ant.task.AbstractTeamBuildTask.initializeRepositoryManager(AbstractTeamBuildTask.java:324)
[teamLastModified] at com.ibm.team.build.ant.task.AbstractTeamBuildTask.getTeamRepository(AbstractTeamBuildTask.java:270)
[teamLastModified] at com.ibm.team.build.ant.task.TeamLastModifiedTask.doExecute(TeamLastModifiedTask.java:145)
[teamLastModified] at com.ibm.team.build.ant.task.AbstractTeamBuildTask.execute(AbstractTeamBuildTask.java:661)
[teamLastModified] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[teamLastModified] at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
[teamLastModified] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[teamLastModified] at java.lang.reflect.Method.invoke(Method.java:597)
[teamLastModified] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[teamLastModified] at org.apache.tools.ant.Task.perform(Task.java:348)
[teamLastModified] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
[teamLastModified] at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
[teamLastModified] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[teamLastModified] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[teamLastModified] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[teamLastModified] at java.lang.reflect.Method.invoke(Method.java:597)
[teamLastModified] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[teamLastModified] at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
[teamLastModified] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[teamLastModified] at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
[teamLastModified] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[teamLastModified] at java.lang.reflect.Method.invoke(Method.java:597)
[teamLastModified] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[teamLastModified] at org.apache.tools.ant.Task.perform(Task.java:348)
[teamLastModified] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
[teamLastModified] at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
[teamLastModified] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[teamLastModified] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[teamLastModified] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[teamLastModified] at java.lang.reflect.Method.invoke(Method.java:597)
[teamLastModified] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[teamLastModified] at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
[teamLastModified] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[teamLastModified] at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
[teamLastModified] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[teamLastModified] at java.lang.reflect.Method.invoke(Method.java:597)
[teamLastModified] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[teamLastModified] at org.apache.tools.ant.Task.perform(Task.java:348)
[teamLastModified] at org.apache.tools.ant.Target.execute(Target.java:390)
[teamLastModified] at org.apache.tools.ant.Target.performTasks(Target.java:411)
[teamLastModified] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[teamLastModified] at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
[teamLastModified] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[teamLastModified] at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[teamLastModified] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[teamLastModified] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:665)
[teamLastModified] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:537)
[teamLastModified] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[teamLastModified] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[teamLastModified] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[teamLastModified] at java.lang.reflect.Method.invoke(Method.java:597)
[teamLastModified] at org.eclipse.ant.core.AntRunner.run(AntRunner.java:513)
[teamLastModified] at org.eclipse.ant.core.AntRunner.start(AntRunner.java:600)
[teamLastModified] at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
[teamLastModified] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
[teamLastModified] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
[teamLastModified] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
[teamLastModified] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
[teamLastModified] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[teamLastModified] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[teamLastModified] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[teamLastModified] at java.lang.reflect.Method.invoke(Method.java:597)
[teamLastModified] at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
[teamLastModified] at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
[teamLastModified] at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
[teamLastModified] at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
[teamLastModified] Caused by: com.ibm.team.repository.transport.client.AuthenticationException: CRJAZ0124I Invalid username or password.
[teamLastModified] at com.ibm.team.repository.transport.client.ClientHttpUtil$FormAuthChallengeHandler.handleChallenge(ClientHttpUtil.java:832)
[teamLastModified] at com.ibm.team.repository.transport.client.ClientHttpUtil.handleAuthenticationChallenge(ClientHttpUtil.java:1174)
[teamLastModified] at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:359)
[teamLastModified] at com.ibm.team.repository.transport.client.ClientHttpUtil.access$10(ClientHttpUtil.java:324)
[teamLastModified] at com.ibm.team.repository.transport.client.ClientHttpUtil$JAuthChallengeHandler.handleChallenge(ClientHttpUtil.java:757)
[teamLastModified] at com.ibm.team.repository.transport.client.ClientHttpUtil.handleAuthenticationChallenge(ClientHttpUtil.java:1174)
[teamLastModified] at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:359)
[teamLastModified] at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:315)
[teamLastModified] at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:219)
[teamLastModified] at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:227)
[teamLastModified] at com.ibm.team.repository.transport.client.RemoteTeamService.executeCancelableHttpMethod(RemoteTeamService.java:553)
[teamLastModified] at com.ibm.team.repository.transport.client.RemoteTeamService.invokePost(RemoteTeamService.java:540)
[teamLastModified] at com.ibm.team.repository.transport.client.RemoteTeamService.executeMethod(RemoteTeamService.java:481)
[teamLastModified] at com.ibm.team.repository.transport.client.RemoteTeamService.invoke(RemoteTeamService.java:194)
[teamLastModified] at com.ibm.team.repository.transport.client.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:43)
[teamLastModified] at $Proxy0.describe(Unknown Source)
[teamLastModified] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[teamLastModified] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[teamLastModified] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[teamLastModified] at java.lang.reflect.Method.invoke(Method.java:597)
[teamLastModified] at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invokeServiceCall(ServiceInterfaceProxy.java:164)
[teamLastModified] at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invoke(ServiceInterfaceProxy.java:88)
[teamLastModified] at $Proxy0.describe(Unknown Source)
[teamLastModified] at com.ibm.team.repository.client.internal.TeamRepository$4.run(TeamRepository.java:1512)
[teamLastModified] at com.ibm.team.repository.client.internal.TeamRepository$4.run(TeamRepository.java:1)
[teamLastModified] at com.ibm.team.repository.client.internal.TeamRepository$3.run(TeamRepository.java:1286)
[teamLastModified] at com.ibm.team.repository.common.transport.CancelableCaller.call(CancelableCaller.java:79)
[teamLastModified] at com.ibm.team.repository.client.internal.TeamRepository.callCancelableService(TeamRepository.java:1279)
[teamLastModified] at com.ibm.team.repository.client.internal.TeamRepository.internalLogin(TeamRepository.java:1505)
[teamLastModified] at com.ibm.team.repository.client.internal.TeamRepository.login(TeamRepository.java:638)
[teamLastModified] at com.ibm.team.build.internal.scm.RepositoryManager.login(RepositoryManager.java:275)
[teamLastModified] at com.ibm.team.build.ant.task.AbstractTeamBuildTask.initializeRepositoryManager(AbstractTeamBuildTask.java:322)
[teamLastModified] ... 65 more
BUILD FAILED
0 votes
2 answers
While running the build script itself you need to provide the repository URI, User ID and Password of the build user for build activities and communication with the CCM Server. See http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0m1/topic/com.ibm.team.build.doc/topics/r_ant-tasks.html and the required parameters for the tasks. My best guess is you provide a wrong user/password.
You can look into the Sample Project that comes with RTC. Look into any stream, look into the Build component into JKEBuildScripts/sample.jke.build/build.xml