ssh项目启动tomcat出现的问题
2013-10-12 16:06
344 查看
在写完ssh登陆后,我启动tomcat报出了这样的异常:Error creating bean with name
'mlogin' defined in ServletContext resource
[/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean
'SessionFactory' while setting bean property 'sessionFactory';
nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'SessionFactory' defined in ServletContext
resource [/WEB-INF/applicationContext.xml]: Cannot resolve
reference to bean 'bookshop' while setting bean property
'dataSource'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'bookshop' defined in ServletContext
resource [/WEB-INF/applicationContext.xml]: Instantiation of bean
failed; nested exception is java.lang.NoClassDefFoundError:
org/apache/commons/pool/impl/GenericObjectPool。
解决的方法和出错的原因:
因为路径中存在和asm-2.2.3.jar冲突的包。
删除asm-2.2.3.jar问题就解决了。
删除asm-2.2.3.jar的方法:右键所建的工程,点properties——>java
Build path--->libaries,把asm-2.2.3.jar包remove了
(开发工具是myeclipse).
'mlogin' defined in ServletContext resource
[/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean
'SessionFactory' while setting bean property 'sessionFactory';
nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'SessionFactory' defined in ServletContext
resource [/WEB-INF/applicationContext.xml]: Cannot resolve
reference to bean 'bookshop' while setting bean property
'dataSource'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'bookshop' defined in ServletContext
resource [/WEB-INF/applicationContext.xml]: Instantiation of bean
failed; nested exception is java.lang.NoClassDefFoundError:
org/apache/commons/pool/impl/GenericObjectPool。
解决的方法和出错的原因:
因为路径中存在和asm-2.2.3.jar冲突的包。
删除asm-2.2.3.jar问题就解决了。
删除asm-2.2.3.jar的方法:右键所建的工程,点properties——>java
Build path--->libaries,把asm-2.2.3.jar包remove了
(开发工具是myeclipse).
相关文章推荐
- ssh项目启动tomcat很慢问题
- linux环境下启动tomcat7出现时间过长(已经编译完成的项目)问题解决!
- Tomcat启动项目时出现getJspApplicationContext(ServletContext) 问题的解决办法
- Tomcat启动时项目重复加载,导致资源初始化两次的问题
- 问题描述:Tomcat部署项目,出现了“GC overhead limit exceeded” 问题
- tomcat启动项目内存溢出问题
- angular2项目构建后部署到Tomcat刷新页面出现404的问题
- SSH整合时tomcat启动报错问题
- Cocos2d-x--新建Cocos2d-x项目出现的问题--系统无法启动程序,系统找不到指定的路径
- tomcat启动项目出现Could not publish server configuration for Tomcat v7.0 Server at localhost
- Tomcat 启动时出现的问题
- 解决tomcat在eclipse中启动正常,但在登录主页时出现404错误的问题
- jfinal项目放到tomcat上启动问题
- ssh项目中启动tomcat报错:session not found
- myeclipse tomcat启动项目出现 内存溢出
- IntelliJIdea 2016.2 使用 tomcat 8.5 调试spring的web项目时,bean被实例化两次导致timer和thread被启动了两遍的问题的解决
- tomcat 启动项目时出现 ZipException: error in opening zip file
- tomcat启动之后,一个项目由两个线程启动的问题
- Myeclipse添加外部Tomcat出现启动故障的问题解决
- 微信支付功能项目部署在window的tomcat出现编码问题