org.springframework.beans.factory.BeanCreationException
写了一个web程序,在tomcat下面运行完全正常,然后转到websphere下面后,启动时报错:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'postAccountService' defined in ServletContext resource [/WEB-INF/classes/META-INF/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class [class service.impl.PostAccountServiceImpl]: Common causes of this problem include using a final class or a non-visible class; nested exception is net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
at....
Caused by: org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class [class com.gti.epd.cmis.service.admin.impl.PostAccountServiceImpl]: Common causes of this problem include using a final class or a non-visible class; nested exception is net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
at...
Caused by: net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
at...
Caused by: java.lang.reflect.InvocationTargetException
at...
Caused by: java.lang.OutOfMemoryError: PermGen space
at...
以为是jvm设置的内存不够,于是通过myeclipse修改了websphere的 Optional Java VM arguments为:-Xms256m -Xmx512m -XX:MaxPermSize=256m
可仍然报同样的错误。
网上又有朋友说可能项目中的cglib-nodep-2.2.jar包与websphere下的cglib-nodep.2.1_3.jar有冲突,于是把项目中的cglib-nodep-2.2.jar删除掉,仍然报同样的错误。整了两天了,郁闷。求高手指点