0 Replies Latest reply on Nov 27, 2018 4:45 AM by whatthe

    Failed to process phase POST_MODULE of deployment "..."

    whatthe

      hello!

       

      could someone please help me?

       

      I have a problem starting/deploying a dynamic web project using the Wildfly 14 server. My IDE is eclipse 1.8.

       

      When i try to run it on server, i keep getting the error message: Failed to start service jboss.deployment.unit.Addme.POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit.Addme.POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "Addme".

       

      When the Program opens in my web browser, it says: forbidden.

       

      I already googled the problem and tried several suggestions and none worked. I stopped my firewall, installed Eclipse, JDK and Wildfly again. I also tried different Wildfly versions.

       

      The program itself is fine, i've already checked that.

       

      Does anone have an idea? i'd be thankful for any suggestions! PLEASE help me... i've got no idea how to fix this and it's driving me crazy!

       

       

       

      (here's the whole console output if that helps:)

       

      22:23:36,010 INFO  [org.jboss.modules] (main) JBoss Modules version 1.8.6.Final

      22:23:39,767 INFO  [org.jboss.msc] (main) JBoss MSC version 1.4.3.Final

      22:23:39,801 INFO  [org.jboss.threads] (main) JBoss Threads version 2.3.2.Final

      22:23:40,271 INFO  [org.jboss.as] (MSC service thread 1-2) WFLYSRV0049: WildFly Full 14.0.1.Final (WildFly Core 6.0.2.Final) starting

      22:23:44,093 INFO  [org.wildfly.security] (ServerService Thread Pool -- 27) ELY00001: WildFly Elytron version 1.6.0.Final

      22:23:55,031 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/core-service=management/management-interface=http-interface' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.

      22:23:55,117 INFO  [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 14) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/subsystem=undertow/server=default-server/https-listener=https' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.

      22:23:55,348 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0004: Found HelloWorldServlet.war in deployment directory. To trigger deployment create a file called HelloWorldServlet.war.dodeploy

      22:23:55,354 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0004: Found Addme.war in deployment directory. To trigger deployment create a file called Addme.war.dodeploy

      22:23:55,470 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http)

      22:23:55,550 INFO  [org.xnio] (MSC service thread 1-3) XNIO version 3.6.5.Final

      22:23:55,622 INFO  [org.xnio.nio] (MSC service thread 1-3) XNIO NIO Implementation Version 3.6.5.Final

      22:23:55,796 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 66) WFLYSEC0002: Activating Security Subsystem

      22:23:55,862 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 60) WFLYNAM0001: Activating Naming Subsystem

      22:23:55,786 WARN  [org.jboss.as.txn] (ServerService Thread Pool -- 68) WFLYTX0013: The node-identifier attribute on the /subsystem=transactions is set to the default value. This is a danger for environments running multiple servers. Please make sure the attribute value is unique.

      22:23:55,901 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 48) WFLYCLINF0001: Activating Infinispan subsystem.

      22:23:55,946 INFO  [org.jboss.as.security] (MSC service thread 1-7) WFLYSEC0001: Current PicketBox version=5.0.3.Final

      22:23:55,961 INFO  [org.wildfly.extension.microprofile.config.smallrye._private] (ServerService Thread Pool -- 57) WFLYCONF0001: Activating WildFly MicroProfile Config Subsystem

      22:23:55,993 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 70) WFLYWS0002: Activating WebServices Extension

      22:23:56,053 INFO  [org.wildfly.extension.microprofile.opentracing] (ServerService Thread Pool -- 59) WFLYTRACEXT0001: Activating MicroProfile OpenTracing Subsystem

      22:23:56,072 INFO  [org.jboss.as.connector] (MSC service thread 1-6) WFLYJCA0009: Starting JCA Subsystem (WildFly/IronJacamar 1.4.11.Final)

      22:23:56,096 INFO  [org.jboss.as.jsf] (ServerService Thread Pool -- 55) WFLYJSF0007: Activated the following JSF Implementations: [main]

      22:23:56,186 INFO  [org.wildfly.extension.microprofile.health.smallrye] (ServerService Thread Pool -- 58) WFLYHEALTH0001: Activating Eclipse MicroProfile Health Subsystem

      22:23:56,410 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 41) WFLYJCA0004: Deploying JDBC-compliant driver class org.h2.Driver (version 1.4)

      22:23:56,418 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-8) WFLYMAIL0002: Unbound mail session [java:jboss/mail/Default]

      22:23:56,604 INFO  [org.jboss.as.naming] (MSC service thread 1-8) WFLYNAM0003: Starting Naming Service

      22:23:56,624 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-8) WFLYJCA0018: Started Driver service with driver-name = h2

      22:23:56,667 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-8) WFLYMAIL0001: Bound mail session [java:jboss/mail/Default]

      22:23:56,796 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0003: Undertow 2.0.13.Final starting

      22:23:57,033 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-5) WFLYJCA0010: Unbound data source [java:jboss/datasources/ExampleDS]

      22:23:58,447 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 69) WFLYUT0014: Creating file handler for path 'C:\wildfly-14.0.1.Final/welcome-content' with options [directory-listing: 'false', follow-symlink: 'false', case-sensitive: 'true', safe-symlink-paths: '[]']

      22:23:58,527 INFO  [org.wildfly.extension.io] (ServerService Thread Pool -- 49) WFLYIO001: Worker 'default' has auto-configured to 8 core threads with 64 task threads based on your 4 available processors

      22:23:58,552 INFO  [org.jboss.as.ejb3] (MSC service thread 1-4) WFLYEJB0482: Strict pool mdb-strict-max-pool is using a max instance size of 16 (per class), which is derived from the number of CPUs on this host.

      22:23:58,556 INFO  [org.jboss.as.ejb3] (MSC service thread 1-5) WFLYEJB0481: Strict pool slsb-strict-max-pool is using a max instance size of 64 (per class), which is derived from thread worker pool sizing.

      22:23:58,765 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0012: Started server default-server.

      22:23:58,782 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0018: Host default-host starting

      22:23:58,897 INFO  [org.jboss.remoting] (MSC service thread 1-6) JBoss Remoting version 5.0.8.Final

      22:23:59,032 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-3) WFLYUT0006: Undertow HTTP listener default listening on 127.0.0.1:8080

      22:23:59,324 INFO  [org.jboss.as.ejb3] (MSC service thread 1-6) WFLYEJB0493: EJB subsystem suspension complete

      22:23:59,644 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-6) WFLYJCA0001: Bound data source [java:jboss/datasources/ExampleDS]

      22:24:00,758 INFO  [org.jboss.as.jaxrs] (ServerService Thread Pool -- 50) WFLYRS0016: RESTEasy version 3.6.1.Final

      22:24:06,580 INFO  [org.jboss.as.patching] (MSC service thread 1-7) WFLYPAT0050: WildFly Full cumulative patch ID is: base, one-off patches include: none

      22:24:06,610 WARN  [org.jboss.as.domain.management.security] (MSC service thread 1-3) WFLYDM0111: Keystore C:\wildfly-14.0.1.Final\standalone\configuration\application.keystore not found, it will be auto generated on first use with a self signed certificate for host localhost

      22:24:06,624 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-8) WFLYDS0013: Started FileSystemDeploymentService for directory C:\wildfly-14.0.1.Final\standalone\deployments

      22:24:06,651 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) WFLYSRV0027: Starting deployment of "Addme.war" (runtime-name: "Addme.war")

      22:24:06,656 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0027: Starting deployment of "HelloWorldServlet.war" (runtime-name: "HelloWorldServlet.war")

      22:24:07,173 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-5) WFLYUT0006: Undertow HTTPS listener https listening on 127.0.0.1:8443

      22:24:09,121 INFO  [org.jboss.ws.common.management] (MSC service thread 1-7) JBWS022052: Starting JBossWS 5.2.3.Final (Apache CXF 3.2.5.jbossorg-1)

      22:24:14,667 INFO  [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-3) ISPN000128: Infinispan version: Infinispan 'Estrella Galicia' 9.3.1.Final

      22:24:15,289 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 73) WFLYCLINF0002: Started client-mappings cache from ejb container

      22:24:15,980 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 76) WFLYUT0021: Registered web context: '/Addme' for server 'default-server'

      22:24:15,980 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 78) WFLYUT0021: Registered web context: '/HelloWorldServlet' for server 'default-server'

      22:24:16,034 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 42) WFLYSRV0010: Deployed "HelloWorldServlet.war" (runtime-name : "HelloWorldServlet.war")

      22:24:16,036 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 42) WFLYSRV0010: Deployed "Addme.war" (runtime-name : "Addme.war")

      22:24:16,255 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server

      22:24:16,261 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management

      22:24:16,262 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990

      22:24:16,263 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 14.0.1.Final (WildFly Core 6.0.2.Final) started in 42241ms - Started 471 of 657 services (331 services are lazy, passive or on-demand)

      22:24:46,579 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0011: The deployment scanner found a directory named META-INF that was not inside a directory whose name ends with .ear, .jar, .rar, .sar or .war. This is likely the result of unzipping an archive directly inside the C:\wildfly-14.0.1.Final\standalone\deployments directory, which is a user error. The META-INF directory will not be scanned for deployments, but it is possible that the scanner may find other files from the unzipped archive and attempt to deploy them, leading to errors.

      22:24:46,579 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0011: The deployment scanner found a directory named WEB-INF that was not inside a directory whose name ends with .ear, .jar, .rar, .sar or .war. This is likely the result of unzipping an archive directly inside the C:\wildfly-14.0.1.Final\standalone\deployments directory, which is a user error. The WEB-INF directory will not be scanned for deployments, but it is possible that the scanner may find other files from the unzipped archive and attempt to deploy them, leading to errors.

      22:24:46,604 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0027: Starting deployment of "HelloWorldServlet" (runtime-name: "HelloWorldServlet")

      22:24:46,689 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.deployment.unit.HelloWorldServlet.POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit.HelloWorldServlet.POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "HelloWorldServlet"

      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:151)

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1736)

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1698)

      at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1556)

      at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)

      at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)

      at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)

      at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)

      at java.lang.Thread.run(Thread.java:748)

      Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.naming.context.java.module.HelloWorldServlet.HelloWorldServlet is already registered

      at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:111)

      at org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:245)

      at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:757)

      at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:260)

      at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2056)

      at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:260)

      at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2056)

      at org.jboss.msc.service.ObsoleteServiceBuilderImpl.install(ObsoleteServiceBuilderImpl.java:293)

      at org.jboss.as.ee.naming.ModuleContextProcessor.deploy(ModuleContextProcessor.java:74)

      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:144)

      ... 8 more

       

       

      22:24:46,700 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "HelloWorldServlet")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.HelloWorldServlet.POST_MODULE" => "WFLYSRV0153: Failed to process phase POST_MODULE of deployment \"HelloWorldServlet\"

          Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.naming.context.java.module.HelloWorldServlet.HelloWorldServlet is already registered"}}

      22:24:46,877 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) WFLYSRV0010: Deployed "HelloWorldServlet" (runtime-name : "HelloWorldServlet")

      22:24:46,879 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) WFLYCTL0183: Service status report

      WFLYCTL0186:   Services which failed to start:      service jboss.deployment.unit.HelloWorldServlet.POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "HelloWorldServlet"

       

       

      22:26:07,724 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0011: The deployment scanner found a directory named META-INF that was not inside a directory whose name ends with .ear, .jar, .rar, .sar or .war. This is likely the result of unzipping an archive directly inside the C:\wildfly-14.0.1.Final\standalone\deployments directory, which is a user error. The META-INF directory will not be scanned for deployments, but it is possible that the scanner may find other files from the unzipped archive and attempt to deploy them, leading to errors.

      22:26:07,724 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0011: The deployment scanner found a directory named WEB-INF that was not inside a directory whose name ends with .ear, .jar, .rar, .sar or .war. This is likely the result of unzipping an archive directly inside the C:\wildfly-14.0.1.Final\standalone\deployments directory, which is a user error. The WEB-INF directory will not be scanned for deployments, but it is possible that the scanner may find other files from the unzipped archive and attempt to deploy them, leading to errors.

      22:26:07,737 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0027: Starting deployment of "Addme" (runtime-name: "Addme")

      22:26:07,824 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit.Addme.POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit.Addme.POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "Addme"

      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:151)

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1736)

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1698)

      at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1556)

      at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)

      at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)

      at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)

      at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)

      at java.lang.Thread.run(Thread.java:748)

      Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.naming.context.java.module.Addme.Addme is already registered

      at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:111)

      at org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:245)

      at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:757)

      at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:260)

      at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2056)

      at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:260)

      at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2056)

      at org.jboss.msc.service.ObsoleteServiceBuilderImpl.install(ObsoleteServiceBuilderImpl.java:293)

      at org.jboss.as.ee.naming.ModuleContextProcessor.deploy(ModuleContextProcessor.java:74)

      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:144)

      ... 8 more

       

       

      22:26:07,829 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "Addme")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.Addme.POST_MODULE" => "WFLYSRV0153: Failed to process phase POST_MODULE of deployment \"Addme\"

          Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.naming.context.java.module.Addme.Addme is already registered"}}

      22:26:07,934 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) WFLYSRV0010: Deployed "Addme" (runtime-name : "Addme")

      22:26:07,936 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) WFLYCTL0183: Service status report

      WFLYCTL0186:   Services which failed to start:      service jboss.deployment.unit.Addme.POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "Addme"

            service jboss.deployment.unit.HelloWorldServlet.POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "HelloWorldServlet"

       

       

      22:36:18,068 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 13) WFLYUT0022: Unregistered web context: '/Addme' from server 'default-server'

      22:36:18,139 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) WFLYSRV0028: Stopped deployment Addme.war (runtime-name: Addme.war) in 85ms

      22:36:18,268 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) WFLYSRV0009: Undeployed "Addme.war" (runtime-name: "Addme.war")

      22:36:18,269 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) WFLYCTL0183: Service status report

      WFLYCTL0186:   Services which failed to start:      service jboss.deployment.unit.Addme.POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "Addme"

            service jboss.deployment.unit.HelloWorldServlet.POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "HelloWorldServlet"

       

       

      22:36:23,336 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) WFLYDS0004: Found Addme.war in deployment directory. To trigger deployment create a file called Addme.war.dodeploy

      22:36:23,353 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0027: Starting deployment of "Addme.war" (runtime-name: "Addme.war")

      22:36:23,750 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 80) WFLYUT0021: Registered web context: '/Addme' for server 'default-server'

      22:36:23,830 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) WFLYSRV0010: Deployed "Addme.war" (runtime-name : "Addme.war")

      22:36:23,831 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 1) WFLYCTL0183: Service status report

      WFLYCTL0186:   Services which failed to start:      service jboss.deployment.unit.Addme.POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "Addme"

            service jboss.deployment.unit.HelloWorldServlet.POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "HelloWorldServlet"