3 Replies Latest reply on Sep 26, 2016 10:32 PM by errollsipagan

    Wildfly 10: Cannot upload deployment, Required services that are not installed

    errollsipagan

      Every time I deploy a war file in wildfly 10, I got this following error :

       

      Cannot upload deployment: {"WFLYCTL0080: Failed services" =>{"jboss.deployment.unit.\"member.war\".FIRST_MODULE_USE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"member.war\".FIRST_MODULE_USE: WFLYSRV0153: Failed to process phase FIRST_MODULE_USE of deployment \"member.war\" Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYJCA0064: Exception deploying datasource java:/PostgresDS Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.data-source.\"jboss.naming.context.java.PostgresDS\" is already registered"},"WFLYCTL0412: Required services that are not installed:" => ["jboss.deployment.unit.\"member.war\".FIRST_MODULE_USE"],"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined}

       

      It happens when I changed my persistence.xml and *-ds.xml which is telling my application to use the 'PostgresDS' as its datasource. I have created a database source on Admin named 'PostgresDS'.

        • 1. Re: Wildfly 10: Cannot upload deployment, Required services that are not installed
          mayerw01

          >>> DuplicateServiceException

          You should either install the datasource via admin or -ds.xml, not both.

           

          But -ds.xml file deployments are deprecated. Support may be removed in a future version.

          • 2. Re: Wildfly 10: Cannot upload deployment, Required services that are not installed
            errollsipagan

            Thank you Wolfgang Mayer, I've removed the -ds.xml and just left the persistence.xml :

            <jta-data-source>java:jboss/datasources/PostgresDS</jta-data-source>

            So I'm telling my war to use PostgresDS datasource installed in the admin right?

             

            I'm not having PostgresDS is already registered error  any more but having these one

             

            Cannot upload deployment: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"member.war\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"member.war\".PARSE: WFLYSRV0153: Failed to process phase PARSE of deployment \"member.war\" Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Unexpected EOF in prolog at [row,col {unknown-source}]: [52,0] Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col {unknown-source}]: [52,0]"},"WFLYCTL0412: Required services that are not installed:" => ["jboss.deployment.unit.\"member.war\".PARSE"],"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined}

             

            I'm sorry, I'm just a beginner trying to learn...

            • 3. Re: Wildfly 10: Cannot upload deployment, Required services that are not installed
              errollsipagan

              Do not reply my last reply. I've already deployed my war and I can see the data on the postgresql db. Thank you for telling me that I should not configure twice the datasource, via -ds.xml or admin.