Created attachment 6921 [details] tomcat-native.spec file for version 1.1.32 Description of problem: Tomcat reports : SEVERE: An incompatible version 1.1.29 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.32 Version-Release number of selected component (if applicable): tomcat-7.0.59-2.mga5 lib64tcnative1-1.1.29-4.mga5 lib64tcnative1-devel-1.1.29-4.mga5 How reproducible: Always Steps to Reproduce: 1. Install tomcat from rpm 2. Install lib64tcnative1 3. Tomcat reports error about version mismatch Easy step to rebuild : install rpm-build edit tomcat-native.spec download source from http://archive.apache.org/dist/tomcat/tomcat-connectors/native/ rebuild rpm and install newly created rpm
Priority: Normal => LowSeverity: normal => minor
Thanks for the report. If you use the current version of tomcat-native, 1.1.33, with tomcat 7.0.59, does that also work?
CC: (none) => luigiwalser
Yes, that also work.
Thanks again! Please test the updated packages if you can. Updated packages uploaded for Mageia 4, Mageia 5, and Cauldron. Advisory: ---------------------------------------- The tomcat-native package has been to version 1.1.33, which is needed for compatibility with the updated Tomcat package from MGASA-2015-0081. References: http://tomcat.apache.org/native-doc/miscellaneous/changelog.html http://advisories.mageia.org/MGASA-2015-0081.html ---------------------------------------- Updated packages in core/updates_testing: ---------------------------------------- libtcnative1-1.1.33-1.mga4 libtcnative1-devel-1.1.33-1.mga4 libtcnative1-1.1.33-1.mga5 libtcnative1-devel-1.1.33-1.mga5 from SRPMS: tomcat-native-1.1.33-1.mga4.src.rpm tomcat-native-1.1.33-1.mga5.src.rpm
Assignee: bugsquad => qa-bugsWhiteboard: (none) => MGA4TOO
Summary: Tomcat Native should be version 1.1.32 to => Tomcat Native should be version 1.1.32 to 1.1.33 for compatibility with Tomcat 7.0.59Source RPM: (none) => tomcat-native
Everything is OK :)
(In reply to Romain MARIADASSOU from comment #4) > Everything is OK :) Thanks. Which Mageia version and architecture did you test? Also, where exactly do you see the error about the version mismatch?
I did test on Mageia 5 x86_64.
Whiteboard: MGA4TOO => MGA4TOO MGA5-64-OK
I saw error on logs for tomcat and he reported about not optimal performance in production environments : août 10 22:47:57 neptune.gefor.loc server[6806]: INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib So I installed tomcat-native / APR and then tomcat (after restart) said : août 10 23:33:42 neptune.gefor.loc server[17502]: SEVERE: An incompatible version 1.1.29 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.32 Once version 1.1.32 installed, tomcat said : août 10 23:50:00 neptune.gefor.loc server[22993]: INFO: Loaded APR based Apache Tomcat Native library 1.1.32 using APR version 1.5.1. août 10 23:50:00 neptune.gefor.loc server[22993]: INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. And with your version, tomcat is happy too : août 11 18:56:43 neptune.gefor.loc server[8217]: INFO: Loaded APR based Apache Tomcat Native library 1.1.33 using APR version 1.5.1. août 11 18:56:43 neptune.gefor.loc server[8217]: INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
Thanks for the details. Which log was that seen in?
with systemd : journalctl --no-pager --all -f -u tomcat
Whiteboard: MGA4TOO MGA5-64-OK => MGA4TOO has_procedure MGA5-64-OK
Trying Mageia 5 x64, no go. Following Description & Comment 9, I installed: tomcat-el-2.2-api-7.0.59-2.mga5 tomcat-7.0.59-2.mga5 tomcat-jsp-2.2-api-7.0.59-2.mga5 tomcat-servlet-3.0-api-7.0.59-2.mga5 tomcat-lib-7.0.59-2.mga5 & lib64tcnative1-1.1.29-4.mga5 # tomcat start [no visible errors] # journalctl --no-pager --all -f -u tomcat Aws 14 19:51:39 localhost.localdomain server[29097]: Aug 14, 2015 7:51:39 PM org.apache.catalina.core.StandardService startInternal Aws 14 19:51:39 localhost.localdomain server[29097]: INFO: Starting service Catalina + other neutral/INFO messages down to Aws 14 19:51:39 localhost.localdomain server[29097]: Aug 14, 2015 7:51:39 PM org.apache.catalina.startup.Catalina start Aws 14 19:51:39 localhost.localdomain server[29097]: INFO: Server startup in 187 ms What do I need to do to see the error reported? Sorry, Tomcat is completely unknown to me.
CC: (none) => lewyssmith
I installed Apache solr 4.10.4 which use tomcat-native. Tomcat alone does not seem the need of tomcat-native. You can install solr to test the reported error like this : Get solr : wget https://archive.apache.org/dist/lucene/solr/4.10.4/solr-4.10.4.tgz -O /tmp/solr-4.10.4.tgz Extract to /opt : tar -zxvf /tmp/solr-4.10.4.tgz -C /opt/ Create an XML file /etc/tomcat/Catalina/localhost/solr.xml containing : <?xml version="1.0" encoding="utf-8"?> <Context docBase="/opt/solr-4.10.4/dist/solr-4.10.4.war" debug="0" crossContext="true"> <Environment name="solr/home" type="java.lang.String" value="/opt/solr-4.10.4/example/solr" override="true"/> <Loader className="org.apache.catalina.loader.VirtualWebappLoader" virtualClasspath="/opt/solr-4.10.4/example/lib/ext/*.jar;/opt/solr-4.10.4/example/resources/" /> </Context> Restart tomcat and you should see info about APR.
First, a big thanks to Romain for the specific info in Comment 11. Trying *Mageia 4* x64 (will re-do 5 later), with Tomcat installed: tomcat-el-2.2-api-7.0.59-1.mga4 tomcat-servlet-3.0-api-7.0.59-1.mga4 tomcat-jsp-2.2-api-7.0.59-1.mga4 and trying to add the release libtcnative1 gives: # urpmi libtcnative1 Dim pecyn o'r enw libtcnative1 [No packet of this name] and indeed trying Add/Remove Software does not show it either! Remember, this is M4. I suppose I could simply install libtcnative1-1.1.33-1.mga4 from Updates Testing and ensure that the error does not happen re Comment 1, Comment 11. OTOH If this packet does not exist for Mageia 4, it cannot be installed - nor updateable - anywhere. Remove MGA4TOO from the Whiteboard?
As usual, if you're on x86_64, it's lib64tcnative1.
(In reply to David Walser from comment #13) > As usual, if you're on x86_64, it's lib64tcnative1. Of course. Silly me! Trying Mageia 4 x64 (thanks for super Comment 11 copy/paste instructions) tomcat-7.0.59-1.mga4 lib64tcnative1-1.1.29-2.mga4 solr installed as per Comment 11. -rw-r--r-- 1 root root 422 Aws 15 21:39 /etc/tomcat/Catalina/localhost/solr.xml as per Comment 11. But even after a re-boot, # tomcat start # journalctl --no-pager --all -f -u tomcat yields *without* the SEVERE error warning, nor any mention of APR [I give this O/P in case it helps]: -- Logs begin at Maw 2014-10-07 21:12:25 CEST. -- Aws 15 21:46:05 localhost.localdomain server[2263]: 10619 [localhost-startStop-1] INFO org.apache.solr.servlet.SolrDispatchFilter ? SolrDispatchFilter.init() done Aws 15 21:46:05 localhost.localdomain server[2263]: Aug 15, 2015 9:46:05 PM org.apache.catalina.startup.HostConfig deployDescriptor Aws 15 21:46:05 localhost.localdomain server[2263]: INFO: Deployment of configuration descriptor /etc/tomcat/Catalina/localhost/solr.xml has finished in 26,081 ms Aws 15 21:46:05 localhost.localdomain server[2263]: Aug 15, 2015 9:46:05 PM org.apache.coyote.AbstractProtocol start Aws 15 21:46:05 localhost.localdomain server[2263]: INFO: Starting ProtocolHandler ["http-bio-8080"] Aws 15 21:46:05 localhost.localdomain server[2263]: Aug 15, 2015 9:46:05 PM org.apache.coyote.AbstractProtocol start Aws 15 21:46:05 localhost.localdomain server[2263]: INFO: Starting ProtocolHandler ["ajp-bio-8009"] Aws 15 21:46:05 localhost.localdomain server[2263]: Aug 15, 2015 9:46:05 PM org.apache.catalina.startup.Catalina start Aws 15 21:46:05 localhost.localdomain server[2263]: INFO: Server startup in 27386 ms Aws 15 21:46:30 localhost.localdomain systemd[1]: Started Apache Tomcat Web Application Container. I am probably doing something wrong, or have omitted something.
Hum that's strange, I have test the tomcat on Mageia 4 x86_64, and I have the nearly same information on a fresh tomcat install. But tomcat does not see tomcat-native - see below. Step to reproduce on Mageia 4 x86_64 : urpmi tomcat Then verify my rpms installed with urpmi : rpm -qa | grep tomcat | sort and it give me : tomcat-7.0.59-1.mga4 tomcat-el-2.2-api-7.0.59-1.mga4 tomcat-jsp-2.2-api-7.0.59-1.mga4 tomcat-lib-7.0.59-1.mga4 tomcat-servlet-3.0-api-7.0.59-1.mga4 Test 1 : ---------- I start tomcat and watch on another console (note that I have not intalled solr at this time) - console 1 : service tomcat start - console 2 : journalctl --no-pager --all -f -u tomcat journalctl (full) output (info about APR are seen) : [root@radon ~]# journalctl --no-pager --all -f -u tomcat -- Logs begin at jeu. 2015-04-09 23:05:01 CEST. -- août 22 21:32:27 radon.crgimmo.loc systemd[1]: Starting Apache Tomcat Web Application Container... août 22 21:32:27 radon.crgimmo.loc systemd[1]: Started Apache Tomcat Web Application Container. août 22 21:32:27 radon.crgimmo.loc server[10157]: Java virtual machine used: /usr/lib/jvm/jre/bin/java août 22 21:32:27 radon.crgimmo.loc server[10157]: classpath used: /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar août 22 21:32:27 radon.crgimmo.loc server[10157]: main class used: org.apache.catalina.startup.Bootstrap août 22 21:32:27 radon.crgimmo.loc server[10157]: flags used: août 22 21:32:27 radon.crgimmo.loc server[10157]: options used: -Dcatalina.base=/usr/share/tomcat -Dcatalina.home=/usr/share/tomcat -Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat/temp -Djava.util.logging.config.file=/usr/share/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager août 22 21:32:27 radon.crgimmo.loc server[10157]: arguments used: start août 22 21:32:30 radon.crgimmo.loc server[10157]: Aug 22, 2015 9:32:30 PM org.apache.catalina.startup.VersionLoggerListener log août 22 21:32:30 radon.crgimmo.loc server[10157]: INFO: Server version: Apache Tomcat/7.0.59 août 22 21:32:30 radon.crgimmo.loc server[10157]: Aug 22, 2015 9:32:30 PM org.apache.catalina.startup.VersionLoggerListener log août 22 21:32:30 radon.crgimmo.loc server[10157]: INFO: Server built: Feb 16 2015 12:06:09 UTC août 22 21:32:30 radon.crgimmo.loc server[10157]: Aug 22, 2015 9:32:30 PM org.apache.catalina.startup.VersionLoggerListener log août 22 21:32:30 radon.crgimmo.loc server[10157]: INFO: Server number: 7.0.59.0 août 22 21:32:30 radon.crgimmo.loc server[10157]: Aug 22, 2015 9:32:30 PM org.apache.catalina.startup.VersionLoggerListener log août 22 21:32:30 radon.crgimmo.loc server[10157]: INFO: OS Name: Linux août 22 21:32:30 radon.crgimmo.loc server[10157]: Aug 22, 2015 9:32:30 PM org.apache.catalina.startup.VersionLoggerListener log août 22 21:32:30 radon.crgimmo.loc server[10157]: INFO: OS Version: 3.14.43-server-1.mga4 août 22 21:32:30 radon.crgimmo.loc server[10157]: Aug 22, 2015 9:32:30 PM org.apache.catalina.startup.VersionLoggerListener log août 22 21:32:30 radon.crgimmo.loc server[10157]: INFO: Architecture: amd64 août 22 21:32:30 radon.crgimmo.loc server[10157]: Aug 22, 2015 9:32:30 PM org.apache.catalina.startup.VersionLoggerListener log août 22 21:32:30 radon.crgimmo.loc server[10157]: INFO: Java Home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.79-2.5.5.1.mga4.x86_64/jre août 22 21:32:30 radon.crgimmo.loc server[10157]: Aug 22, 2015 9:32:30 PM org.apache.catalina.startup.VersionLoggerListener log août 22 21:32:30 radon.crgimmo.loc server[10157]: INFO: JVM Version: 1.7.0_79-iurt_2015_04_15_13_07-b00 août 22 21:32:30 radon.crgimmo.loc server[10157]: Aug 22, 2015 9:32:30 PM org.apache.catalina.startup.VersionLoggerListener log août 22 21:32:30 radon.crgimmo.loc server[10157]: INFO: JVM Vendor: Oracle Corporation août 22 21:32:30 radon.crgimmo.loc server[10157]: Aug 22, 2015 9:32:30 PM org.apache.catalina.startup.VersionLoggerListener log août 22 21:32:30 radon.crgimmo.loc server[10157]: INFO: CATALINA_BASE: /usr/share/tomcat août 22 21:32:30 radon.crgimmo.loc server[10157]: Aug 22, 2015 9:32:30 PM org.apache.catalina.startup.VersionLoggerListener log août 22 21:32:30 radon.crgimmo.loc server[10157]: INFO: CATALINA_HOME: /usr/share/tomcat août 22 21:32:30 radon.crgimmo.loc server[10157]: Aug 22, 2015 9:32:30 PM org.apache.catalina.startup.VersionLoggerListener log août 22 21:32:30 radon.crgimmo.loc server[10157]: INFO: Command line argument: -Dcatalina.base=/usr/share/tomcat août 22 21:32:30 radon.crgimmo.loc server[10157]: Aug 22, 2015 9:32:30 PM org.apache.catalina.startup.VersionLoggerListener log août 22 21:32:30 radon.crgimmo.loc server[10157]: INFO: Command line argument: -Dcatalina.home=/usr/share/tomcat août 22 21:32:30 radon.crgimmo.loc server[10157]: Aug 22, 2015 9:32:30 PM org.apache.catalina.startup.VersionLoggerListener log août 22 21:32:30 radon.crgimmo.loc server[10157]: INFO: Command line argument: -Djava.endorsed.dirs= août 22 21:32:30 radon.crgimmo.loc server[10157]: Aug 22, 2015 9:32:30 PM org.apache.catalina.startup.VersionLoggerListener log août 22 21:32:30 radon.crgimmo.loc server[10157]: INFO: Command line argument: -Djava.io.tmpdir=/var/cache/tomcat/temp août 22 21:32:30 radon.crgimmo.loc server[10157]: Aug 22, 2015 9:32:30 PM org.apache.catalina.startup.VersionLoggerListener log août 22 21:32:30 radon.crgimmo.loc server[10157]: INFO: Command line argument: -Djava.util.logging.config.file=/usr/share/tomcat/conf/logging.properties août 22 21:32:30 radon.crgimmo.loc server[10157]: Aug 22, 2015 9:32:30 PM org.apache.catalina.startup.VersionLoggerListener log août 22 21:32:30 radon.crgimmo.loc server[10157]: INFO: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager août 22 21:32:30 radon.crgimmo.loc server[10157]: Aug 22, 2015 9:32:30 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent août 22 21:32:30 radon.crgimmo.loc server[10157]: INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib août 22 21:32:30 radon.crgimmo.loc server[10157]: Aug 22, 2015 9:32:30 PM org.apache.coyote.AbstractProtocol init août 22 21:32:30 radon.crgimmo.loc server[10157]: INFO: Initializing ProtocolHandler ["http-bio-8080"] août 22 21:32:30 radon.crgimmo.loc server[10157]: Aug 22, 2015 9:32:30 PM org.apache.coyote.AbstractProtocol init août 22 21:32:30 radon.crgimmo.loc server[10157]: INFO: Initializing ProtocolHandler ["ajp-bio-8009"] août 22 21:32:30 radon.crgimmo.loc server[10157]: Aug 22, 2015 9:32:30 PM org.apache.catalina.startup.Catalina load août 22 21:32:30 radon.crgimmo.loc server[10157]: INFO: Initialization processed in 1521 ms août 22 21:32:30 radon.crgimmo.loc server[10157]: Aug 22, 2015 9:32:30 PM org.apache.catalina.core.StandardService startInternal août 22 21:32:30 radon.crgimmo.loc server[10157]: INFO: Starting service Catalina août 22 21:32:30 radon.crgimmo.loc server[10157]: Aug 22, 2015 9:32:30 PM org.apache.catalina.core.StandardEngine startInternal août 22 21:32:30 radon.crgimmo.loc server[10157]: INFO: Starting Servlet Engine: Apache Tomcat/7.0.59 août 22 21:32:30 radon.crgimmo.loc server[10157]: Aug 22, 2015 9:32:30 PM org.apache.coyote.AbstractProtocol start août 22 21:32:30 radon.crgimmo.loc server[10157]: INFO: Starting ProtocolHandler ["http-bio-8080"] août 22 21:32:30 radon.crgimmo.loc server[10157]: Aug 22, 2015 9:32:30 PM org.apache.coyote.AbstractProtocol start août 22 21:32:31 radon.crgimmo.loc server[10157]: INFO: Starting ProtocolHandler ["ajp-bio-8009"] août 22 21:32:31 radon.crgimmo.loc server[10157]: Aug 22, 2015 9:32:31 PM org.apache.catalina.startup.Catalina start août 22 21:32:31 radon.crgimmo.loc server[10157]: INFO: Server startup in 53 ms Test 2 : ---------- if I install lib64tcnative1 (1.1.29-2.mga4) from Core media on Mageia 4 x86_64 : journalctl say nearly the same information (like if tomcat-native wasn't installed) : août 22 21:41:13 radon.crgimmo.loc server[11480]: INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib Test 3 : ---------- If I install lib64tcnative1 (1.1.33-1.mga4) from Update testing media on Mageia 4 x86_64 : journalctl say nearly the same information (like if tomcat-native wasn't installed) : août 22 21:44:07 radon.crgimmo.loc server[11849]: INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib Test 4 : ---------- If I install Apache solr, I have the same information like on Test 2 and 3 For me, tomcat on mga4 does not see tomcat-natice (any version), may be it is another bug. I will redo installation on another mga5 and mga4 in some weeks (I m on holiday).
Trying again MGA4 x64 Just re-running things pre-update as per Comment 14, with solr installed, results were the same. Stopped tomcat, applied the update: lib64tcnative1-1.1.33-1.mga4 Re-did: # service tomcat start Redirecting to /bin/systemctl start tomcat.service # journalctl --no-pager --all -f -u tomcat which gave the same output, except that it stops at: localhost.localdomain server[7138]: INFO: Server startup in 22322 ms not getting as far as the previous end line: localhost.localdomain systemd[1]: Started Apache Tomcat Web Application Container. I give up on this beyond saying that the update itself caused no grief.
If the issue can't be reproduced, then as long as there's no installations issues, let's push this.
Whiteboard: MGA4TOO has_procedure MGA5-64-OK => MGA4TOO has_procedure MGA5-64-OK MGA4-64-OK
Validating. After someone uploads the advisory to SVN, can be pushed.
Keywords: (none) => validated_updateCC: (none) => sysadmin-bugs
Advisory uploaded.
Whiteboard: MGA4TOO has_procedure MGA5-64-OK MGA4-64-OK => MGA4TOO has_procedure MGA5-64-OK MGA4-64-OK advisory
An update for this issue has been pushed to Mageia Updates repository. http://advisories.mageia.org/MGAA-2015-0105.html
Status: NEW => RESOLVEDResolution: (none) => FIXED