본문 바로가기

Others/Error

(19)
[스프링 서버 세팅] Cannot find ./catalina.sh 해결 : chmod +x catalina.sh
[스프링] Cannot resolve reference to bean 'sqlSessionFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: 출처: http://8boknote.tistory.com/12 [8BOKNOTE] 오류는 mybatis-config에서 경로를 잘못 지정했을 경우 발생. 해결 방법 1. root-content의 sqlSessionFactory에 configLocation의 mybatis-config.xml 파일 연결 2. mybatis-config에서 를 처리했을 경우 그 속의 패키지 명을 정확하게 입력하면 된다.
[스프링] org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class 해결방법 : pom.xml 스프링 버전 확인! 1.84.2.3.RELEASE1.6.101.6.6
[스프링] The content of element type "mapper" must match "EMPTY". 쿼리를 작성하는 xml의 DTD 확인! 의 dtd 에서 mapper 에 대한 정보가 없어서 발생하는 문제 으로 맞게 들어가 있는지 확인해보자.
[스프링] The absolute uri: [http://java.sun.com/jsp/jstl/core] cannot be resolved in either web.xml or the jar files deployed with this application 1. 이 JSP 에 추가 되지 않았거나 2. 이와 관련된 라이브러리가 추가되지 않았기 때문.https://tomcat.apache.org/download-taglibs.cgi위 링크에서 다운로드후 lib 폴더를 WEB_INF 폴더 바로 아래에 추가!
[스프링] org.springframework.web.servlet.PageNotFound - Request method 'GET' not supported org.springframework.web.servlet.PageNotFound - Request method 'GET' not supported JSP에서 form의 Method를 post를 해줘서@RequestMapping ( value="~~~", method=RequestMethod.POST)로 설정해 주었는데 위와 같은 에러가 났다면 일단 @RequestMapping의 method를 RequestMethod.GET으로 바꾸자. 궁금증... 나는 form을 post로 했는데 왜 GET으로 바꾸어주어야지 에러가 나지 않는건지 알아봐야한다,,,
[스프링] Servlet.service() for servlet [appServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause java.lang.NullPointerException Query에 Null 값이 들어갔을 경우 발생하는 문제입니다. 해결 방법 1. Controller, DAO, Service 단에서 각각에 넘겨주는 쿼리값의 주입이 됐는지 확인2. DB가 run 중인지 확인
[스프링] No mapping found for HPTT request with URI 여러개의 컨트롤러(서로 다른 패키지의)를 사용하고 싶을 때 다음과 같은 에러를 만날 수 있다. WARN : org.springframework.web.servlet.PageNotFound - No mapping found HTTP request with URI [ ... ] in DispatcherServlet with name 'appServlet' [해결방안] servlet-context.xml 파일의 base-package 부분을 다음과 같이 모두 포함하게 * 을 사용해서 변경.(이전은 특정패키지명이 들어있었다. 그렇게 되면 그 패키지 안의 컨트롤러의 value 값 URI만 매핑된다.) 이 방법 외에 component-scan 을 무한으로 사용해서 확장...ex) ...