I'm getting this error when starting Jira that Tomcat is misconfigured and that the server.xml file is missing parameters needed by Jira to handle requests that contain special characters.
It pops us a message that includes the following URL on how to troubleshoot the issue: https://confluence.atlassian.com/jirakb/changing-server-xml-to-handle-requests-with-special-characters-958453799.html
I'm supposed to follow these steps to fix the issue:
<Jira-installation-directory>/conf
, and edit the server.xml
file.Add relaxedPathChars="[]|" relaxedQueryChars="[]|{}^\`"<>"
to the connector properties in server.xml
. For example:
<Connector port="8080" relaxedPathChars="[]|" rela
I used the config.bat to change the settings to use only https and this is how my connector looks like:
<Connector SSLEnabled="true" acceptCount="100" clientAuth="false" connectionTimeout="20000" disableUploadTimeout="true" enableLookups="false" keyAlias="te-50a7704f-9b69-4627-b12a-0c2c87a6c70f" keystoreFile="C:\Program Files\Java\jre1.8.0_221\lib\security\cacerts" keystorePass="changeit" keystoreType="JKS" maxHttpHeaderSize="8192" maxSpareThreads="75" maxThreads="150" minSpareThreads="25" port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" scheme="https" secure="true" sslProtocol="TLS" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^\`"<>" useBodyEncodingForURI="true"/></Service>
What am I missing?
We got it to work using the following connector:
<Connector SSLEnabled="true" acceptCount="100" clientAuth="false" connectionTimeout="20000" disableUploadTimeout="true" enableLookups="false" keyAlias="te-50a7704f-9b69-4627-b12a-0c2c87a6c70f" keystoreFile="C:\Program Files\Java\jre1.8.0_221\lib\security\cacerts" keystorePass="changeit" keystoreType="JKS" maxHttpHeaderSize="8192" maxSpareThreads="75" maxThreads="150" minSpareThreads="25" port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" scheme="https" secure="true" sslProtocol="TLS" useBodyEncodingForURI="true" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^\`"<>"/>
Thank you , you saved my life :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This helped, thank you.
Further, if you have configured SSL (with redirect), you'll need to locate both (or all) connector tags in config.xml and ensure that they have these attributes:
relaxedPathChars="[]|" relaxedQueryChars="[]|{}^\`"<>"
I reiterate this because I found one of the two tucked waaay at the end of the file.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I suspect it's the characters in the relaxedQueryChars string - try shortening it to just "|" to start with, then adding the others back in one or two at a time to work out which ones fail. My Tomcat fails on the {} pair, as it's reading that as a non-existent variable (but I don't see this too often as I don't like punctuation in urls and usually actively disable it)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.