cancel
Showing results for 
Search instead for 
Did you mean: 

Tomcat not setting server.xml

sagard_mowt
Champ on-the-rise
Champ on-the-rise

Good morning,

I have run into this issue when I start my Apache Tomcat. Can anyone help?

FYI I have changed the actual password to ******** when posted here.

07-Aug-2020 15:09:30.529 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin Match [Server/Service/Connector] failed to set property [SSLEnabled] to [true]
07-Aug-2020 15:09:30.529 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin Match [Server/Service/Connector] failed to set property [maxThreads] to [150]
07-Aug-2020 15:09:30.530 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin Match [Server/Service/Connector] failed to set property [keystoreFile] to [/opt/alfresco/alf_data/keystore/ssl.keystore]
07-Aug-2020 15:09:30.530 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin Match [Server/Service/Connector] failed to set property [keystorePass] to [********]
07-Aug-2020 15:09:30.530 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin Match [Server/Service/Connector] failed to set property [keystoreType] to [JCEKS]
07-Aug-2020 15:09:30.530 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin Match [Server/Service/Connector] failed to set property [connectionTimeout] to [240000]
07-Aug-2020 15:09:30.530 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin Match [Server/Service/Connector] failed to set property [truststoreFile] to [/opt/alfresco/alf_data/keystore/ssl.truststore]
07-Aug-2020 15:09:30.531 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin Match [Server/Service/Connector] failed to set property [truststorePass] to [********]
07-Aug-2020 15:09:30.531 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin Match [Server/Service/Connector] failed to set property [truststoreType] to [JCEKS]
07-Aug-2020 15:09:30.531 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin Match [Server/Service/Connector] failed to set property [clientAuth] to [want]
07-Aug-2020 15:09:30.531 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin Match [Server/Service/Connector] failed to set property [sslProtocol] to [TLS]

Below is a copy of my server.xml file located in /opt/tomcat/conf/

<?xml version="1.0" encoding="UTF-8"?>

<Server port="8005" shutdown="SHUTDOWN">
  <Listener className="org.apache.catalina.startup.VersionLoggerListener" />
  <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
  <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />

  <GlobalNamingResources>
    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
              description="User database that can be updated and saved"
              factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
              pathname="conf/tomcat-users.xml" />
  </GlobalNamingResources>

  <Service name="Catalina">
    <Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />

    <Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol"
              SSLEnabled="true" maxThreads="150" scheme="https"
              keystoreFile="/opt/alfresco/alf_data/keystore/ssl.keystore"
              keystorePass="********" keystoreType="JCEKS"
              secure="true" connectionTimeout="240000"
              truststoreFile="/opt/alfresco/alf_data/keystore/ssl.truststore"
              truststorePass="********" truststoreType="JCEKS"
              clientAuth="want" sslProtocol="TLS" />

    <Engine name="Catalina" defaultHost="localhost">

      <Realm className="org.apache.catalina.realm.LockOutRealm">
        <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
               resourceName="UserDatabase"/>
      </Realm>

      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log" suffix=".txt"
               pattern="%h %l %u %t &quot;%r&quot; %s %b" />

      </Host>
    </Engine>
  </Service>
</Server>
1 ACCEPTED ANSWER

sagard_mowt
Champ on-the-rise
Champ on-the-rise

I decided to start over using the Loftuxab Alfresco Ubuntu Install since I am using a Debian server.

I will set this thread as answered and continue over at Alfresco Community Edition Installation Instructions.

Thank you for your assistance.

View answer in original post

3 REPLIES 3

kaynezhang
World-Class Innovator
World-Class Innovator

Tomcat currently operates only on JKS, PKCS11 or PKCS12 format keystores. The JKS format is Java's standard "Java KeyStore" format, and is the format created by the keytool command-line utility. This tool is included in the JDK. The PKCS12 format is an internet standard, and can be manipulated via (among other things) OpenSSL and Microsoft's Key-Manager.

It seems JCEKS is not supported by tomcat 8,you can try to change your store typ to JKS

afaust
Legendary Innovator
Legendary Innovator

There should not be any issue with support of JCEKS - Tomcat simply uses that configuration property to configure the underlying Java keystore, a native API feature, and passes on the store type for Java to handle. So Tomcat does not need to explicitly support a specific keystore type, as the support is already provided by Java / the JVM itself.

sagard_mowt
Champ on-the-rise
Champ on-the-rise

I decided to start over using the Loftuxab Alfresco Ubuntu Install since I am using a Debian server.

I will set this thread as answered and continue over at Alfresco Community Edition Installation Instructions.

Thank you for your assistance.