It's all about the answers!

Ask a question

Updated to Tomcat 7.3.x and service will not start properly


Wade Towles (33168) | asked Apr 07 '13, 11:41 p.m.
JAZZ DEVELOPER

JAZZ starts fine from the program files, manually, however, now when I attempt to run Apache as a Windows service, I get this in the Tomcat error log:

2013-04-08 03:32:53 Commons Daemon procrun stderr initialized
Apr 8, 2013 3:32:54 AM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.27 using APR version 1.4.6.
Apr 8, 2013 3:32:54 AM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
Apr 8, 2013 3:32:55 AM org.apache.catalina.core.AprLifecycleListener initializeSSL
INFO: OpenSSL successfully initialized (OpenSSL 1.0.1d 5 Feb 2013)
Apr 8, 2013 3:32:55 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-apr-80"]
Apr 8, 2013 3:32:55 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-apr-443"]
Apr 8, 2013 3:32:55 AM org.apache.coyote.AbstractProtocol init
SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-apr-443"]
Throwable occurred: java.lang.Exception: Connector attribute SSLCertificateFile must be defined when using SSL with APR
 at org.apache.tomcat.util.net.AprEndpoint.bind(AprEndpoint.java:507)
 at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610)
 at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429)
 at org.apache.catalina.connector.Connector.initInternal(Connector.java:981)
 at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
 at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
 at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
 at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814)
 at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:633)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:658)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
 at java.lang.reflect.Method.invoke(Method.java:611)
 at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
Apr 8, 2013 3:32:55 AM org.apache.catalina.core.StandardService initInternal
SEVERE: Failed to initialize connector [Connector[HTTP/1.1-443]]
Throwable occurred: org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-443]]
 at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)
 at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
 at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
 at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814)
 at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:633)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:658)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
 at java.lang.reflect.Method.invoke(Method.java:611)
 at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed
 at org.apache.catalina.connector.Connector.initInternal(Connector.java:983)
 at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
 ... 12 more
Caused by: java.lang.Exception: Connector attribute SSLCertificateFile must be defined when using SSL with APR
 at org.apache.tomcat.util.net.AprEndpoint.bind(AprEndpoint.java:507)
 at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610)
 at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429)
 at org.apache.catalina.connector.Connector.initInternal(Connector.java:981)
 ... 13 more
Apr 8, 2013 3:32:55 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-apr-9009"]
Apr 8, 2013 3:32:55 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1668 ms
Apr 8, 2013 3:32:55 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Apr 8, 2013 3:32:55 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.39
Apr 8, 2013 3:32:56 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive E:\IBM\JazzTeamServer402\server\tomcat\webapps\admin.war
Apr 8, 2013 3:32:58 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive E:\IBM\JazzTeamServer402\server\tomcat\webapps\ccm.war
Apr 8, 2013 3:33:06 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive E:\IBM\JazzTeamServer402\server\tomcat\webapps\clmhelp.war
Apr 8, 2013 3:33:10 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive E:\IBM\JazzTeamServer402\server\tomcat\webapps\converter.war
Apr 8, 2013 3:33:11 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive E:\IBM\JazzTeamServer402\server\tomcat\webapps\jts.war

Has anyone else seen this?  I need to get this working, because the server logs me out automatically if there is no activity for an hour.

4 answers



permanent link
Eric Jodet (6.3k5111120) | answered Apr 08 '13, 7:57 a.m.
JAZZ DEVELOPER
 Hello Wade,
not sure about the version of RTC you're using,
but the above stack looks similar to Tomcat fails running as a windows service (185077)
which seems to be fixed in 4.0

Thanks.
Eric.

Comments
Wade Towles commented Apr 08 '13, 9:37 a.m.
JAZZ DEVELOPER

Thanks Eric, however, I upgraded JAZZ to 4.0.2, which uses Tomcat 7.0.28 I think.  I had to update Tomcat to 7.0.3x, and that seems to be causing the issue.  Everything is the same, except the Tomcat version.


Eric Jodet commented Apr 08 '13, 9:57 a.m.
JAZZ DEVELOPER

 so this could the SSL certificate.

Unfortunately , SSL certificates is not my favorite topic.

Thanks
Eric


permanent link
Kot T. (1.5k11319) | answered Apr 10 '13, 10:32 a.m.
JAZZ DEVELOPER
As part of the Tomcat upgrade, did you copy server.xml and tomcat-user.xml to the upgraded tomcat directory?
http://www-01.ibm.com/support/docview.wss?uid=swg21448666

What java options do you have in your new tomcat7w? There is the following link which talks about a similar issue.
http://www-01.ibm.com/support/docview.wss?uid=swg21460726

permanent link
Wade Towles (33168) | answered Apr 10 '13, 1:59 p.m.
JAZZ DEVELOPER

I deleted the instance and built a new one with the JTS 4.0.2 installation, and there are no issues now.  I suspect the issue was somehow related to the server.xml file pointing to an old file.

Thanks everyone!


permanent link
John Lanuti (2156) | answered May 01 '13, 11:22 a.m.
JAZZ DEVELOPER
 Hey Wade,

The solution, after upgrading Tomcat, is to change the protocol definition for the connector in the server.xml file.  It should look something like the following.  Note the change from:

protocol="HTTP/1.1"

to:

protocol="org.apache.coyote.http11.Http11Protocol"

<Connector port="443"
               connectionTimeout="20000"
               maxHttpHeaderSize="8192"
               maxThreads="150"
               minSpareThreads="25"
               enableLookups="false"
               disableUploadTimeout="true"
               acceptCount="100"
               scheme="https"
               secure="true"
               clientAuth="false"
               keystoreFile="ibm-team-ssl.keystore"
               keystorePass="ibm-team"
      protocol="org.apache.coyote.http11.Http11Protocol"
      SSLEnabled="true"
               sslProtocol="${jazz.connector.sslProtocol}" 
               algorithm="${jazz.connector.algorithm}"
               URIEncoding="UTF-8" 
               ciphers="SSL_RSA_WITH_RC4_128_MD5, SSL_RSA_WITH_RC4_128_SHA, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_DSS_WITH_AES_128_CBC_SHA, SSL_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA" />
    

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.