1

我在 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
4

2 回答 2

1

升级项目后,我在 GGTS 中遇到了类似的问题。尝试使用命令行启动项目:

grails run-app

如果它有效,那么您必须将GGTS本身升级到最新版本。

于 2013-07-25T16:24:53.210 回答
0

对我来说,它是开放的 jdk。我安装了 oracle jdk 和 jre 然后我可以毫无问题地运行应用程序

于 2013-11-25T22:50:17.967 回答