본문 바로가기

logs/_09sio

(16)
root-context.xml, servlet-context.xml 를 context-*.xml, *-servlet.xml 로 바꿔준 뒤로 404오류 환장하는 줄 알았다. 콘솔에도 로그가 안찍히고 페이지 호출하면 404 에러만 뜨고..... 의심되는 부분이 넘나 여러군데여서 헤매다가 아예 Controller에 들어오지도 못하는 것 같아서bean 생성에 문제가 있으리라 짐작했음 context-common.xml이랑 action-servlet.xml에 bean 생성해주는 부분 범위 설정이 잘 되어있는지 확인... 문제가 있어서 수정했음 그 뒤 아래 블로그를 참고하여 bean이 잘 생성되었는지 Spring Explorer 윈도우에서 확인했음 결국 잘 돌아감 ㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠ http://ddoong2.com/946 http://toriworks.tistory.com/84
없어진 @RequestMapping 이 문제가 있다는 오류문구... 없앤지 오래인 requestmapping 값들... resource 값들이 문제가 있따고 자꾸 뜸... 로컬에서는 같은 소스로 문제가 없는데 서버에 올렸을때만 저렇게 뜨고, 당연히 소스에는 comCodeList.do 이런거 있지도 않음....서버에 빈 생성된 부분이 초기화가 안되는게 문제인거 같은데 서버 초기화 하는 방법도 안나오구... org.springframework.beans.factory.BeanCreationException: Error creating bean with name "org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0": Initialization of bean failed; ne..
### Cause: java.sql.SQLException: Value '0000-00-00' can not be represented as java.sql.Date ### Cause: java.sql.SQLException: Value '0000-00-00' can not be represented as java.sql.Date 해결방법 :root-context.xmldataSource url 끝에 ?zeroDateTimeBehavior=convertToNull 추가
tiles 붙이기 1. pom.xml안에2.2.2 org.apache.tilestiles-core${org.apache.tiles-version}org.apache.tilestiles-servlet${org.apache.tiles-version}org.apache.tilestiles-jsp${org.apache.tiles-version}xercesxercesImpl2.11.0
java.sql.SQLException: No database selected java.sql.SQLException: No database selected 해결방법 : root-context.xml
BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext 해결방법 : root-context.xml 파일의 위치가 appServlet 폴더 아래에 있었는데거기서 꺼내서 spring 바로 아래로 옮겨줌(src/main/webapp/WEB-INF/spring)
NoUniqueBeanDefinitionException: No qualifying bean of type [org.mybatis.spring.SqlSessionTemplate] 자꾸 내 Dao파일 bean 어쩌구 오류가 났다.. NoUniqueBeanDefinitionException: No qualifying bean of type [org.mybatis.spring.SqlSessionTemplate] 해결방법 : root-context.xml에 아래부분 추가.. 예전에 했던 거는 spring config들 파일 여러개로 했었는데 얘는 한개.. 왜지 공부좀 해야겟구만
cafe24에 war 올리기 1. war 파일 만들기STS 에서 Export > Web > War file > Destination 선택 > Apache Tomcat의 버전이 맞는지 확인 > Finish 2. PuTTY 로 서버 셧다운 하기PuTTY 접속 > 아이디, 비밀번호 입력하여 로그인 > ./tomcat/bin/shutdown.sh 3. 지정한 위치에 가서 War file 압축 해제 하기 4. FileZilla 에 업로하기로그인 > / > tomcat > webapps > ROOT > 이안에 war 압축해제 한 내용물을 붙여넣기 5. PuTTY 로 서버 재시작 하기./tomcat/bin/startup.sh