2 votes

Mise à jour de la bibliothèque native de Tomcat

Je ne peux pas me débarrasser de

An incompatible version 1.1.29 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.30

dans Intellij Idea. Je pense que j'ai juste besoin de le mettre à jour.

sudo apt-get upgrade libtcnative-1

n'a pas réglé le problème. Il est dit

Lecture des listes de paquets... Terminé Construction de l'arbre des dépendances Lecture informations d'état... Terminé Calcul de la mise à niveau... Terminé libtcnative-1 est déjà la version la plus récente. 0 mis à jour, 0 nouvellement installé, 0 à supprimer et 0 non mise à jour.

Erreur dans le journal d'Idea :

/home/ivan/Documents/Tomcat/apache-tomcat-7.0.55/bin/catalina.sh run
Connected to the target VM, address: '127.0.0.1:60749', transport: 'socket'
[2014-09-23 02:11:57,027] Artifact perc-web:war exploded: Server is not connected. Deploy is not available.
Sep 23, 2014 2:11:58 AM org.apache.catalina.core.AprLifecycleListener init
SEVERE: An incompatible version 1.1.29 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.30
APR Statistical data ....
Poll Statistics .........
Polls created           : 0
Polls destroyed         : 0
Polls cleared           : 0
Network Statistics ......
Sockets created         : 0
Sockets accepted        : 0
Sockets closed          : 0
Sockets cleared         : 0
Total send calls        : 0
Minimum send length     : 10000000
Maximum send length     : 0
Average send length     : -nan
Total recv calls        : 0
Minimum recv length     : 10000000
Maximum recv length     : 0
Average recv length     : -nan
Receive timeouts        : 0
Receive errors          : 0
Receive resets          : 0
Last receive error      : 0
Total sendfile calls    : 0
Minimum sendfile length : 10000000
Maximum sendfile length : 0
SSL Network Statistics ..
Sockets created         : 0
Sockets accepted        : 0
Sockets closed          : 0
Sockets cleared         : 0
APR Terminated
Sep 23, 2014 2:11:58 AM org.apache.catalina.core.AprLifecycleListener init
SEVERE: An incompatible version 1.1.29 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.30
APR Statistical data ....
Poll Statistics .........
Polls created           : 0
Polls destroyed         : 0
Polls cleared           : 0
Network Statistics ......
Sockets created         : 0
Sockets accepted        : 0
Sockets closed          : 0
Sockets cleared         : 0
Total send calls        : 0
Minimum send length     : 10000000
Maximum send length     : 0
Average send length     : -nan
Total recv calls        : 0
Minimum recv length     : 10000000
Maximum recv length     : 0
Average recv length     : -nan
Receive timeouts        : 0
Receive errors          : 0
Receive resets          : 0
Last receive error      : 0
Total sendfile calls    : 0
Minimum sendfile length : 10000000
Maximum sendfile length : 0
SSL Network Statistics ..
Sockets created         : 0
Sockets accepted        : 0
Sockets closed          : 0
Sockets cleared         : 0
APR Terminated
Sep 23, 2014 2:11:58 AM org.apache.catalina.core.AprLifecycleListener init
SEVERE: An incompatible version 1.1.29 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.30
APR Statistical data ....
Poll Statistics .........
Polls created           : 0
Polls destroyed         : 0
Polls cleared           : 0
Network Statistics ......
Sockets created         : 0
Sockets accepted        : 0
Sockets closed          : 0
Sockets cleared         : 0
Total send calls        : 0
Minimum send length     : 10000000
Maximum send length     : 0
Average send length     : -nan
Total recv calls        : 0
Minimum recv length     : 10000000
Maximum recv length     : 0
Average recv length     : -nan
Receive timeouts        : 0
Receive errors          : 0
Receive resets          : 0
Last receive error      : 0
Total sendfile calls    : 0
Minimum sendfile length : 10000000
Maximum sendfile length : 0
SSL Network Statistics ..
Sockets created         : 0
Sockets accepted        : 0
Sockets closed          : 0
Sockets cleared         : 0
APR Terminated
Sep 23, 2014 2:11:58 AM org.apache.catalina.core.AprLifecycleListener init
SEVERE: An incompatible version 1.1.29 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.30
APR Statistical data ....
Poll Statistics .........
Polls created           : 0
Polls destroyed         : 0
Polls cleared           : 0
Network Statistics ......
Sockets created         : 0
Sockets accepted        : 0
Sockets closed          : 0
Sockets cleared         : 0
Total send calls        : 0
Minimum send length     : 10000000
Maximum send length     : 0
Average send length     : -nan
Total recv calls        : 0
Minimum recv length     : 10000000
Maximum recv length     : 0
Average recv length     : -nan
Receive timeouts        : 0
Receive errors          : 0
Receive resets          : 0
Last receive error      : 0
Total sendfile calls    : 0
Minimum sendfile length : 10000000
Maximum sendfile length : 0
SSL Network Statistics ..
Sockets created         : 0
Sockets accepted        : 0
Sockets closed          : 0
Sockets cleared         : 0
APR Terminated
Sep 23, 2014 2:11:58 AM org.apache.catalina.core.AprLifecycleListener init
SEVERE: An incompatible version 1.1.29 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.30
APR Statistical data ....
Poll Statistics .........
Polls created           : 0
Polls destroyed         : 0
Polls cleared           : 0
Network Statistics ......
Sockets created         : 0
Sockets accepted        : 0
Sockets closed          : 0
Sockets cleared         : 0
Total send calls        : 0
Minimum send length     : 10000000
Maximum send length     : 0
Average send length     : -nan
Total recv calls        : 0
Minimum recv length     : 10000000
Maximum recv length     : 0
Average recv length     : -nan
Receive timeouts        : 0
Receive errors          : 0
Receive resets          : 0
Last receive error      : 0
Total sendfile calls    : 0
Minimum sendfile length : 10000000
Maximum sendfile length : 0
SSL Network Statistics ..
Sockets created         : 0
Sockets accepted        : 0
Sockets closed          : 0
Sockets cleared         : 0
APR Terminated
Sep 23, 2014 2:11:58 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Sep 23, 2014 2:11:58 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-42919"]
Sep 23, 2014 2:11:58 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 983 ms
Sep 23, 2014 2:11:58 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Sep 23, 2014 2:11:58 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.55
Sep 23, 2014 2:11:58 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Sep 23, 2014 2:11:58 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-42919"]
Sep 23, 2014 2:11:58 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 64 ms
Connected to server
[2014-09-23 02:11:59,386] Artifact perc-web:war exploded: Artifact is being deployed, please wait...
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000f6480000, 88604672, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 88604672 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /home/ivan/Documents/Tomcat/apache-tomcat-7.0.55/bin/hs_err_pid18653.log
Disconnected from the target VM, address: '127.0.0.1:60749', transport: 'socket'
Disconnected from server
[2014-09-23 02:12:04,177] Artifact perc-web:war exploded: Error during artifact deployment. See server log for details.

3voto

Mark Woon Points 146

Tomcat 7.0.55 requiert libtcnative-1 1.1.30, mais ce paquet n'est pas disponible dans les dépôts standards.

J'ai rétroporté libtcnative 1.1.31 pour Ubuntu 14.04, disponible à l'adresse suivante https://launchpad.net/~pharmgkb/+archive/ubuntu/trusty .

Vous pouvez le mettre à niveau avec :

> sudo add-apt-repository ppa:pharmgkb/trusty
> sudo apt-get update
> sudo apt-get upgrade libtcnative-1

SistemesEz.com

SystemesEZ est une communauté de sysadmins où vous pouvez résoudre vos problèmes et vos doutes. Vous pouvez consulter les questions des autres sysadmins, poser vos propres questions ou résoudre celles des autres.

Powered by:

X