목록톰캣 (3)
코딩마을방범대

war 파일을 실행시킬 땐 일반적으로 java -jar 명령어를 이용한다.하지만 디버깅 모드가 필요할 경우 war가 아닌 프로젝트 소스 코드가 필요하다.소스 코드를 확인하는 방법부터 프로젝트로 생성하는 방법까지 진행해볼 예정이다.(디컴파일 시 빌드 파일은 확인이 불가하므로, 정확한 프로젝트 복구는 불가하다.) WAR 파일의 소스 코드 추출하기 war 파일의 소스 코드를 확인하는 방법에는 여러가지가 있다. 1. war 파일의 확장자를 zip 파일로 변경해준 뒤 압축 해제 압축 해제 시 WEB-INF 폴더에 필요한 파일들이 들어가 있었다.classes에는 실질적인 프로젝트 소스들이 들어가있고, lib에는 필요한 라이브러리들이 jar 파일로 들어있다.하지만 이와 같이 소스 코드를 얻을 경우 파일명.cla..

기존 war 파일 배포 시 yml을 못 찾아 잘 설정된 데이터베이스 url을 못 읽는 등의 문제가 발생했다 아래와 같이 잘 설정된 url도, profiles도 찾지 못해 엄청난 오류 로그가 떴다. *************************** APPLICATION FAILED TO START *************************** Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class Action: Consider the fol..
tomcat 서버 구동 시 메모리릭 발생 1. 현재 tomcat pid값 확인 $ sudo ps -aux | grep tomcat tomcat 6052 6.2 10.0 7987608 1625540 ? Sl 15:07 3:46 //bin/java -Djava.util.logging.config.file=/data/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xmx2048m -Xms2048m -XX:PermSize=1024m -XX:MaxPermSize=1024m -XX:NewSize=512m -XX:MaxNewSize=1024m -XX:ParallelGCThreads=2 -XX..