信息: Initializing Spring root WebApplicationContext
2012-7-18 11:15:31 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in URL [file:/D:/Program%20Files/Tomcat%206.0/webapps/stronger/WEB-INF/classes/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1336)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframe
org.apache.catalina.core.StandardContext listenerStart(Error creating bean with name 'sessionFactory
最新推荐文章于 2024-02-08 21:01:38 发布
该博客记录了在启动Spring Web应用程序时遇到的一个严重错误,异常堆栈显示在初始化bean 'sessionFactory'时失败,具体原因是`java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit`。此问题可能由于ASM库版本不匹配或与其他库冲突导致。博主还提到了应用上下文初始化失败,并询问关于`applicationContext.xml`的配置是否完整,特别是与Hibernate和数据库相关的配置。
摘要由CSDN通过智能技术生成