u011063194
u011063194
采纳率0%
2015-03-12 13:40 阅读 5.5k

eclipse tomcat项目启动报错

[12 21:38:11,361 INFO ] [localhost-startStop-1] annotation.ClassPathBeanDefinitionScanner - JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning
[12 21:38:12,168 INFO ] [localhost-startStop-1] xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [config/spring/application-bean.xml]
[12 21:38:14,239 INFO ] [localhost-startStop-1] config.PropertyPlaceholderConfigurer - Loading properties file from URL [file:/C:/Users/Think/workspace/iptp/build/classes/config/jdbc.properties]
[12 21:38:15,937 INFO ] [localhost-startStop-1] support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@19f3deb: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,studentAction,userAction,iStudentDao,iUserDao,iStudentService,iUserService,org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor#0,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,dataSource,sqlSessionFactory,sqlSessionTemplate,transactionManager,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; root of factory hierarchy
log4j:ERROR A "org.apache.log4j.xml.DOMConfigurator" object is not assignable to a "org.apache.log4j.spi.Configurator" variable.
log4j:ERROR The class "org.apache.log4j.spi.Configurator" was loaded by
log4j:ERROR [sun.misc.Launcher$AppClassLoader@644d46] whereas object of type
log4j:ERROR "org.apache.log4j.xml.DOMConfigurator" was loaded by [WebappClassLoader
context: /xxxx
delegate: false
----------> Parent Classloader:
java.net.URLClassLoader@1ebcae2
].
log4j:ERROR Could not instantiate configurator [org.apache.log4j.xml.DOMConfigurator].
[12 21:38:23,465 INFO ] [localhost-startStop-1] context.ContextLoader - Root WebApplicationContext: initialization completed in 14496 ms
[12 21:38:25,825 INFO ] [localhost-startStop-1] providers.XmlConfigurationProvider - Parsing configuration file [struts-default.xml]
[12 21:38:26,796 INFO ] [localhost-startStop-1] providers.XmlConfigurationProvider - Parsing configuration file [struts-plugin.xml]

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

5条回答 默认 最新

  • edu184 edu184 2015-03-13 01:59

    缺少jar包吧 应该

    点赞 评论 复制链接分享
  • yangliding2011 寻找现实扭曲力场 2015-03-13 02:09

    ERROR Could not instantiate configurator [org.apache.log4j.xml.DOMConfigurator]
    从这段话看出来,log4J 配置出问题,或者log4J.Jar没有·

    点赞 评论 复制链接分享
  • u010050904 popsidelee 2015-03-14 01:46

    tomcat的编译位置是不是有问题。错误里面显示找不到application-bean.配置文件 检查一下build-path

    点赞 评论 复制链接分享
  • junjunhuhuxiang junjunhuhuxiang 2015-03-14 06:05

    log4J 配置出问题

    点赞 评论 复制链接分享
  • qq_26595291 qq_26595291 2015-03-15 09:47

    log4j有问题吧,看看相关的JAR包在不在

    点赞 评论 复制链接分享

相关推荐