Programing

Eclipse에서 Tomcat 8.5.x 및 TomEE 7.x를 사용하는 방법은 무엇입니까?

crosscheck 2020. 9. 7. 07:40
반응형

Eclipse에서 Tomcat 8.5.x 및 TomEE 7.x를 사용하는 방법은 무엇입니까?


Eclipse에서 Tomcat 8.5.x 서버 버전 을 설정해야합니다 . Eclipse GUI를 사용하여 서버를 만들려고 할 때 Eclipse Luna에서 최신 버전 인 " Apache Tomcat v8.0 " 을 선택합니다 . 이 항목을 선택하고 Tomcat 8.5.x 서버로 이동하면 다음 차단 오류 메시지가 표시됩니다.

이 디렉토리에 설치된 Apache Tomcat은 버전 8.5.0입니다. Tomcat 8.0 설치가 필요합니다.

내부적으로 Tomcat 8.5를 기반으로하는 TomEE 7.x를 시도 할 때 동일한 오류가 나타납니다.

에서 이클립스 네온 선택 등의 최신 버전은 " 아파치 톰캣 V9.0 "과 같은 오류를 제공합니다. " Apache Tomcat v8.5 "옵션도 없습니다.

Eclipse에서 Tomcat 8.5 및 TomEE 7.x 를 사용하는 방법이 있습니까? 어떻게?


catalina.jarWTP 어댑터가 보는 버전 번호이므로 패치해야합니다 . 그것은 매우 쓸모없는 검사이며 어댑터를 사용하면 어쨌든 서버를 시작할 수 있지만 아직 아무도 그것을 알지 못합니다.

수년 동안 모든 Tomcat 버전에서 이것은 항상 문제입니다.

패치하려면 다음을 수행하십시오.

  • cd [tomcat or tomee home]/lib
  • mkdir catalina
  • cd catalina/
  • unzip ../catalina.jar
  • vim org/apache/catalina/util/ServerInfo.properties

다음과 같은지 확인합니다 (버전 번호는 모두 8.0으로 시작해야 함).

server.info=Apache Tomcat/8.0.0
server.number=8.0.0
server.built=May 11 2016 21:49:07 UTC

그때:

  • jar uf ../catalina.jar org/apache/catalina/util/ServerInfo.properties
  • cd ..
  • rm -rf catalina

Eclipse 용 패치가 있습니다 :
https://bugs.eclipse.org/bugs/attachment.cgi?id=262418&action=edit

이 패치를 다운로드 하여 Eclipse 설치 플러그인 디렉토리에 넣으십시오. 기본 " org.eclipse.jst.server.tomcat.core_1.1.800.v201602282129.jar "을 대체합니다 .

참고
이 패치를 추가 한 후에는 "선택해야 아파치 톰캣 V9.0을 이클립스에서 서버 런타임 환경을 추가 할 때"( 환경 설정> 서버> 런타임 환경 ).
즉,이 패치를 사용하면 Apache Tomcat v.9.0 런타임 환경을 추가 할 때 Tomcat 버전 9.x 또는 Tomcat 버전 8.5.x를 선택할 수 있습니다.


자세한 내용은 관련 버그 보고서 페이지에서 확인할 수 있습니다 : https://bugs.eclipse.org/bugs/show_bug.cgi?id=494936


들어 톰캣 8.5.x 사용자

Tomcat 파일의 파일 변경 해야 합니다.ServerInfo.properties/lib/catalina.jar

ServerInfo.properties 파일에는 다음 코드가 포함되어 있습니다.

server.info=Apache Tomcat/8.5.4
server.number=8.5.4.0
server.built=Jul 6 2016 08:43:30 UTC

그냥 열 ServerInfo.properties를 열어 파일을 catalina.jar함께 WinRAR과 당신의에서 Tomcat의 lib 디렉토리 폴더

ServerInfo.properties에서 파일 위치 catalina.jarIS/org/apache/catalina/util/ServerInfo.properties

주의 사항 : shutdown 이러한 작업을 수행하기 전에 Tomcat 서버 (cmd에 의해 이미 열려있는 경우) 그렇지 않으면 파일이 변경되지 않고 winrar 에 오류가 표시됩니다.

그런 다음 다음 코드를 변경하십시오. ServerInfo.properties

server.info=Apache Tomcat/8.0.8.5.4
server.number=8.5.4.0
server.built=Jul 6 2016 08:43:30 UTC

일식을 다시 시작하십시오 (열린 경우). 이제 작동합니다 ...

ScreenShot of eclipse


현재 Eclipse Neon 서비스 릴리스를  사용할 수 있습니다 . 따라서 누군가가 여전히이 문제에 직면하면

도움말 → 업데이트 확인

and install provided updates.


This workaround worked for me. I edited the serverInfo.properties file as given below:

server.info=Apache Tomcat/8.0.0
server.number=8.0.0.0
server.built=Oct 6 2016 20:15:31 UTC

Install the latest version of eclipse(). It would have the option to add Tomcat 8.5.


Go to the preview version of tomcat e.g. : tomcat 8.3 and copy catalina.jar file and paste into the existing tomcat which you have facing the issue


I had similar issues with Eclipse Kepler v3.8 I had tomcat v8.5.37 installed. I couldn't see Apache v8.5 as an option. By skimming through StackOverflow I found Apache v9.0 is available on Eclipse Neon. Cool thing is you don't have to change your eclipse version. In your current Eclipse. Download WTP(Web Tools Package) by following the steps:

Step 1: Help >>> Install New Software. Copy this link in the Work with: http://download.eclipse.org/webtools/repository/neon

Step 2: Select JST Server Adapters and JST Server Adapters Extensions from the first package you see. Install those.

Step 3: Windows >>> Preferences >>> Server >>> Runtime Environments >>> Add..

You'll see Apache v9.0 there! It works!


Forgive me for invoking old problem. But it is like legendary, always happen for new users. The reason I am here is I want to purpose different answer. Rather simple. Please fo to windows->preference->Runtime Environment->search and select the folder where you download the server. It will automatically detect the server and you are good to go.

참고URL : https://stackoverflow.com/questions/37024876/how-to-use-tomcat-8-5-x-and-tomee-7-x-with-eclipse

반응형