'Spring'에 해당되는 글 1건

Posted on 2011/07/15 10:25
Filed Under Spring


프로젝트를 진행하는데 톰캣을 시작하니 다음과 같은 메세지가 뜨면서 멈춰있다. 해석하면 SLF4J 모듈이 여러개가 있어 문제가 있으니 이 링크를 봐라 하는 것이다. 보면 알겠지만 SLF4J 는 하나만 바인딩 되도록 만들어져 있으므로 하나는 지우세요 라는 내용이다. 지울것은 slf4j-simple-1.6.1.jar 이다.


SLF4J: Class path contains multiple SLF4J bindings.

SLF4J: Found binding in [jar:file:/C:/takeone/workspaces/ium/.metadata/.plugins/
org.eclipse.wst.server.core/tmp2/wtpwebapps/project/WEB-INF/lib/
slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/takeone/workspaces/ium/.metadata/.plugins/
org.eclipse.wst.server.core/tmp2/wtpwebapps/project/WEB-INF/lib/
slf4j-simple-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
2011/07/15 10:25 2011/07/15 10:25

Posted on 2011/03/25 00:46
Filed Under Spring


토비의 스프링3 책과 함께 연습중 어플리케이션 컨텍스트를 적용하니 바로 다음과 같은 예외가 발생했다.
Exception in thread "main" java.lang.IllegalStateException:
CGLIB is required to process @Configuration classes.
Either add CGLIB to the classpath or remove the following
@Configuration bean definitions: [daoFactory]


pom.xml 에 다음과 같이 기술해주어 해당 라이브러리를 다운받아야 한다.
<!-- cglib -->
<dependency>
	<groupId>com.kenai.nbpwr</groupId>
	<artifactId>net-sf-cglib</artifactId>
	<version>2.1.3-201003011305</version>
</dependency>
2011/03/25 00:46 2011/03/25 00:46

Counter

· Total
: 371798
· Today
: 41
· Yesterday
: 50