Unable to connect to JRS after registering DCC with JTS
Defect Description
Users cannot log in to the Jazz Reporting Service if both conditions are met :
- the Jazz Reporting Service and the Data Collection Component are registered in the same Jazz Team Server
- the Jazz Reporting Service was installed and configured before the Data Collection Component was installed and configured.
Steps to reproduce:
- Install the Jazz Reporting Service.
- Configure and register the Jazz Reporting Service with the Jazz Team Server via the JTS setup wizard. Ensure that the Jazz Reporting Service is working by accessing the service via https://:/rs/.
- Install the Data Collection Component.
- Set up the Data Collection Component and register it in the same JTS as the Jazz Reporting Service via the JTS setup wizard.
- Once all of the setup steps are complete, try to access the Jazz Reporting Service via https://<server>:<port>/rs/. The following HTTP error 500 is shown:
Error Description/Symptom
Error 500: An error occurred while determining the authentication handler for request "https://:port/dcc/whoami"
Error Substatus
Detailed Message com.ibm.team.jfs.app.http.HttpInternalServerErrorException: Internal Server Error Error 500:
An error occurred while determining the authentication handler for request "https:// :port /dcc/whoami" at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:56) at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:39) at
java.lang.reflect.Constructor.newInstance(Constructor.java:527) at
com.ibm.team.jfs.app.util.ErrorUtils.handleErrorResponse(ErrorUtils.java:480) at
com.ibm.team.jfs.app.util.ErrorUtils.handleErrorResponse(ErrorUtils.java:405) at
com.ibm.team.integration.reporting.common.restservices.WhoAmIService.getCurrentUserURL(WhoAmIService.java:267) at
com.ibm.team.integration.reporting.common.restservices.WhoAmIService.getUserAccount(WhoAmIService.java:134) at
com.ibm.team.integration.reporting.common.restservices.WhoAmIService.doGet(WhoAmIService.java:54) at
com.ibm.team.integration.reporting.gatewayservices.FrontResultService.doGet(FrontResultService.java:272) at
...
Resolution or workaround
To resolve this problem, you need to add a new scr.xml file.
Steps to apply the fix:
- Unregister the Data Collection Component from the Jazz Team Server.
- Shut down the application server (WebSphere Application Server or Tomcat) where the Data Collection Component war file is deployed.
- Go to the directory of <Data Collection Component installation directory >/server/conf/dcc and back up the current scr.xml file.
- Download the updated scr.xml file and save it into the directory of <Data Collection Component installation directory>/server/conf/dcc.
- Restart the application server where the Data Collection Component war file is deployed.
- Clean up your browser's caches, cookies and histories, and close all tabs.
- Open the browser again and go to the Jazz Team Server’s setup page.
- Follow the setup steps to register DCC and to configure it.
- When you get to the step that requires you to log in to the Data Collection Component, ensure that your login is successful.
- Clean up your browser's caches, cookies and histories, and close all tabs again.
- Open the browser again and go to the JRS page. You should be able to log in successfully without a 500 error.