2011-01-25 2 views
4

Apache Tomcat 7.x를 다운로드했습니다. 이 Tomcat을 이클립스에 추가하면이 오류가 발생합니다.APR 기반 Apache Tomcat 네이티브 라이브러리의 호환되지 않는 버전 1.1.12가 설치되었지만 Tomcat 버전 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: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 

이 문제를 어떻게 해결할 수 있습니까?

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 

답변

5

첫 번째 오류는 확실히 버전이 일치 같은 소리 : 나는 localhost:8080/manager/html을 열 때

는 다음과 같은 오류를 보여줍니다. APR 라이브러리는 경로를 기반으로 런타임에 링크 된 라이브러리입니다 (Tomcat을 실행하는 위치를 기반으로 할 수 있음). Tomcat 6 용 APR 라이브러리가있는 것 같습니다. Eclipse가이 APR 라이브러리를 제공 할 가능성이 있습니다.

Tomcat은 APR 라이브러리와 함께 제공되지만 설치를 쉽게하기 위해 Tomcat은 APR 라이브러리를 가리키는 경로를 자동으로 수정하지 않습니다. 이클립스 톰캣 통합은 Tomcat을 더 쉽게 사용할 수 있도록하기 위해 APR 라이브러리를 포함한다.

Eclipse가 이전 버전의 Tomcat을 사용하도록 구성되어 있지 않은지 확인하고 Eclipse가 Tomcat 7로 업그레이드하거나 Tomcat을 Eclipse에서 지정된 버전으로 다운 그레이드하십시오.

알아낼 수 없다면 지금 당장 걱정할 필요는 없습니다. Tomcat은 APR 라이브러리 없이도 작동해야합니다. APR 라이브러리에서 얻을 수있는 유일한 이점은 성능 향상이며 곧 프로젝트를 시작할 필요가 없으므로 성능이 향상됩니다.

두 번째 문제점 인/manager/page는 Tomcat 구성 일 수 있습니다. 사용자가 manager permissions으로 구성되어 있지 않으면 Tomcat이 관리자 페이지를 실제로 표시하지 않습니다 (오류가 발생합니다).

/(즉, http://localhost:8080)로 이동해보십시오. 페이지가 사용자 구성에 관계없이로드되어야합니다.

2

내 경우에는 패키지 관리자를 사용하여 Linux에 로컬로 Tomcat을 한 번 설치하면 실수로 APR 라이브러리가 설치되었습니다. Debian/Ubuntu에서는이 오류의 원인이 된 다른 Tomcat 버전 (배포본에 번들 된 버전) 용 APR 패키지를 설치했습니다. 단순히

sudo apt-get purge libtcnative-1 

오류가 사라졌다 후

.

+0

이것은 나를 위해 일했습니다. 감사! – siphiuel

관련 문제