无法在Windows上启动TomEE?

时间:2013-04-09 10:12:26

标签: java-ee install ejb openejb

这是cmd输出......

----------------------------------------------------------------

Installing the service 'TomEE' ...
Using CATALINA_HOME:    "C:\tomee"
Using CATALINA_BASE:    "C:\tomee"
Using JAVA_HOME:        "C:\program files\Java\jdk1.6.0_26"
Using JRE_HOME:         "C:\program files\Java\jdk1.6.0_26\jre"
Using JVM:              "C:\program files\Java\jdk1.6.0_26\jre\bin\server\jvm.dl
l"
""C:\tomee\bin\TomEE.x86.exe"" //IS//TomEE
[2013-04-09 16:16:39] [error] Unrecognized cmd option C:\tomee\bin\TomEE.x86.exe

[2013-04-09 16:16:39] [error] The specified module could not be found.
[2013-04-09 16:16:39] [error] Invalid command line arguments
[2013-04-09 16:16:39] [error] The specified module could not be found.
[2013-04-09 16:16:39] [error] Commons Daemon procrun failed with exit value: 1 (
Failed to parse command line arguments)
[2013-04-09 16:16:39] [error] The specified module could not be found.
Failed installing 'TomEE' service

------------------------------------------------------------------

我没有配置任何文件。但Startup.bat工作并公开localhost:8080。但是当我试图从网页上打开Tomee Gui时。它没有加载。

1 个答案:

答案 0 :(得分:5)

我刚刚将TomEE v1.6.0配置为Windows服务,其操作如下:

1 - 以管理员身份运行Windows CMD
2 - 转到TomEE bin文件夹($ {tomee} \ bin)
3 - 执行以下命令:

service.bat install

4 - 现在运行你的TomEE并测试它

希望这有帮助