CQConnector Gateway as a Windows Service RTC 20
I found information that suggested all I had to do was add these two lines to the java tab on the service properties box :
-Dlog4j.configuration=file:///D:/Program Files/IBM/ClearQuestConnector/gateway/log4j.properties -Dcom.ibm.rational.interop.gateway.configURL=file:///D:/Program Files/IBM/ClearQuestConnector/gateway/cqconnector.properties with just these two lines added and the gateway started from the service, I get all this ... INFO: Deploying web application archive cqconnector.war java.lang.NoClassDefFoundError: com.rational.clearquest.cqjni.CQClearQuest at com.ibm.rational.connector.cq.common.cqgateway.CqObjectFactory.getCQVersionInfo(CqObjectFactory.java:113) at com.ibm.rational.connector.cq.common.cqgateway.CqObjectFactory.getImplementation(CqObjectFactory.java:149) at com.ibm.rational.connector.cq.common.cqgateway.CqObjectFactory.createCqProvider(CqObjectFactory.java:375) at com.ibm.rational.connector.cq.common.cqgateway.CQInteropEventHandler.connect(CQInteropEventHandler.java:73) at com.ibm.rational.connector.cq.common.cqgateway.CQInteropEventHandler.<init>(CQInteropEventHandler.java:56) at com.ibm.rational.connector.cq.common.cqgateway.CQRepository.getHandler(CQRepository.java:191) at com.ibm.rational.connector.cq.common.cqgateway.CQRepository.initializeRepoInfo(CQRepository.java:108) at com.ibm.rational.connector.cq.common.cqgateway.CQRepository.<init>(CQRepository.java:41) at com.ibm.rational.connector.cq.common.cqgateway.CQGateway.connectToRepositoryLocal(CQGateway.java:96) at com.ibm.rational.connector.cq.gateway.init.GatewayServer.addCQRepository(GatewayServer.java:147) at com.ibm.rational.connector.cq.gateway.init.GatewayServer.initialize(GatewayServer.java:299) at com.ibm.rational.connector.cq.gateway.servlet.InteropServlet.init(InteropServlet.java:133) at javax.servlet.GenericServlet.init(GenericServlet.java:212) at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.initializeDelegate(ServletManager.java:195) at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.init(ServletManager.java:171) at org.eclipse.equinox.http.servlet.internal.ServletRegistration.init(ServletRegistration.java:64) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.registerServlet(ProxyServlet.java:142) at org.eclipse.equinox.http.servlet.internal.HttpServiceImpl.registerServlet(HttpServiceImpl.java:59) at org.eclipse.equinox.http.registry.internal.HttpRegistryManager.registerServlet(HttpRegistryManager.java:223) at org.eclipse.equinox.http.registry.internal.HttpRegistryManager.addServletContribution(HttpRegistryManager.java:114) at org.eclipse.equinox.http.registry.internal.ServletManager.added(ServletManager.java:136) at org.eclipse.equinox.http.registry.internal.ExtensionPointTracker.open(ExtensionPointTracker.java:75) at org.eclipse.equinox.http.registry.internal.ServletManager.start(ServletManager.java:62) at org.eclipse.equinox.http.registry.internal.HttpRegistryManager.start(HttpRegistryManager.java:85) at org.eclipse.equinox.http.registry.internal.HttpServiceTracker.addingService(HttpServiceTracker.java:58) at org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(ServiceTracker.java:1064) at org.osgi.util.tracker.ServiceTracker$Tracked.track(ServiceTracker.java:1042) at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:967) at org.eclipse.osgi.framework.internal.core.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:91) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:1248) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:211) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:141) at org.eclipse.osgi.framework.internal.core.Framework.publishServiceEventPrivileged(Framework.java:1563) at org.eclipse.osgi.framework.internal.core.Framework.publishServiceEvent(Framework.java:1538) at org.eclipse.osgi.framework.internal.core.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:122) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.createServiceRegistration(BundleContextImpl.java:666) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:617) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:685) at org.eclipse.equinox.http.servlet.internal.Activator.registerHttpService(Activator.java:78) at org.eclipse.equinox.http.servlet.internal.Activator.addProxyServlet(Activator.java:57) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.init(ProxyServlet.java:39) at org.eclipse.equinox.servletbridge.BridgeServlet.registerServletDelegate(BridgeServlet.java:226) at org.eclipse.equinox.http.servletbridge.internal.Activator.start(Activator.java:25) at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009) at java.security.AccessController.doPrivileged(AccessController.java:246) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346) at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:355) at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1074) at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:616) at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:508) at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:299) at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:489) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:211) at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:321) Caused by: java.lang.ClassNotFoundException: com.rational.clearquest.cqjni.CQClearQuest at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:437) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:399) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:387) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87) at java.lang.ClassLoader.loadClass(ClassLoader.java:597) ... 56 more even though eventually the server claims to have started up - then checking the gateway I have a 404 error ... Does any one have it working correctly as a service in Windows ? :?: |
3 answers
Is ClearQuest installed on the machine where Tomcat is running?
Rich Piazza Jazz CQ Connector team |
Is ClearQuest installed on the machine where Tomcat is running? yes ClearQuest is installed on the machine |
This was also listed in the instructions:
Depending upon the version of ClearQuest that is installed, also add: -Dcq.home= <CQ>. The default install directories are: * 7.0.1 - C:/Program Files/Rational/ClearQuest * 7.1 - C:/Program Files/IBM/RationalSDLC/ClearQuest Its having problems finding a jar file from the CQ installation. You need to tell it where to look. Rich Jazz CQ Connector team |
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.