Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

6.3K
Visualizações
Tomcat: Native library which allows using OpenSSL was not found

I just setup a new Java project with Tomcat 9 on Ubuntu 18.04.

However, when I start the Tomcat server using the command

sudo systemctl restart tomcat

I get the following error:

The Apache Tomcat Native library which allows using OpenSSL was not found on the java.library.path

I still can figure out what the issue is.

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

I figured out what the issue was.

I had already set up an SSL/TLS/HTTPS connection protocol in the opt/tomcat/conf/server.xml file:

<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
           maxThreads="150" SSLEnabled="true" >
    <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />
    <SSLHostConfig>
        <Certificate certificateKeyFile="conf/key.key"
                     certificateFile="conf/cert.crt"
                     certificateChainFile="conf/chain.crt"
                     type="RSA" />
    </SSLHostConfig>
</Connector>

but the *.war file that was gonna use the connection was not put in the opt/tomcat/webapps directory.

Here's how I solved it:

I simply added the *.war file in the opt/tomcat/webapps directory of tomcat, and then I restarted the tomcat server using:

sudo systemctl restart tomcat

And everything worked fine.

That's all.

I hope this helps

over 4 years ago · Santiago Trujillo Relatório

0

You need to install tomcat-native-1.2.31 from source code as following steps:

  1. Install tool (skipped them if already exists)
yum install gcc apr-devel apr-util
  1. Download tomcat-native from official site to /tmp folder
cd /tmp
wget https://mirror-hk.koddos.net/apache/tomcat/tomcat-connectors/native/1.2.31/source/tomcat-native-1.2.31-src.tar.gz
  1. Decompress file
tar zxvf tomcat-native-1.2.23-src.tar.gz
  1. Configuration
cd tomcat-native-1.2.23-src/native

./configure --with-apr=/usr/bin/apr-1-config \
            --with-java-home=$JAVA_JOME \
            --with-ssl=yes \
            --prefix=$CATALINA_HOME
  1. Compile and install
make & make install
  1. Edit $CATALINA_HOME/bin/setenv.sh (creating the file if necessary) and add the path to the tc-native libraries to LD_LIBRARY_PATH.
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CATALINA_HOME/lib
export LD_LIBRARY_PATH

And it's work!

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda