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
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