본문 바로가기

Spring

(50)
[Error] log cannot be resolved - lombok 에러 DataSource Test중 log 에러 발생 log cannot be resolved 1. Maven Dependencies > lombok.jar 우클릭 2. Run as > java Application 진행 3. IDEs 창에서 Eclipse or SpringToolSuite 선택 > install/update 클릭 4 Eclipse(sts) Project Clean > Restart or Maven > Update Project 진행 5. 에러 해결 + lombok 미설치 시에도 동일 에러 발생. lombok 설치 여부 확인 필요. + eclipse.ini 파일 > -javaagent:(경로)\lombok.jar > -javaagent:lombok.jar 로 변경 ecilpse 재실행. + p..
[Error] Tomcat Server Error - 404 , etc. 톰캣 서버 에러 요청된 리소스 [/]은(는) 가용하지 않습니다. Origin 서버가 대상 리소스를 위한 현재의 representation을 찾지 못했거나, 그것이 존재하는지를 밝히려 하지 않습니다. 방법 1. Server > Tomcat Modules > path 확인 path 경로가 맞지 않아 발생하는 에러. 2. Component 파일 수정 Eclipse workspace → 해당 프로젝트 → .settings → org.eclipse.wst.common (COMPONENT 파일) 1) 인지 확인 2) value 프로젝트명 , 경로 확인 3. Controller class, root-context.xml , servlet-context.xml , web.xml 경로 확인 경로가 틀려서 발생하는 경우가..
[Error] log4j.xml 빨간줄 - Cannot find DTD 'file:///C:/Users/master/eclipse-workspace/assignment01ex/src/main/resources/log4j.dtd'. Create the DTD file or configure an XML catalog for this DTD. 멀쩡하던 log4j.xml 을 클릭했더니 빨간줄 발생. 더보기 Multiple annotations found at this line: - The file cannot be validated as the XML definition "C:\Users\master\eclipse-workspace\assignment01ex\src\main\java\log4j.dtd (지정된 파일을 찾을 수 없습니 다)" that is specified as describing the syntax of the file cannot be located. - Cannot find DTD 'file:///C:/Users/master/eclipse-workspace/assignment01ex/src/main/resources/log4..
[Error] Eclipse spring MVC project Mapping error (WARN : org.springframework.web.servlet.PageNotFound - No mapping for GET / ) Eclipse version 2021-09 java 11 sts , sts addon install legacy project > MVC project tomtcat 연동 확인 중 1. WARN : org.springframework.web.servlet.PageNotFound - No mapping for GET / 2. WARN : org.springframework.web.servlet.PageNotFound - No mapping for GET /WEB-INF/views/index.jsp 에러 원인 / 해결 방법 1. URL 오타 @RequestMapping("/") 확인 2. @Controller 미입력 controller class에 @controller 어노테이션 확인 3. servlet-c..
[Error] Eclipse spring MVC pom.xml 오류 - Could not initialize class org.apache.maven.plugin.war.util.WebappStructureSerializer 1. MVC project 생성 후 pom.xml 첫 줄 오류 Could not initialize class org.apache.maven.plugin.war.util.WebappStructureSerializer 원인 : Maven version이 낮아서 생기는 오류. 2. Maven-war-plugin dependency 추가 maven-war-plugin 3.2.2 해결 완료.
[Error] spring framework 4 legacy project 생성 sts3 Add-On for Spring Tools install 에러 - Cannot complete the install because one or more required items could not be found. sts4 Legacy project 생성 시 sts3 add-on install 필요. 경로 : help > Eclipse Marketplace > spring tools 3 add on for spring install 에러 발생 Cannot complete the install because one or more required items could not be found. osgi.bundle; org.eclipse.mylyn.commons.ui [3.7.0,4.0.0) 1. https://www.eclipse.org/mylyn/downloads/ Mylyn Downloads | The Eclipse Foundation The Eclipse Foundation - home to a global co..
[Error] No mapping found for HTTP request with URI 에러 1. Mapping 오류 WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/comboard/img/undraw_profile_1.svg] in DispatcherServlet with name 'appServlet' >> servlet-context.xml - Mapping 코드 추가
[Error] log4jdbc를 이용 한 DB설정 오류 - org.springframework.web.context.ContextLoader - Context initialization failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext r.. 1. log4jdbc를 이용한 DB설정 오류 ERROR: org.springframework.web.context.ContextLoader - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/spring/root-context.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: ..
[Error] Oracle 비밀번호 만료 오류 - com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Exception during pool initialization. java.sql.SQLException: ORA-28001: the password has expired 오라클 DB의 경우 보안을 위해 180일 주기로 패스워드 변경해야함 변경하지 않을 경우 에러 발생 1. Oracle 비밀번호 만료 오류 ERROR: com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Exception during pool initialization. java.sql.SQLException: ORA-28001: the password has expired 해결방법 1) CMD창 오라클 DB 관리자 접속 sqlplus "/as sysdba" 2) 새로운 패스워드 설정 ALTER USER [user_id] IDENTIFIED BY [password]; 3) 변경 한 패스워드로 오라클 DB 접속 비밀번호가 틀렸을 경우 아래 명령어를 통해 계정 언락 후 패..
[Error] Tomcat 구동 오류 - 심각: Context initialized 이벤트를 [org.springframework.web.context.ContextLoaderListener] 클래스의 인스턴스인 리스너에 전송하는 동안 예외 발생 Tomcat 구동 오류 ( Maven 사용 시) 1. root-context.xml 오류 심각: Context initialized 이벤트를 [org.springframework.web.context.ContextLoaderListener] 클래스의 인스턴스인 리스너에 전송하는 동안 예외 발생 org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 33 in XML document from ServletContext resource [/WEB-INF/spring/root-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber:..