It's all about the answers!

Ask a question

Issues while running tomcat as a service


Joseph Simon Arokiaraj (21414845) | asked Dec 10 '12, 10:22 a.m.

Hi All,

I tried to run Tomcat as a windows service on my test machine (Windows 32 bit XP) . Service is starting properly but most of the RTC services seems to be failed. We are using evaluation toplogy at the moment with Derby database.

It allows me to login to JTS.witht he information "You are currently logged in to the Admin Web UI as a user without JazzAdmins permissions. Most of the functionality will be unavailable. If you believe you should have full access, please contact your administrator."

It works perfectly when I start the server manually.

My Java configuration in the tomcat5w.exe

-Dcatalina.base=C:\Program Files\IBM\JazzTeamServer_1\server\tomcat
-Dcatalina.home=C:\Program Files\IBM\JazzTeamServer_1\server\tomcat
-Djava.endorsed.dirs=C:\Program Files\IBM\JazzTeamServer_1\server\tomcat\common\endorsed
-Djava.io.tmpdir=C:\Program Files\IBM\JazzTeamServer_1\server\tomcat\temp
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=C:\Program Files\IBM\JazzTeamServer_1\server\tomcat\conf\logging.properties
-DJAZZ_HOME=file:///C:/Program Files/IBM/JazzTeamServer_1/server/conf
-Djava.awt.headless=true
-Dorg.eclipse.emf.ecore.plugin.EcorePlugin.doNotLoadResourcesPlugin=true
-Dcom.ibm.team.repository.tempDir=%TEMP%
-Djazz.connector.sslProtocol=SSL_TLS
-Djazz.connector.algorithm=IbmX509
-Dlog4j.configuration=file:///C:/Program Files/IBM/JazzTeamServer_1/server/conf/startup_log4j.properties


Catalina.log:

10-Dec-2012 12:34:59 org.apache.catalina.core.ApplicationContext log
INFO: addons: BrowserExtensionServlet.init: contextPrefix is set to addons
10-Dec-2012 12:34:59 org.apache.catalina.core.ApplicationContext log
INFO: addons: BrowserExtensionServlet.init: useAcceptRanges is set to false
Dec 10, 2012 1:35:22 PM org.apache.catalina.core.ApplicationContext log
INFO: addons: BrowserExtensionServlet.init: contextPrefix is set to addons
Dec 10, 2012 1:35:22 PM org.apache.catalina.core.ApplicationContext log
INFO: addons: BrowserExtensionServlet.init: useAcceptRanges is set to false
10-Dec-2012 14:24:20 org.apache.catalina.core.ApplicationContext log
INFO: addons: BrowserExtensionServlet.init: contextPrefix is set to addons
10-Dec-2012 14:24:20 org.apache.catalina.core.ApplicationContext log
INFO: addons: BrowserExtensionServlet.init: useAcceptRanges is set to false
10-Dec-2012 14:28:25 org.apache.catalina.core.ApplicationContext log
INFO: addons: BrowserExtensionServlet.init: contextPrefix is set to addons
10-Dec-2012 14:28:25 org.apache.catalina.core.ApplicationContext log
INFO: addons: BrowserExtensionServlet.init: useAcceptRanges is set to false
10-Dec-2012 14:31:59 org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet equinoxbridgeservlet threw exception
java.lang.NullPointerException
 at net.jazz.ajax.service.internal.http.ThemingHandler.sendLocalRequest(ThemingHandler.java:1508)
 at net.jazz.ajax.service.internal.http.ThemingHandler.sendJfsRequest(ThemingHandler.java:1493)
 at net.jazz.ajax.service.internal.http.ThemingHandler.sendBasicJFSGet(ThemingHandler.java:468)
 at net.jazz.ajax.service.internal.http.ThemingHandler.createRootNamespace(ThemingHandler.java:1362)
 at net.jazz.ajax.service.internal.http.ThemingHandler.initMetadata(ThemingHandler.java:1322)
 at net.jazz.ajax.service.internal.http.ThemingHandler.init(ThemingHandler.java:299)
 at net.jazz.ajax.service.internal.http.ThemingHandler.handle(ThemingHandler.java:245)
 at com.ibm.team.server.httpcore.bridge.AbstractHandlerWrapperServlet.doWrappedService(AbstractHandlerWrapperServlet.java:136)
 at net.jazz.ajax.service.internal.EndpointRegistrar$1.doWrappedService(EndpointRegistrar.java:83)
 at com.ibm.team.server.httpcore.bridge.AbstractHandlerWrapperServlet.service(AbstractHandlerWrapperServlet.java:109)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
 at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
 at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
 at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
 at org.eclipse.equinox.servletbridge.BridgeServlet.service(BridgeServlet.java:120)
 at com.ibm.team.repository.server.servletbridge.JazzServlet.service(JazzServlet.java:76)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
 at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:420)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
 at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
 at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
 at java.lang.Thread.run(Thread.java:813)
10-Dec-2012 14:31:59 org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet equinoxbridgeservlet threw exception
java.lang.NullPointerException
 at net.jazz.ajax.service.internal.http.ThemingHandler.sendLocalRequest(ThemingHandler.java:1508)
 at net.jazz.ajax.service.internal.http.ThemingHandler.sendJfsRequest(ThemingHandler.java:1493)
 at net.jazz.ajax.service.internal.http.ThemingHandler.sendBasicJFSGet(ThemingHandler.java:468)
 at net.jazz.ajax.service.internal.http.ThemingHandler.createRootNamespace(ThemingHandler.java:1362)
 at net.jazz.ajax.service.internal.http.ThemingHandler.initMetadata(ThemingHandler.java:1322)
 at net.jazz.ajax.service.internal.http.ThemingHandler.init(ThemingHandler.java:299)
 at net.jazz.ajax.service.internal.http.ThemingHandler.handle(ThemingHandler.java:245)
 at com.ibm.team.server.httpcore.bridge.AbstractHandlerWrapperServlet.doWrappedService(AbstractHandlerWrapperServlet.java:136)
 at net.jazz.ajax.service.internal.EndpointRegistrar$1.doWrappedService(EndpointRegistrar.java:83)
 at com.ibm.team.server.httpcore.bridge.AbstractHandlerWrapperServlet.service(AbstractHandlerWrapperServlet.java:109)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
 at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
 at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
 at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
 at org.eclipse.equinox.servletbridge.BridgeServlet.service(BridgeServlet.java:120)
 at com.ibm.team.repository.server.servletbridge.JazzServlet.service(JazzServlet.java:76)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
 at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:420)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
 at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
 at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
 at java.lang.Thread.run(Thread.java:813)


Tomcat5.err.log:

2012-12-10 14:27:20 Commons Daemon procrun stderr initialized
10-Dec-2012 14:27:21 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\IBM\JazzTeamServer_1\server\jre\bin;C:\WINDOWS\system32;C:\WINDOWS;c:\Program Files\CA\SC\CAWIN\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\PROGRA~1\CA\SC\CAM\bin;c:\Program Files\CA\SC\Csam\SockAdapter\bin;c:\Program Files\CA\DSM\bin;c:\Program Files\CA\SC\CBB\;.
10-Dec-2012 14:27:21 org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-9080
10-Dec-2012 14:27:21 org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-9443
10-Dec-2012 14:27:21 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1031 ms
10-Dec-2012 14:27:21 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
10-Dec-2012 14:27:21 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.35
10-Dec-2012 14:27:21 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
10-Dec-2012 14:28:25 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive clmhelp.war
10-Dec-2012 14:28:28 org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-9080
10-Dec-2012 14:28:28 org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-9443
10-Dec-2012 14:28:28 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
10-Dec-2012 14:28:28 org.apache.catalina.startup.Catalina start
INFO: Server startup in 66583 ms

It allows me to login to JTS.witht he information "You are currently logged in to the Admin Web UI as a user without JazzAdmins permissions. Most of the functionality will be unavailable. If you believe you should have full access, please contact your administrator."

Error:

The service "com.ibm.team.repository.service.internal.diagnostic.DiagnosticRestService" failed to activate because a service it depends on, "com.ibm.team.repository.service.internal.diagnostic.IDiagnosticExecutionService", failed to be activated.ID CRJAZ1972E
com.ibm.team.repository.common.transport.TeamServiceRegistryException
com.ibm.team.repository.common.transport.internal.registry.AbstractActivationManagerOwner.buildServicesMap(AbstractActivationManagerOwner.java:319)
com.ibm.team.repository.common.transport.internal.registry.AbstractActivationManagerOwner.doActivate(AbstractActivationManagerOwner.java:652)
com.ibm.team.repository.common.transport.internal.registry.ServiceProviderActivationManagerOwner.getService(ServiceProviderActivationManagerOwner.java:133)
com.ibm.team.repository.common.transport.internal.registry.OsgiServicesManager.getService(OsgiServicesManager.java:248)
com.ibm.team.repository.common.transport.internal.registry.OsgiServicesManager.getService(OsgiServicesManager.java:257)
com.ibm.team.repository.common.transport.internal.registry.OsgiServicesManager.getServiceForRemoteAccess(OsgiServicesManager.java:550)
com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleRequest2(AbstractTeamServerServlet.java:1808)
com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleRequest(AbstractTeamServerServlet.java:1728)
com.ibm.team.repository.servlet.AbstractTeamServerServlet.service(AbstractTeamServerServlet.java:1637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180)
org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:75)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.eclipse.equinox.servletbridge.BridgeServlet.service(BridgeServlet.java:120)


It would be a real help if you could give me  some advice on this?

Thanks in advance.

Cheers,

Simon

One answer



permanent link
Bo Chulindra (1.3k2718) | answered Dec 10 '12, 10:57 a.m.
JAZZ DEVELOPER
@josthi: what version CLM is this? I noticed that your server is in the Program Files directory. If you notice the instructions for running in Tomcat as a Windows service here (this is for CLM 4.0 and only 64-bit Windows is supported, although the instructions should be the same for 32-bit), you'll see this line:

Tip: To avoid problems, do not use spaces in file paths. For example, for the Program Files directory you can use PROGRA~1.

Your answer


Register or to post 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.