방화벽 확인 및 설정명령어
firewall-cmd --list-ports (포트확인)
허용된 포트번호가 나온다
firewall-cmd --add-port=3306/tcp –permanent (포트추가)
firewall-cmd --reload (포트저장)
firewall-cmd --list-ports (포트확인)
추가된 포트번호를 확인할수 있다.
에러로그 확인하기
에러확인 jsp
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>에러 페이지</title>
</head>
<body>
<h1>Error Details:</h1>
<p>Error Type: ${exception.getClass().getName()}</p>
<p>Error Message: <b>${exception.message}</b></p>
<p>Stack Trace:</p>
<pre>
${fn:escapeXml(exception.stackTrace)}
</pre>
</body>
</html>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>에러 페이지</title>
</head>
<body>
<h1>Error Details:</h1>
<p>Error Message: <b>${exception.message}</b></p>
</body>
</html>
Eroor Message 부분에 어떤 에러가 떳는지 확인 할수 있다.
/WEB-INF/jsp/egovframework/com/cmm/error 경로는 여기이다.
(전자정부프레임워크 기반)
확인한 오류
오류 1번)
Error Message: Could not open JDBC Connection for transaction; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Client does not support authentication protocol requested by server; consider upgrading MySQL client)
해결)
mysql로 접속하여 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '비밀번호';
오류 2번)
Error Message: Could not open JDBC Connection for transaction; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Unknown initial character set index '255' received from server. Initial client character set can be forced via the 'characterEncoding' property.)
해결) my.cnf에서 character-set-server= utf8 을 추가하여 오류 해결
오류3번) Error Message: Could not open JDBC Connection for transaction; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied for user 'root'@'localhost' (using password: YES))
-cd /WEB-INF/classes/egovframework/egovProps
- vi globals.properties
Globals.Password = mysql root비밀번호 입력
|
해결후 로그인 페이지가 떳다!
하지만..로그인이 안됨 ㅎㅎ
'Linux' 카테고리의 다른 글
리눅스 톰캣 자동재시작 , 그리고 java , class 권한 문제 (0) | 2024.01.26 |
---|---|
centOS9 -stream 프로젝트 설치 3)- jdk,tomcat 설정 (0) | 2023.08.02 |
centOS9 -stream 프로젝트 설치 2)- mysql 설치과정 (0) | 2023.08.02 |
centOS9 -stream 프로젝트 설치 1)- iso설치과정 (0) | 2023.08.02 |
CentOS7버전 프로그램설치 cmake,mysql,tomcat (0) | 2023.06.20 |