簡體   English   中英

錯誤context.ContextLoader-上下文初始化失敗

[英]ERROR context.ContextLoader - Context initialization failed

我將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

升級項目后,我在GGTS中遇到了類似的問題。 嘗試使用命令行啟動項目:

grails run-app

如果可行,則必須將GGTS本身升級到最新版本。

對我來說,這是開放的jdk。 我安裝了oracle jdk和jre,然后我可以運行該應用程序而沒有任何問題

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM