Skip to content

楼主的项目在eclipse和IDEA里面都无法运行,请问该怎么配置呢 #16

@wzunique

Description

@wzunique

一月 20, 2018 12:18:27 下午 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class ssm.blog.listener.InitBloggerData
java.lang.NullPointerException
at ssm.blog.listener.InitBloggerData.contextInitialized(InitBloggerData.java:38)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5003)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5517)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1574)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1564)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

一月 20, 2018 12:18:27 下午 org.apache.catalina.core.StandardContext startInternal
严重: One or more listeners failed to start. Full details will be found in the appropriate container log file
一月 20, 2018 12:18:27 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/Blog] startup failed due to previous errors
一月 20, 2018 12:18:27 下午 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
2018-01-20 12:18:27,624 [localhost-startStop-1] INFO [org.springframework.web.context.support.XmlWebApplicationContext] - Closing Root WebApplicationContext: startup date [Sat Jan 20 12:18:25 CST 2018]; root of context hierarchy
2018-01-20 12:18:27,624 [localhost-startStop-1] DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Returning cached instance of singleton bean 'sqlSessionFactory'
2018-01-20 12:18:27,625 [localhost-startStop-1] DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Returning cached instance of singleton bean 'lifecycleProcessor'
2018-01-20 12:18:27,625 [localhost-startStop-1] DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@a502c9: defining beans [blogAdminController,bloggerAdminController,blogTypeAdminController,commentAdminController,linkAdminController,systemAdminController,blogController,bloggerController,commentController,indexController,initBloggerData,bloggerService,blogService,blogTypeService,commentService,linkService,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.event.internalEventListenerProcessor,org.springframework.context.event.internalEventListenerFactory,dataSource,sqlSessionFactory,org.mybatis.spring.mapper.MapperScannerConfigurer#0,transactionManager,myRealm,securityManager,shiroFilter,lifecycleBeanPostProcessor,org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator#0,org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor#0,txAdvice,org.springframework.aop.config.internalAutoProxyCreator,pointCut,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor,org.springframework.context.annotation.ConfigurationClassPostProcessor.enhancedConfigurationProcessor,blogDao,bloggerDao,blogTypeDao,commentDao,linkDao]; root of factory hierarchy
2018-01-20 12:18:27,633 [localhost-startStop-1] DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Retrieved dependent beans for bean '(inner bean)#12817cf': [txAdvice]
2018-01-20 12:18:27,633 [localhost-startStop-1] DEBUG [org.springframework.beans.factory.support.DisposableBeanAdapter] - Invoking destroy method 'close' on bean with name 'dataSource'
2018-01-20 12:18:27,636 [localhost-startStop-1] INFO [com.alibaba.druid.pool.DruidDataSource] - {dataSource-1} closed
一月 20, 2018 12:18:27 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/Blog] registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
一月 20, 2018 12:18:27 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/Blog] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
一月 20, 2018 12:18:27 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/Blog] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.
一月 20, 2018 12:18:27 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
一月 20, 2018 12:18:27 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8089"]
一月 20, 2018 12:18:27 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 4203 ms

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions