JBoss HelloWorld appilcation无法启动

dev*_*ger 7 java jboss7.x

嗨,

我正在尝试启动JBoss示例应用程序'jboss-as-helloworld'.得到了这样的例外:

16:23:51,118 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) Starting deployment of "jboss-as-helloworld.war"
16:23:51,176 INFO  [org.jboss.weld] (MSC service thread 1-5) Processing CDI deployment: jboss-as-helloworld.war
16:23:51,178 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC00001: Failed to start service jboss.deployment.unit."jboss-as-helloworld.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."jboss-as-helloworld.war".INSTALL: Failed to process phase INSTALL of deployment "jboss-as-helloworld.war"
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
    at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.7.0_02]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.7.0_02]
    at java.lang.Thread.run(Thread.java:722) [:1.7.0_02]
Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.naming.context.java.app.jboss-as-helloworld is already registered
    at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:154)
    at org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:226)
    at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:560)
    at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:201)
    at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2194)
    at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:201)
    at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2194)
    at org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:307)
    at org.jboss.as.ee.naming.ApplicationContextProcessor.deploy(ApplicationContextProcessor.java:62)
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
    ... 5 more

16:23:51,180 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of "jboss-as-helloworld.war" was rolled back with failure message {"Failed services" => {"jboss.deployment.unit.\"jboss-as-helloworld.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"jboss-as-helloworld.war\".INSTALL: Failed to process phase INSTALL of deployment \"jboss-as-helloworld.war\""}}
16:23:51,191 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Stopped deployment jboss-as-helloworld.war in 10ms
16:23:51,192 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.deployment.unit.\"jboss-as-helloworld.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"jboss-as-helloworld.war\".INSTALL: Failed to process phase INSTALL of deployment \"jboss-as-helloworld.war\""}}}}
Run Code Online (Sandbox Code Playgroud)

JBoss 7.0 Runtime Server已经启动,我可以访问JBoss启动页面http://localhost:8080和JBoss控制台.

我没有更改任何代码或xml,一切都是默认的.告诉我是否需要提供其他信息来调查此问题.

use*_*575 5

从错误中,它看起来像已经部署在服务器上的"Hello world"(可能您选择安装示例):

Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.naming.context.java.app.jboss-as-helloworld is already registered
Run Code Online (Sandbox Code Playgroud)

尝试取消部署此应用程序,然后再次部署.或者您可以重命名您的第一个"hello world"应用程序并进行部署 - 因此没有名称冲突.