본문 바로가기
WEB|WAS/Tomcat

was war 배포시 갑자기 jsp 페이지 못찾을 때 2가지 방법

by 개폰지밥 2021. 6. 8.
반응형

War로 올린 웹 페이지가 잘 동작하다가 특정 웹 페이지를 불러오지 못하는 에러가 발생함.

- 로그 내용 예시:

17:05:32.815] DEBUG [https-jsse-nio-8443-exec-9] com.fido.common.filter.SessionFilter isExcludeURL - /magicfido2admin/system-site-list.do
[17:05:32.816] DEBUG [https-jsse-nio-8443-exec-9] com.fido.common.filter.SessionFilter isAllowedDomain - param TBLSETNAME = null
[17:05:32.816] DEBUG [https-jsse-nio-8443-exec-9] com.fido.common.filter.SuperAdminFilter doFilter - userRoleKey = 0
[17:05:32.816] DEBUG [https-jsse-nio-8443-exec-9] com.fido.common.filter.SuperAdminFilter doFilter - this.isIncludeURL(request.getRequestURI()) = true
[17:05:32.816] DEBUG [https-jsse-nio-8443-exec-9] org.springframework.web.multipart.support.MultipartFilter doFilterInternal - Request [/MagicFIDO2Admin/system-site-list.do] is not a multipart request
[17:05:32.816] DEBUG [https-jsse-nio-8443-exec-9] org.springframework.web.servlet.DispatcherServlet doService - DispatcherServlet with name 'appServlet' processing GET request for [/MagicFIDO2Admin/system-site-list.do]
[17:05:32.817] DEBUG [https-jsse-nio-8443-exec-9] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping getHandlerInternal - Looking up handler method for path /system-site-list.do
[17:05:32.818] DEBUG [https-jsse-nio-8443-exec-9] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping getHandlerInternal - Returning handler method [public org.springframework.web.servlet.ModelAndView com.fido.admin.system.controller.SystemSiteController.systemSiteList(com.fido.admin.system.vo.SystemSiteVO,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,org.springframework.ui.Model)]
[17:05:32.818] DEBUG [https-jsse-nio-8443-exec-9] org.springframework.beans.factory.support.AbstractBeanFactory doGetBean - Returning cached instance of singleton bean 'systemSiteController'
[17:05:32.819] DEBUG [https-jsse-nio-8443-exec-9] org.springframework.web.servlet.DispatcherServlet doDispatch - Last-Modified value for [/MagicFIDO2Admin/system-site-list.do] is: -1
[17:05:32.819] DEBUG [https-jsse-nio-8443-exec-9] com.framework.interceptor.ParamInterceptor preHandle - ###############################################################
[17:05:32.819] DEBUG [https-jsse-nio-8443-exec-9] com.framework.interceptor.ParamInterceptor preHandle - REQUEST URL : 
https://ip주소:8443/MagicFIDO2Admin/system-site-list.do
[17:05:32.819] DEBUG [https-jsse-nio-8443-exec-9] com.framework.interceptor.ParamInterceptor preHandle - contentType : null
[17:05:32.820] DEBUG [https-jsse-nio-8443-exec-9] com.framework.interceptor.ParamInterceptor preHandle - ###############################################################
[17:05:32.824] DEBUG [https-jsse-nio-8443-exec-9] org.mybatis.spring.SqlSessionUtils getSqlSession - Creating a new SqlSession
[17:05:32.825] DEBUG [https-jsse-nio-8443-exec-9] org.mybatis.spring.SqlSessionUtils registerSessionHolder - SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@61f16ed] was not registered for synchronization because synchronization is not active
[17:05:32.825] DEBUG [https-jsse-nio-8443-exec-9] org.springframework.jdbc.datasource.DataSourceUtils doGetConnection - Fetching JDBC Connection from DataSource
[17:05:32.828] DEBUG [https-jsse-nio-8443-exec-9] net.sf.log4jdbc.Slf4jSpyLogDelegator debug - driver name is Tibero Tibero_6.0.117148_JDBC_1.4_release_20160129
[17:05:32.829] INFO [https-jsse-nio-8443-exec-9] net.sf.log4jdbc.Slf4jSpyLogDelegator connectionOpened - 7. Connection opened org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
[17:05:32.829] DEBUG [https-jsse-nio-8443-exec-9] net.sf.log4jdbc.Slf4jSpyLogDelegator connectionOpened - open connections: 7 (1)
[17:05:32.830] DEBUG [https-jsse-nio-8443-exec-9] org.mybatis.spring.transaction.SpringManagedTransaction openConnection - JDBC Connection [net.sf.log4jdbc.ConnectionSpy@ce77d9d] will not be managed by Spring
[17:05:32.830] DEBUG [https-jsse-nio-8443-exec-9] org.apache.ibatis.logging.jdbc.BaseJdbcLogger debug - ==> Preparing: SELECT count(A.APPID) FROM ( SELECT APPID , DOMAIN , TBLSETNAME , REGDATE , OPERATORID FROM DOMAININFOTBL WHERE 1=1 ) A WHERE A.DOMAIN != 'ADMIN'
[17:05:32.833] DEBUG [https-jsse-nio-8443-exec-9] org.apache.ibatis.logging.jdbc.BaseJdbcLogger debug - ==> Parameters:
[17:05:32.833] INFO [https-jsse-nio-8443-exec-9] net.sf.log4jdbc.tools.Log4JdbcCustomFormatter sqlOccured - SELECT count(A.APPID)
FROM (
SELECT APPID
, DOMAIN
, TBLSETNAME
, REGDATE
, OPERATORID
FROM DOMAININFOTBL
WHERE 1=1

) A
                WHERE A.DOMAIN != 'ADMIN'

 

 

- 에러 해결

1) 권한이 root 계정이 아닌 was 계정으로 되어있는지 확인한다.

권한문제로 ContextRoot 폴더를 모두 was 계정으로 바꿔줌

Ex) chwon -R mydata:mydata MagicFIDO –R은 하위디렉토리까지 다 바꾼다는 뜻.

이래도 해결이 안될 경우에

 

2)  Catalina 폴더를 지우고 화면을 새로고침하거나 was를 재기동 한다.

Ex) [mydata@mydata work]$ pwd

/home/mydata/MagicFIDO/apache-tomcat-9.0.45/work

[mydata@mydata work]$ rm -rf Catalina/  --rf는 강제 삭제 옵션이니 조심해서 써야함

반응형

댓글