1

我已经安装了 jhipster,我正在尝试使用 STS 运行我的应用程序。我想测试 hotreload 功能。

所以我运行 Application.java 类,我得到了很多错误,第一个错误是:

[ERROR] org.apache.catalina.core.ContainerBase - A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]]
    at java.util.concurrent.FutureTask.report(FutureTask.java:122) [na:1.7.0_60-ea]
    at java.util.concurrent.FutureTask.get(FutureTask.java:188) [na:1.7.0_60-ea]
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123) ~[tomcat-embed-core-7.0.52.jar:7.0.52]
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:799) [tomcat-embed-core-7.0.52.jar:7.0.52]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [tomcat-embed-core-7.0.52.jar:7.0.52]
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) [tomcat-embed-core-7.0.52.jar:7.0.52]
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) [tomcat-embed-core-7.0.52.jar:7.0.52]
    at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_60-ea]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_60-ea]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_60-ea]
    at java.lang.Thread.run(Thread.java:744) [na:1.7.0_60-ea]
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) [tomcat-embed-core-7.0.52.jar:7.0.52]
    ... 6 common frames omitted

我错过了什么?

先感谢您。

4

1 回答 1

0

您不需要 STS,只需要带有 J2EE 东西的 Eclipse。

在安装 maven 依赖项后,我已将 Eclipse 中的示例 jhipster(没有 STS)作为 Maven 项目导入,一切正常。

要运行该项目,请作为应用程序运行并在 Eclipse 中搜索应用程序 (com.mycompany.myapp.Application)。

于 2014-05-06T12:39:31.640 回答