Runtime error when trying to run RQM as a service
Hi Guru's
Has anyone seen the following run time error when they tried to run RQM as a service: Event Dispatcher] ERROR et.jazz.ajax.internal.registry.WebUIRegistryReader - A RuntimeException has occurred while starting the WebUI services java.lang.StackOverflowError Also getting the following URL error: Redirect Loop Firefox has detected that the server is redirecting the request for this address in a way that will never complete. The browser has stopped trying to retrieve the requested item. The site is redirecting the request in a way that will never complete. |
12 answers
I get that every once in a while. Restarting the service should fix it.
|
Hello,
The issue was that the starting the Jazz server as a service Tech note was not 100% accurate for RQM. Absolute paths had to be appended in the 3 provision profile files. |
Hi, where is the tech note you are referring to? We should get it updated to work correctly for RQM. Thanks.
|
Hi, where is the tech note you are referring to? We should get it updated to work correctly for RQM. Thanks. This technote shows an example. In the example the Jazz Team Server deployment root is at C:\Program Files\IBM\RQM . For your situation you adjust the paths according your actual root directory. Start a windows command prompt. Then navigate to C:\program files\IBM\RQM\server\tomcat\bin\ Start the program service.bat . Install the Tomcat service tomcat5 with following command C:> service.bat install tomcat5 If you use Derby for your Jazz Repository, edit the following file. C:\Program Files\IBM\RQM\server\teamserver.properties to make the database location an absolute path. In the Derby Configuration section change the value of com.ibm.team.repository.db.jdbc.location to C:\Program Files\\IBM\\RQM\\server\\repositoryDB . Run C:\Program Files\IBM\RQM\server\tomcat\bin\tomcat5w.exe to configure the service. On the Java tab clear the check box Use default . Change the Java Virtual Machine path to C:\Program Files\IBM\RQM\server \win32\ibm-java2-i386-50\jre\bin\j9vm \jvm.dll. Replace the default Java Options with the following content. |--------------------------------------------------------------------------| | | |-Dcatalina.base=C:\Progra~1\IBM\RQM\server\tomcat | |-Dcatalina.home=C:\Progra~1\IBM\RQM\server\tomcat | |-Djava.endorsed.dirs=C:\Progra~1\IBM\RQM\server\tomcat\common\endorsed | |-Djava.io.tmpdir=C:\Progra~1\IBM\RQM\server\tomcat\temp | |-Dcom.ibm.team.server.configURL= | |file:///C:/Program%20Files/IBM/RQM/server/teamserver.properties | |-Dcom.ibm.team.repository.provision.profile= | |file:///C:/Program%20Files/IBM/RQM/server/provision_profiles | |-Dlog4j.configuration=file:///C:/Program%20Files/IBM/RQM/server/log4j.prop| |erties | |-Djava.awt.headless=true | |-Dorg.eclipse.emf.ecore.plugin.EcorePlugin.doNotLoadResourcesPlugin=true | |-Dcom.ibm.team.repository.tempDir=%TEMP% | | | |--------------------------------------------------------------------------| If you are using an Oracle database, add the following line. -DORACLE_JDBC= For example: F:\IBM\RQM\server\update-site\plugins \com.ibm.team.repository.jdbcdriver.oracle_0.6.1.I200810072228.jar If you use DB2, add the following two lines. -DDB2I_JDBC=F:\IBM\RQM\server\update-site\plugins \com.ibm.team.repository.jdbcdriver.db2i_0.6.0.I200805291754.jar -DDB2Z_JDBC=F:\IBM\RQM\server\update-site\plugins \com.ibm.team.repository.jdbcdriver.db2z_0.6.0.I200805291754.jar C:\Program Files\IBM\RQM\server\update-site\plugins\ Change the Maximum memory pool size to 700. Change the Thread Stack Size to 1024 On the 'Startup' and 'Shutdown' tabs, make sure the 'Mode' setting is 'jvm'. On the 'General' tab you can change the 'Startup type' to be 'Automatic' if you want the service to start on its own. Modify all 3 of the provision profiles (usually in C:\program files\IBM\RQM \server\provision_profiles and change the 'url' property in each one to an absolute path. For example change url=file:./update-site to url=file:///C:\\Program Files\\IBM\\RQM\\server\\update-site. Do not make backups of the profile files in this directory as all files found will be treated as potential profiles to be used for provisioning. Also make sure that the editor you use to modify the files does not create hidden backup files.. Type net start tomcat5 to start the service. |
I see this every time I restart our RQM server (RQM v1.0.1 on running AIX). I have to reset the server and then reload license files every time I hit this, so it makes server restarts pretty painful. I tried adding the full path to provision_profile paths, as suggested in teh technote mentioned in another post, but this did not seem to make any difference. Here is an example showing full path url for rqm-profile.ini: url=file:///opt/IBM/RQM/server/rqm-update-site One other note, I saw this a few times on RQM 1.0, but only rarely. I see it every server restart now. I am wondering if something may have gotten corrupted during the upgrade process. |
billowen wrote:
nelmercwrote: There is a critical JVM arg (referred to as 'Java options' in the instructions) missing from the instructions posted for installing RQM as a service. The JVM arg '-Xss768k' should be appended to the list. This applies to any environment and not just to running RQM as a service. If you've hit this problem already (StackOverflow), you'll need to do the following: (1) shut down your server (2) add this JVM arg/ Java option (3) delete your temp dir - Tomcat: <RQM>/server/tomcat/work/Catalina - WebSphere: <WAS>/profiles/<PROFILE_NAME>/<SERVER_NAME>/temp/jazz_war (4) Restart your server. This JVM arg is included by default in the RQM server.startup scripts, but must be added manually if the server is being started in any other way. Helen, can we get the 'Running as a service' guide updated with the proper settings ? |
Sure, but I need to know where users are finding it. The related tech notes I am aware of have not been made public yet, so there must be another version posted somewhere. Thanks.
|
Michael, server.startup was using -Xss512k, I modified to 1024k and things now seem to work well. Thanks for the tip! |
Michael, server.startup was using -Xss512k, I modified to 1024k and things now seem to work well. Thanks for the tip! Is there an enhancement to just have RQM stay up period? I don't understand why in this series of tools users would have to do this. |
Is there an enhancement to just have RQM stay up period? I don't understand why in this series of tools users would have to do this. It's not that RQM does not stay up - my experience is that RQM server is extremely stable. However, in the current release you need to restart the RQM server in order for changes to integration_config.xml to take effect (defining integrations with other tools like TPM, Buildforge, TADDM). My understanding is that in RQM v2, the restart will not be required. |
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.