회사에서 사용하려는 open JDK는 Azul 의 Java 11 입니다.

첫 사업이라 미리 공부할겸해서 로컬로 환경설정하는 도중 Open JDK 설정도 하고,

만났던 오류 해결 방법을 정리 해보겠습니다.

 

www.azul.com/downloads/zulu-community/?architecture=x86-64-bit&package=jdk

 

Download OpenJDK Open Source Java Zulu Linux Windows macOS

Download Java 11 Zulu OpenJDK Linux Windows macOS Solaris Update open source Java Alpine Java SE free download Java 8 Java 7 Java 6 JDK

www.azul.com

 

jdk버전에 맞는 apache Tomcat 버전 확인

 

http://tomcat.apache.org/whichversion.html

 

Apache Tomcat® - Which Version Do I Want?

Apache Tomcat® is an open source software implementation of a subset of the Jakarta EE (formally Java EE) technologies. Different versions of Apache Tomcat are available for different versions of the specifications. The mapping between the specifications

tomcat.apache.org

결론은 상관없습니다 ㅎㅎㅎㅎㅎ 그래서 최신 버전인 9로 설치,

 

https://tomcat.apache.org/download-90.cgi

 

Apache Tomcat® - Apache Tomcat 9 Software Downloads

Welcome to the Apache Tomcat® 9.x software download page. This page provides download links for obtaining the latest version of Tomcat 9.0.x software, as well as links to the archives of older releases. Unsure which version you need? Specification version

tomcat.apache.org

 

*자바 환경변수는 꼭 잡으셔야 됩니다.

 

sts 에서 maven 프로젝트 생성하는데 archtype은 (maven-archtype-web)으로 생성.

그리고 JRE 설정

 

 

 

1. HttpServlet 오류

 

server 창 열기

window - show view - other 에서 검색해서 찾기

다운 받은 apache 서버 설정

servers tab 에서 다운 받은 apache 버전 설정

중요! 꼭 JRE는 OpenJDK로 설정 해주기!!

 

 tomcat 설치 된 경로 잡아주고 JRE 꼭 OpenJDK로 잡아주기

프로젝트 설정에서 Java 버전 다시 잡아주고, Runtime 설정 해주기

Runtimes 에서 설정잡은 tomcat 체크 하기

 

 

2. Port 오류

 

이후 실행 하면 사진과 같이 오류가 뜬다,

포트에 문제가 있습니다?

포트 설정이 안잡혀서 오류가 뜨는것이기에 포트 잡아주고, 포트는 현재 사용중인 포트 말고 잡아 줍니다.

 

Tomcat admin port 설정 해주기

 

netstat -ano 로 사용중인 프로토콜 확인

 

 

 

그럼 이후 정상적으로 동작합니다.

 

그럼 화이팅

+ Recent posts