본문 바로가기

728x90
반응형

Spring/오류

(9)
[Tomcat] Port 8009 required by Tomcat v8.5 Server at localhost is already in use. Port 8009 required by Tomcat v8.5 Server at localhost is 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 server 구동 시, 위와 같은 에러 발생 원인 : Tomcat이 사용하는 기본 포트(8005, 8080, 8009 중 지금은 8009)를 이미 사용중이기 때문이다. 해결 - 쓰고 있는 포트 번호 바꾸기 - 포트를 사용하고..
StreamCorruptedException 경고: 세션 [9E8A47A57635882580BA400A37107B21]을(를) 위한 세션 속성 [SPRING_SECURITY_CONTEXT]을(를) 역직렬화할 수 없습니다. java.io.StreamCorruptedException: invalid type code: 00 at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.defaultReadFields(Unknown Source) at java.io.ObjectInputStream.defaultReadObject(Unknown Source) at java.lang.Throwable.readObject(Unknown Source) at sun.ref..
NoSuchBeanDefinitionException * 20.05.27 수정 상황 1 WARN : org.springframework.web.context.support.XmlWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.filterChains': Cannot resolve reference to bean 'org.springframework.security.web.DefaultSecurityFilterCha..
ClassNotFoundException java.lang.ClassNotFoundException: org.springframework.security.web.csrf.DefaultCsrfToken at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1360) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1182) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.apache.catalina.util.Custo..
PageNotFound WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/경로 이름] in DispatcherServlet with name 'appServlet' 원인 - 경로가 중복 사용되어서 발생 예시 서버를 구동시킬 때 아래의 창이 뜨고 서버가 구동되지 않음 ① web.xml의 DispatcherServlet 선언 확인 appServlet org.springframework.web.servlet.DispatcherServlet contextConfigLocation /WEB-INF/spring/appServlet/servlet-context.xml 1 appServlet / ② servlet-c..
[톰캣] Multiple Contexts have a path of "/경로이름" Multiple Contexts have a path of "/경로 이름" 원인 - 경로가 중복 사용되어서 발생 예시 서버를 구동시킬 때 아래의 창이 뜨고 서버가 구동되지 않음 해결 ① 서버 더블클릭 Modules 클릭 /spring 하나를 선택해 remove ② 서버 마우스 오른쪽 클릭 - Clean ③ Server.xml에서 경로 설정하는 부분 체크
LifecycleException * 20.05.25 수정 자식 컨테이너를 시작 중 실패했습니다. 원인 - pom.xml이나 web.xml을 잘못 건들였을 때 혹은 아무 이유 없이 발생 예시 - 구성요소 [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/controller]]을(를) 시작하지 못했습니다 구성요소 [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]을(를) 시작하지 못했습니다. ① 프로젝트 Clean - 상단 메뉴 - 'Project' - 'Clean' - All projects 또는 해당 프로젝트 선택 ② Tomcat Server Clean - 서버 선택 후 우클릭 - Clean ③ ..
FileNotFoundException Could not open ServletContext resource [파일 경로] 원인 - 파일 경로 내의 파일을 찾을 수 없을 때 발생 (파일이 없거나 파일 명이 다를 때) - 파일이 있어도 읽기/쓰기 권한이 없을 때 발생 예시 에러 문구 ERROR: org.springframework.web.context.ContextLoader - Context initialization failed org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/WEB-INF/spring/security-context.xml]; nested exce..

728x90
반응형