简体   繁体   English

错误context.ContextLoader-上下文初始化失败

[英]ERROR context.ContextLoader - Context initialization failed

I upgrade project from 1.3.7 to 2.2.1 in my GGTS.When run project I got the error following: 我将GGTS中的项目从1.3.7升级到2.2.1。运行项目时出现以下错误:

| Error 2013-07-26 13:28:09,778 [localhost-startStop-1] ERROR context.ContextLoader  - Context initialization failed
Message: org.springframework.context.support.AbstractRefreshableConfigApplicationContext.getEnvironment()Lorg/springframework/core/env/ConfigurableEnvironment;
    Line | Method
->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    166 | run       in java.util.concurrent.FutureTask
|   1110 | runWorker in java.util.concurrent.ThreadPoolExecutor
|    603 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
^    679 | run . . . in java.lang.Thread
| Error 2013-07-26 13:28:09,819 [localhost-startStop-1] ERROR context.GrailsContextLoader  - Error initializing the application: org.springframework.context.support.AbstractRefreshableConfigApplicationContext.getEnvironment()Lorg/springframework/core/env/ConfigurableEnvironment;
Message: org.springframework.context.support.AbstractRefreshableConfigApplicationContext.getEnvironment()Lorg/springframework/core/env/ConfigurableEnvironment;
    Line | Method
->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    166 | run       in java.util.concurrent.FutureTask
|   1110 | runWorker in java.util.concurrent.ThreadPoolExecutor
|    603 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
^    679 | run . . . in java.lang.Thread

I had a similiar problem in GGTS after having upgraded a project. 升级项目后,我在GGTS中遇到了类似的问题。 Try to launch the project using a command line: 尝试使用命令行启动项目:

grails run-app

If it worked then you have to upgrade GGTS itself to the last version. 如果可行,则必须将GGTS本身升级到最新版本。

For me it was the open jdk. 对我来说,这是开放的jdk。 i installed oracle jdk and jre then i could run the application without any problem 我安装了oracle jdk和jre,然后我可以运行该应用程序而没有任何问题

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ContextLoader-上下文初始化失败 - ContextLoader - Context initialization failed 错误:org.springframework.web.context.ContextLoader - 上下文初始化失败 - ERROR: org.springframework.web.context.ContextLoader - Context initialization failed 错误:org.springframework.web.context.ContextLoader-上下文初始化失败[context-security.xml] - ERROR: org.springframework.web.context.ContextLoader - Context initialization failed [context-security.xml] 错误:org.springframework.web.context.ContextLoader-上下文初始化失败org.springframework.beans.factory.BeanCreationException - ERROR: org.springframework.web.context.ContextLoader - Context initialization failed org.springframework.beans.factory.BeanCreationException 春季错误:org.springframework.web.context.ContextLoader-上下文初始化失败 - spring error :org.springframework.web.context.ContextLoader - Context initialization failed 码头:错误[org.springframework.web.context.ContextLoader:215]-上下文初始化失败 - Jetty: ERROR [org.springframework.web.context.ContextLoader:215] - Context initialization failed 无法在 macOS 上使用 tomcat 部署应用程序:org.springframework.web.context.ContextLoader.initWebApplicationContext 上下文初始化失败 - Cannot deploy app using tomcat on macOS: org.springframework.web.context.ContextLoader.initWebApplicationContext Context initialization failed 上下文初始化失败。 春季错误NoSuchMethodException - Context initialization failed. Spring error NoSuchMethodException Tomcat上下文初始化失败 - Tomcat Context initialization failed 上下文初始化失败Spring MVC错误 - Context initialization failed Error with Spring MVC
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM