在线等,求大神指教啊!myeclipse启动tomcat不报错,直接启动tomcat就报错

zh445463051 2015-08-15 07:13:59
2015-08-15 19:11:49 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner]-
[DEBUG] Identified candidate component class: file [E:\apache-tomcat-6.0.26\weba
pps\tatajie\WEB-INF\classes\com\tatajie\dao\AuctionDao.class]
2015-08-15 19:11:49 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner]-
[DEBUG] Identified candidate component class: file [E:\apache-tomcat-6.0.26\weba
pps\tatajie\WEB-INF\classes\com\tatajie\dao\ClassifyDao.class]
2015-08-15 19:11:49 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner]-
[DEBUG] Identified candidate component class: file [E:\apache-tomcat-6.0.26\weba
pps\tatajie\WEB-INF\classes\com\tatajie\dao\CommodDao.class]
2015-08-15 19:11:49 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner]-
[DEBUG] Identified candidate component class: file [E:\apache-tomcat-6.0.26\weba
pps\tatajie\WEB-INF\classes\com\tatajie\dao\GgListDao.class]
2015-08-15 19:11:49 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner]-
[DEBUG] Identified candidate component class: file [E:\apache-tomcat-6.0.26\weba
pps\tatajie\WEB-INF\classes\com\tatajie\dao\JurisdictionDao.class]
2015-08-15 19:11:49 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner]-
[DEBUG] Ignored because not a concrete top-level class: file [E:\apache-tomcat-6
.0.26\webapps\tatajie\WEB-INF\classes\com\tatajie\dao\PinYinBean.class]
2015-08-15 19:11:49 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner]-
[DEBUG] Ignored because not a concrete top-level class: file [E:\apache-tomcat-6
.0.26\webapps\tatajie\WEB-INF\classes\com\tatajie\dao\SelectBean.class]
2015-08-15 19:11:49 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner]-
[DEBUG] Identified candidate component class: file [E:\apache-tomcat-6.0.26\weba
pps\tatajie\WEB-INF\classes\com\tatajie\dao\UserDao.class]
2015-08-15 19:11:49 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner]-
[DEBUG] Identified candidate component class: file [E:\apache-tomcat-6.0.26\weba
pps\tatajie\WEB-INF\classes\com\tatajie\dao\WerbenDao.class]
2015-08-15 19:11:49 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner]-
[DEBUG] Creating MapperFactoryBean with name 'auctionDao' and 'com.tatajie.dao.A
uctionDao' mapperInterface
2015-08-15 19:11:49 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner]-
[DEBUG] Creating MapperFactoryBean with name 'classifyDao' and 'com.tatajie.dao.
ClassifyDao' mapperInterface
2015-08-15 19:11:49 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner]-
[DEBUG] Creating MapperFactoryBean with name 'commodDao' and 'com.tatajie.dao.Co
mmodDao' mapperInterface
2015-08-15 19:11:49 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner]-
[DEBUG] Creating MapperFactoryBean with name 'ggListDao' and 'com.tatajie.dao.Gg
ListDao' mapperInterface
2015-08-15 19:11:49 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner]-
[DEBUG] Creating MapperFactoryBean with name 'jurisdictionDao' and 'com.tatajie.
dao.JurisdictionDao' mapperInterface
2015-08-15 19:11:49 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner]-
[DEBUG] Creating MapperFactoryBean with name 'userDao' and 'com.tatajie.dao.User
Dao' mapperInterface
2015-08-15 19:11:49 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner]-
[DEBUG] Creating MapperFactoryBean with name 'werbenDao' and 'com.tatajie.dao.We
rbenDao' mapperInterface
2015-08-15 19:11:49 [org.springframework.beans.factory.support.DefaultListableBe
anFactory]-[DEBUG] Returning cached instance of singleton bean 'propertyConfigur
er'
2015-08-15 19:11:49 [org.springframework.beans.factory.config.PropertyPlaceholde
rConfigurer]-[INFO] Loading properties file from class path resource [jdbc.prope
rties]
2015-08-15 19:11:49 [org.springframework.beans.factory.support.DefaultListableBe
anFactory]-[INFO] Destroying singletons in org.springframework.beans.factory.sup
port.DefaultListableBeanFactory@1f80cb01: defining beans [classifyController,com
modController,fileController,ggListController,indexControl,jurisdictionControlle
r,userController,werbenController,AuctionService,ClassifyService,CommodService,g
gListService,jurisdictionService,userService,werbenService,org.springframework.c
ontext.annotation.internalConfigurationAnnotationProcessor,org.springframework.c
ontext.annotation.internalAutowiredAnnotationProcessor,org.springframework.conte
xt.annotation.internalRequiredAnnotationProcessor,org.springframework.context.an
notation.internalCommonAnnotationProcessor,propertyConfigurer,dataSource,sqlSess
ionFactory,org.mybatis.spring.mapper.MapperScannerConfigurer#0,transactionManage
r,org.springframework.context.annotation.ConfigurationClassPostProcessor.importA
wareProcessor,auctionDao,classifyDao,commodDao,ggListDao,jurisdictionDao,userDao
,werbenDao]; root of factory hierarchy
2015-08-15 19:11:49 [org.springframework.web.context.ContextLoader]-[ERROR] Cont
ext initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean def
inition with name 'dataSource' defined in class path resource [spring-mybatis.xm
l]: Could not resolve placeholder 'driver' in string value "${driver}"
at org.springframework.beans.factory.config.PlaceholderConfigurerSupport
.doProcessProperties(PlaceholderConfigurerSupport.java:209)
at org.springframework.beans.factory.config.PropertyPlaceholderConfigure
r.processProperties(PropertyPlaceholderConfigurer.java:220)
at org.springframework.beans.factory.config.PropertyResourceConfigurer.p
ostProcessBeanFactory(PropertyResourceConfigurer.java:84)
at org.springframework.context.support.AbstractApplicationContext.invoke
BeanFactoryPostProcessors(AbstractApplicationContext.java:687)
at org.springframework.context.support.AbstractApplicationContext.invoke
BeanFactoryPostProcessors(AbstractApplicationContext.java:662)
at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:454)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebA
pplicationContext(ContextLoader.java:383)
at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:283)
at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:111)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3972)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
467)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
1)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)

at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)

at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740
)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:321)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
)
at org.apache.catalina.core.StandardService.start(StandardService.java:5
19)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
2015-8-15 19:11:49 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2015-8-15 19:11:49 org.apache.catalina.core.StandardContext start
严重: Context [/tatajie] startup failed due to previous errors
2015-8-15 19:11:49 org.apache.catalina.loader.WebappClassLoader clearReferencesJ
dbc
严重: A web application registered the JBDC driver [com.mysql.jdbc.Driver] but f
ailed to unregister it when the web application was stopped. To prevent a memory
leak, the JDBC Driver has been forcibly unregistered.
2015-8-15 19:11:49 org.apache.catalina.loader.WebappClassLoader clearReferencesJ
dbc
严重: A web application registered the JBDC driver [com.mysql.fabric.jdbc.Fabric
MySQLDriver] but failed to unregister it when the web application was stopped. T
o prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2015-8-15 19:11:49 org.apache.catalina.loader.WebappClassLoader clearReferencesJ
dbc
严重: A web application registered the JBDC driver [oracle.jdbc.OracleDriver] bu
t failed to unregister it when the web application was stopped. To prevent a mem
ory leak, the JDBC Driver has been forcibly unregistered.
2015-8-15 19:11:49 org.apache.catalina.loader.WebappClassLoader clearReferencesT
hreads
严重: A web application appears to have started a thread named [Abandoned connec
tion cleanup thread] but has failed to stop it. This is very likely to create a
memory leak.
...全文
133 点赞 收藏 4
写回复
4 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
sikejava 2015-08-20
怎么处理的? 我也报了这个错
回复
zh445463051 2015-08-17
已处理,谢谢回答。
回复
shangguanjiyan 2015-08-15
你是用的是配置文件配置的数据源,${driver}与你的properties文件中的名称是否一直?
回复
梁金晶 2015-08-15
缺少引用的包
回复
发帖
Web 开发
创建于2007-09-28

8.0w+

社区成员

Java Web 开发
申请成为版主
帖子事件
创建了帖子
2015-08-15 07:13
社区公告
暂无公告