问题描述
- 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]
解决方案
缺少jar包吧 应该
解决方案二:
ERROR Could not instantiate configurator [org.apache.log4j.xml.DOMConfigurator]
从这段话看出来,log4J 配置出问题,或者log4J.Jar没有·
解决方案三:
tomcat的编译位置是不是有问题。错误里面显示找不到application-bean.配置文件 检查一下build-path
解决方案四:
log4J 配置出问题
解决方案五:
log4j有问题吧,看看相关的JAR包在不在
时间: 2024-10-26 05:48:32