SSH 搭建异常总结

1。Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with

name ' sessionFactory ' defined in file [E:\workspace\jail_Locate\WebRoot\WEB - INF\classes\

applicationContext - common.xml]: Invocation of init method failed; nested exception is

java.lang.UnsupportedClassVersionError: Bad version number in . class file
[color=red]
解决方法:删除hibernate自带的asm.jar,asm-attrs.jar,cglib-2.1.3.jar使用spring lib\asm下的三个包以及cglib下的包 [/color]


2。Caused by: java.lang.UnsupportedClassVersionError: Bad version number in . class file
[color=red] 解决办法:我的环境是jdk1.5,MyEcliose的环境也是1.5,于是改成1.6的,测试spring+hibernate正常,
加上struts后又报错原来还是修改tomcat下的jdk [/color]


3。Servlet action is not available
[color=red] 解决办法:页面提交后就是这样的错误,根本无从下手,于是配上Log4j,这个很重要,原来是少了jar文件 [/color]


4。java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy1] to required type
[com.telezone.jail.servicesImpl.UserinfoImpl] for property 'iuserinfo': no matching editors or
conversion strategy found
[color=red] 解决办法:在Action里面的set方法set的属性是实现类,改成接口就行了[/color]


本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/loginout/archive/2009/11/27/4876021.aspx
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值