ERROR ContextLoader:351 - Context initialization failed

今天在做bos项目第3天的代码:
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building bos_management 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> tomcat7-maven-plugin:2.1:run (default-cli) @ bos_management >>>
[WARNING] The POM for com.oracle:ojdbc6:jar:11.2.0.1.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ bos_management ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ bos_management ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 17 source files to D:\class\bos\bos\bos_management\target\classes
[WARNING] 未与 -source 1.7 一起设置引导类路径
[INFO] 
[INFO] <<< tomcat7-maven-plugin:2.1:run (default-cli) @ bos_management <<<
[INFO] 
[INFO] --- tomcat7-maven-plugin:2.1:run (default-cli) @ bos_management ---
[INFO] Running war on http://localhost:9001/
[INFO] Using existing Tomcat server configuration at D:\class\bos\bos\bos_management\target\tomcat
[INFO] create webapp with contextPath: 
十一月 19, 2017 10:42:38 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-9001"]
十一月 19, 2017 10:42:38 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Tomcat
十一月 19, 2017 10:42:38 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.37
十一月 19, 2017 10:42:48 下午 org.apache.catalina.core.ApplicationContext log
信息: No Spring WebApplicationInitializer types detected on classpath
十一月 19, 2017 10:42:49 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
22:42:49,071  INFO ContextLoader:305 - Root WebApplicationContext: initialization started
22:42:49,285  INFO XmlWebApplicationContext:578 - Refreshing Root WebApplicationContext: startup date [Sun Nov 19 22:42:49 CST 2017]; root of context hierarchy
22:42:49,359  INFO XmlBeanDefinitionReader:317 - Loading XML bean definitions from class path resource [applicationContext.xml]
22:42:50,667  INFO PropertySourcesPlaceholderConfigurer:172 - Loading properties file from class path resource [config.properties]
22:42:50,727  INFO AutowiredAnnotationBeanPostProcessor:153 - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
22:42:50,959  INFO MLog:80 - MLog clients using log4j logging.
22:42:51,055  INFO C3P0Registry:204 - Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]
22:42:51,650  INFO LocalContainerEntityManagerFactoryBean:336 - Building JPA container EntityManagerFactory for persistence unit 'default'
22:42:51,724  INFO LogHelper:31 - HHH000204: Processing PersistenceUnitInfo [
    name: default
    ...]
22:42:52,060  INFO Version:37 - HHH000412: Hibernate Core {
  5.0.1.Final}
22:42:52,077  INFO Environment:213 - HHH000206: hibernate.properties not found
22:42:52,084  INFO Environment:317 - HHH000021: Bytecode provider name : javassist
22:42:52,304  INFO Version:66 - HCANN000001: Hibernate Commons Annotations {
  5.0<
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
Error: java:Context initialization failed是指在应用程序上下文初始化过程中遇到了错误。根据引用的描述,这个错误是由于创建名为'dataSource'的bean时出现了错误。这可能是由于配置错误、依赖问题或代码错误引起的。 根据引用和引用的描述,我可以推测可能有以下几个原因导致这个错误: 1. 配置错误:检查应用程序的配置文件,特别是与'dataSource'相关的配置,确保没有任何错误或遗漏。 2. 依赖问题:检查应用程序的依赖关系,确保所需的库和依赖项已正确添加和配置。可能需要更新或重新安装依赖项。 3. 代码错误:检查代码中与'dataSource'相关的部分,确保没有错误或逻辑问题。特别注意是否正确引入和配置了相应的类和接口。 综上所述,如果遇到Error: java:Context initialization failed错误,建议先检查相关的配置文件、依赖关系和代码,并修复可能的错误。如果问题仍然存在,可能需要进一步调查和排查其他可能的原因。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [spring框架进行简单的增加操作出现的错误,解决方法](https://download.csdn.net/download/IDCSDNS/85772683)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *2* *3* [ERROR ContextLoader:351 - Context initialization failed](https://blog.csdn.net/xman2008wang/article/details/78578151)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值