본문 바로가기

전체보기

(94)
[Error] The declared package "" does not match the expected package - 패키지 미참조 에러 Class에 해당 패키지 미참조 시 발생함. The declared package "" does not match the expected package Class 최상단에 해당 패키지 참조 해주면 됨. package com.sample.controller;
[Chrome] Chrome devTool - DevTools failed to load source map: Could not load content for chrome-extension://gighmmpiobklfepjocnamgkkbiglidom/browser-polyfill.js.map: System error: net::ERR_FILE_NOT_FOUND 숨기기 Chrome 개발자 툴 열면 항상 나온다. DevTools failed to load source map: Could not load content for chrome-extension://gighmmpiobklfepjocnamgkkbiglidom/browser-polyfill.js.map: System error: net::ERR_FILE_NOT_FOUND 실행 할 때 딱히 상관은 없지만 거슬린다. F12 > 환경설정 > Sources - "Enable JavaScript source maps"를 체크 해제 후 새로고침 해결.
[Error] javaScript Console - Uncaught SyntaxError: missing ) after argument list - 오타 에러 .jsp 수정 후 서버 실행하니 chrome - console error 발생. Uncaught SyntaxError: missing ) after argument list 특정 라인에 ) 를 감싸지 않아서 발생한 것임. 내 경우 function 마무리 ); 를 하지 않아서 발생. 마지막에 제대로 닫아줘야 함. ex) function test() { alert("괄호 감싸줘야 함"); }); + 다른 이유로는 따옴표 시작 부분과 끝나는 부분에서 \ 붙여주면 따움표로 인식하여 정상 작동 함. 시작부분은 \' 끝나는 부분은 '\ 으로 처리!
[CSS] 절대 경로 & 상대 경로 1. 절대 경로 이미 지정되어 있어 변경할 수 없는 경로. 페이지 안에 다른 서버에 있는 이미지나 페이지 등의 파일을 연결 시킬때 사용 함. https://devel-log.tistory.com/ 개발로그 2. 상대 경로 상대적으로 변경될 수 있는 경로. 상대경로 지정시 유의점 1. 현재 문서를 기준으로 경로가 지정 된다. ex) 동일 폴더에 있는 css를 추가하고 싶을 경우 2. 현재 문서와 동일 위치에 있는 자원을 연결 시킬 때 : 파일명과 확장자 정보를 기재한다. ex) , 3. 현재 문서를 기준으로 하위 폴더에 있을 때 : 폴더명 + /+파일명.확장자를 기재한다. ex) , , 4. 현재 문서를 기준으로 상위 폴더에 있을 때 : 상위 폴더를 벗어날 때 마다 ../ 를 사용한다. ex) , , + ..
[Error] Resources mapping 오류 - no mapping for get css views 폴더에 css/modal.css 를 만들어 mapping 했음. > resources 에서 mapping 을 해서 해당 경로를 찾지 못 함. servlet-context.xml 추가 하였으나 인식하지 못 해서 제거하고 css 폴더를 resources에 옮김. jsp에 css 경로 수정. views 상위 폴더 이기 때문에 ../ 부터 시작. 참고 https://devel-log.tistory.com/32 [CSS] 절대 경로 & 상대 경로 1. 절대 경로 이미 지정되어 있어 변경할 수 없는 경로. 페이지 안에 다른 서버에 있는 이미지나 페이지 등의 파일을 연결 시킬때 사용 함. https://devel-log.tistory.com/ 개발로그 2. 상대 경로 상대적으 devel-log.tistor..
[Error] Tomcat port 오류 - Several ports (8005, 8080) required by Tomcat v9.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need t.. 톰캣을 구동 할 때 생기는 포트 오류. 주로 이클립스가 비정상적으로 종료 된 뒤 재구동 할 때 발생 함. Several ports (8005, 8080) required by Tomcat v9.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s). Tomcat이 사용하고 있는 기본 포트(8080, 8009, 8005)가 이미 사용중이라서 생기는 오류. 사..
[Error] log4j2 - ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console. Set system property 'log4j2.debug' to show Log4j2 internal initialization logging. https://devel-log.tistory.com/27 [Error] tomcat server , log4j error - java.lang.ClassNotFoundException: org.springframework.web.util.Log4jConfigListener 1. 멀쩡하게 하다가 갑자기 에러 발생. log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader). log4j:WARN Please initialize the log4j system pr.. devel-log.tistory.com 직전 에러 때문에 log4j2를 추가하였는데, 실행하고 보니 에러 발생. SLF4J: C..
[Error] tomcat server , log4j error - java.lang.ClassNotFoundException: org.springframework.web.util.Log4jConfigListener 1. 멀쩡하게 하다가 갑자기 에러 발생. log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. 2. ClassNotFoundException. - Log4j 관련 .jar 파일이 없다는 에러인 것 같음. SEVERE: 클래스 [org.springframework.web.util.Log4jConfigListener]의 애플리케이션 리스너를..
[Error]Failed to load resource: the server responded with a status of 404 () Failed to load resource: the server responded with a status of 404 () 경로 틀려서 나는 에러
[Error] java - Unreachable catch block for SQLException. This exception is never thrown from the try statement body Unreachable catch block for SQLException. This exception is never thrown from the try statement body try 안에서 exception이 발생하지 않으니 필요없다는 뜻. 해당 Exception 필요한 경우 구문을 try-catch 안에 넣으면 됨.