Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-64082

Jira Configuration Tool sets wrong value of the 'protocol' attribute for Tomcat SSL configuration

      Steps to Reproduce

      1. Trigger JIRA Configuration Tool
      2. Got to "Web Server" tab
      3. Setup "Profile"  to use HTTPS
      4. Save changes.
      5. Start JIRA.

      Expected Results

      JIRA starts with SSL enabled

      Actual Results

      Tomcat fails and is unable to start. The below exception is thrown in the catalina.out file:

      06-Jan-2017 11:46:26.846 SEVERE [main] org.apache.catalina.connector.Connector.<init> Protocol handler instantiation failed
       java.lang.ClassNotFoundException: org.apache.coyote.http11.Http11Protocol
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	at java.lang.Class.forName0(Native Method)
      	at java.lang.Class.forName(Class.java:264)
      	at org.apache.catalina.connector.Connector.<init>(Connector.java:74)
      	at org.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreateRule.java:64)
      	at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1190)
      	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509)
      	at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182)
      	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1339)
      	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2784)
      	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
      	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
      	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:841)
      	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:770)
      	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
      	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
      	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
      	at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1458)
      	at org.apache.catalina.startup.Catalina.load(Catalina.java:578)
      	at org.apache.catalina.startup.Catalina.load(Catalina.java:629)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:311)
      	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:494) 

      Workaround

      Modify JIRA_INSTALL/conf/server.xml. Change the protocol on your HTTPS connector to: protocol="org.apache.coyote.http11.Http11NioProtocol"

      • If you do not use the HTTP Connector but use the AJP Connector instead, use the AJP NIO protocol instead.
        • The AJP connector is: protocol="org.apache.coyote.ajp.AjpNioProtocol"

      Refer to Upgrade notes for 7.3 for instructions. See Running JIRA applications over SSL.

      See Running JIRA applications over SSL or HTTPS for full directions on running JIRA over SSL or HTTPS.

       

       

            [JRASERVER-64082] Jira Configuration Tool sets wrong value of the 'protocol' attribute for Tomcat SSL configuration

            Hi,

            Sorry to hear that you have encountered this bug as well. We are working on providing a fix in the Jira Config Tool in order to provide a long term solution for this problem. However this specific bug has not been given our high or highest priority because there does exist a work-around for this problem. We know other users are going to encounter this issue, but we have tried to mitigate this by creating upgrade notes in the 7.3 documentation to highlight this problem and how to fix it: https://confluence.atlassian.com/display/JIRASOFTWARE/JIRA+Software+7.3.x+upgrade+notes. Moving forward we are interested to fix this bug to both help our end users and reduce the number of support cases caused by this problem. We are planning to have it fixed in 7.6.X. As soon we have a specific version locked down I will let you know. Our bug fix policy does explain in more depth how we approach fixing bugs in our products, https://confluence.atlassian.com/support/atlassian-bug-fixing-policy-201294573.html

            Regards,

            Pawel Farid

            Jira Dev Manager

            Pawel Farid (Inactive) added a comment - Hi, Sorry to hear that you have encountered this bug as well. We are working on providing a fix in the Jira Config Tool in order to provide a long term solution for this problem. However this specific bug has not been given our high or highest priority because there does exist a work-around for this problem. We know other users are going to encounter this issue, but we have tried to mitigate this by creating upgrade notes in the 7.3 documentation to highlight this problem and how to fix it: https://confluence.atlassian.com/display/JIRASOFTWARE/JIRA+Software+7.3.x+upgrade+notes . Moving forward we are interested to fix this bug to both help our end users and reduce the number of support cases caused by this problem. We are planning to have it fixed in 7.6.X. As soon we have a specific version locked down I will let you know. Our bug fix policy does explain in more depth how we approach fixing bugs in our products, https://confluence.atlassian.com/support/atlassian-bug-fixing-policy-201294573.html Regards, Pawel Farid Jira Dev Manager

            Just ran into this today helping a co-worker.

            Basically, after running the config.bat (windows installation) and setting the https "stuff", starting the JIRA service failed.  Put back the original server.xml, and it works.  Figure out the difference and look in the log files.

            Saw error message as noted above.  Did google search for "jira  java.lang.ClassNotFoundException: org.apache.coyote.http11.Http11Protocol"  Took me straight here.

            Problem fixed; but yeah, might want to fix what is generated by the jira-configurator.jar

            Chris Wilhelm added a comment - Just ran into this today helping a co-worker. Basically, after running the config.bat (windows installation) and setting the https "stuff", starting the JIRA service failed.  Put back the original server.xml, and it works.  Figure out the difference and look in the log files. Saw error message as noted above.  Did google search for "jira  java.lang.ClassNotFoundException: org.apache.coyote.http11.Http11Protocol"  Took me straight here. Problem fixed; but yeah, might want to fix what is generated by the jira-configurator.jar

            How is this still a bug since February? As William mentioned above, a fresh out of the box install with SSL enabled doesn't work. That should be a major flaw needing to be prioritized considering this workaround isn't exactly easy to find.

            It also means we have to do this manual work around every time we do an upgrade.

            IT Department added a comment - How is this still a bug since February? As William mentioned above, a fresh out of the box install with SSL enabled doesn't work. That should be a major flaw needing to be prioritized considering this workaround isn't exactly easy to find. It also means we have to do this manual work around every time we do an upgrade.

            William Clark added a comment - - edited

            Why is this NOT set to high priority? The automated windows install WILL NOT WORK as currently sold without manual configuration that is no where to be found in the documentation.

            William Clark added a comment - - edited Why is this NOT set to high priority? The automated windows install WILL NOT WORK as currently sold without manual configuration that is no where to be found in the documentation.

              pfarid Pawel Farid (Inactive)
              pfarid Pawel Farid (Inactive)
              Affected customers:
              18 This affects my team
              Watchers:
              38 Start watching this issue

                Created:
                Updated:
                Resolved: