An incompatible version 1.1.12 of the Apache Tomcat Native core library is installed, based on APR, and Tomcat requires version 1.1.17

I downloaded Apache Tomcat 7.x. When I add this Tomcat to Eclipse, I get this error:

Jan 25, 2011 3:21:05 PM org.apache.catalina.core.AprLifecycleListener init SEVERE: An incompatible version 1.1.12 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.17 Jan 25, 2011 3:21:05 PM org.apache.catalina.core.AprLifecycleListener init SEVERE: An incompatible version 1.1.12 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.17 Jan 25, 2011 3:21:05 PM org.apache.catalina.core.AprLifecycleListener init SEVERE: An incompatible version 1.1.12 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.17 Jan 25, 2011 3:21:05 PM org.apache.catalina.core.AprLifecycleListener init SEVERE: An incompatible version 1.1.12 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.17 Jan 25, 2011 3:21:05 PM org.apache.catalina.core.AprLifecycleListener init SEVERE: An incompatible version 1.1.12 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.17 Jan 25, 2011 3:21:08 PM org.apache.coyote.AbstractProtocolHandler init INFO: Initializing ProtocolHandler ["http-bio-8080"] Jan 25, 2011 3:21:08 PM org.apache.coyote.AbstractProtocolHandler init INFO: Initializing ProtocolHandler ["ajp-bio-8009"] Jan 25, 2011 3:21:08 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 3054 ms Jan 25, 2011 3:21:08 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina Jan 25, 2011 3:21:08 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.6 Jan 25, 2011 3:21:08 PM org.apache.coyote.AbstractProtocolHandler start INFO: Starting ProtocolHandler ["http-bio-8080"] Jan 25, 2011 3:21:08 PM org.apache.coyote.AbstractProtocolHandler start INFO: Starting ProtocolHandler ["ajp-bio-8009"] Jan 25, 2011 3:21:08 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 251 ms 

How can I solve this problem?

When I open localhost:8080/manager/html , it shows the following error:

 HTTP Status 404 - /manager/html type Status report message /manager/html description The requested resource (/manager/html) is not available. Apache Tomcat/7.0.6 
+4
source share
2 answers

The first error certainly sounds like a version mismatch. The APR library is a runtime library based on your path (in itself, it can be based on where you are running Tomcat). It looks like you have an APR library for Tomcat 6. Perhaps Eclipse provides this APR library.

Tomcat comes with an APR library, but to facilitate installation, Tomcat does not automatically change the path to a point in the APR library. Integration Eclipse Tomcat can (I'm not sure about this, haven't used integration before), including the APR libraries, to make Tomcat easier to use.

Check and make sure that Eclipse is not configured to use an earlier version of Tomcat, and if so, either upgrade Eclipse to Tomcat 7, or downgrade Tomcat to the version specified in Eclipse.

If you cannot understand this, then you do not have to worry about it at the moment. Tomcat should work anyway without the APR libraries. The only benefit you get from the APR libraries is increased productivity, as this is probably the beginning of your project, which does not need to be developed immediately.

The second problem, / manager / page, might be the Tomcat configuration. Tomcat does not actually display the manager page (and this will give you this error), unless users are configured with administrator privileges .

Try just / (i.e. http: // localhost: 8080 ), this page should load regardless of user configuration.

+5
source

In my case, I accidentally installed the APR library when I installed Tomcat locally on my Linux using the package manager. On Debian / Ubuntu, this installed the APR package for another version of Tomcat (bundled with your distribution) that caused this error.

After just

 sudo apt-get purge libtcnative-1 

The error has disappeared.

+2
source

Source: https://habr.com/ru/post/1336935/


All Articles