이클립스에서 tomcat에서 봄 MVC 프로젝트를 실행할 때이 오류가 발생합니다.java.lang.ClassNotFoundException : org.springframework.cglib.proxy.MethodInterceptor
java.lang.ClassNotFoundException: org.springframework.cglib.proxy.MethodInterceptor
google에는 오류에 관한 결과가 없습니다.
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.2.xsd
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.2.xsd">
<tx:annotation-driven />
<mvc:annotation-driven />
<mvc:resources mapping="/resources/**" location="/resources/" />
<context:component-scan base-package="/"></context:component-scan>
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/WEB-INF/jsp/"></property>
<property name="suffix" value=".jsp"></property>
</bean>
<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver" p:maxUploadSize="1000000" />
<bean id="personService" class="PersonService" />
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
<property name="url" value="jdbc:mysql://localhost:3306/database" />
<property name="username" value="root" />
<property name="password" value="root" />
</bean>
<bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="packagesToScan" value="/" />
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
</props>
</property>
</bean>
<bean id="transactionManger" class="org.springframework.orm.hibernate4.HibernateTransactionManager">
<property name="sessionFactory" ref="sessionFactory" />
</bean>
내 lib 폴더에 CGLIB-2.2.3.jar를 배치했지만이 차이를 만들어 없다
.저는 약간의 손실이 있습니다. 나는 수업을 듣고 수업이 필요한 것을 이해하지만 봄이 어떻게 보이는지를 알지 못합니다.
감사합니다.
나는 개발 릴리스를 사용 해왔다. 내가 말하는 것처럼 다시 3.1로 바꿀 것입니다. 그래서 cglib 항아리에있는 것과는 다른 수업입니까? 그것은 어떤 봄병에있을 운명인가? 어느 것? – AlyoshaKaramazov
여기에서 다운로드 한 파일 http://sourceforge.net/projects/cglib/files/latest/download?source=files에 파일이 없습니다. 그것이 어디에 포함되어 있는지에 관해서는, 그것은 Spring 3.1 jar에는 없다. 3.2 항아리에 있어야합니다. 아니면이 오류는 버그 일 수 있습니다. – mavroprovato
Oooops, jar 파일에 * class *가 포함되어 있지 않다는 것을 의미합니다. – mavroprovato