ssh整合时 Error creating bean with name '/register'

来源:百度知道 编辑:UC知道 时间:2024/05/12 12:49:47
严重: action: null
org.springframework.beans.factory.BeanCreationException: Error creating bean with name '/register' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Cannot resolve reference to bean 'BbsuserDAOProxy' while setting bean property 'dao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'BbsuserDAOProxy' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'BbsuserDAOProxy' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.

先确认配置文件没错,没有笔误之类的错误。

其次看看是不是cglib.jar没有放到WEB-INF\lib目录下。

最后检查是不是少了其它的jar包。

配置文件有问题:
检查你的applicationContext.xm]文件

'/register' bean时出错,这个是配置action吧,应该是你action代理设置错误

最好把配制文件贴出来

<bean id="BbsuserDAOProxy"
class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">

首先确定你包加载进去没有

把 cglib.jar ,asm-2.2.3.jar复制到你的项目里面