1

I have been having the most difficult time deploying an enterprise application on Jboss. In my opinion Jboss is ridiculously un-intuitive and Impossible configure without extensive help. I am migrating to JBoss because glassfish has stopped it's commercial support. I have trying to Deploy the enterprise application by(this is EAP7 btw): Deployments->server-groups->main-servergroup->add When I click deploy I get this error:

Unexpected HTTP response: 500 Request { "operation" => "add", "address" => [ ("server-group" => "main-server-group"), ("deployment" => "FlcErp_060116.1.ear") ], "runtime-name" => "FlcErp_060116.1.ear", "enabled" => true } Response Internal Server Error { "outcome" => "failed", "result" => undefined, "failure-description" => {"WFLYDC0074: Operation failed or was rolled back on all servers. Server failures:" => {"server-group" => {"main-server-group" => {"host" => {"master" => { "server-one" => {"WFLYCTL0180: Services with missing/unavailable dependencies" => [ "jboss.persistenceunit.\"FlcErp_060116.1.ear/FlcErp_v2-ejb.jar#FlcErp-enterprisePU\" is missing [jboss.naming.context.java.jdbc.erp]", "jboss.persistenceunit.\"FlcErp_060116.1.ear/PlantTwoScanner-ejb.jar#PlantTwoScanner-ejbPU\" is missing [jboss.naming.context.java.jdbc.erp]", "jboss.persistenceunit.\"FlcErp_060116.1.ear/PlantFourScanner-ejb.jar#PlantFourScanner-ejbPU\".__FIRST_PHASE__ is missing [jboss.naming.context.java.jdbc.erp]", "jboss.persistenceunit.\"FlcErp_060116.1.ear/FlcErp_v2-ejb.jar#FlcErp-enterprisePU\".__FIRST_PHASE__ is missing [jboss.naming.context.java.jdbc.erp]", "jboss.persistenceunit.\"FlcErp_060116.1.ear/PlantFourScanner-ejb.jar#PlantFourScanner-ejbPU\" is missing [jboss.naming.context.java.jdbc.erp]", "jboss.persistenceunit.\"FlcErp_060116.1.ear/PlantTwoScanner-ejb.jar#PlantTwoScanner-ejbPU\".__FIRST_PHASE__ is missing [jboss.naming.context.java.jdbc.erp]" ]}, "server-two" => {"WFLYCTL0180: Services with missing/unavailable dependencies" => [ "jboss.persistenceunit.\"FlcErp_060116.1.ear/PlantFourScanner-ejb.jar#PlantFourScanner-ejbPU\".__FIRST_PHASE__ is missing [jboss.naming.context.java.jdbc.erp]", "jboss.persistenceunit.\"FlcErp_060116.1.ear/FlcErp_v2-ejb.jar#FlcErp-enterprisePU\".__FIRST_PHASE__ is missing [jboss.naming.context.java.jdbc.erp]", "jboss.persistenceunit.\"FlcErp_060116.1.ear/PlantTwoScanner-ejb.jar#PlantTwoScanner-ejbPU\" is missing [jboss.naming.context.java.jdbc.erp]", "jboss.persistenceunit.\"FlcErp_060116.1.ear/PlantTwoScanner-ejb.jar#PlantTwoScanner-ejbPU\".__FIRST_PHASE__ is missing [jboss.naming.context.java.jdbc.erp]", "jboss.persistenceunit.\"FlcErp_060116.1.ear/PlantFourScanner-ejb.jar#PlantFourScanner-ejbPU\" is missing [jboss.naming.context.java.jdbc.erp]", "jboss.persistenceunit.\"FlcErp_060116.1.ear/FlcErp_v2-ejb.jar#FlcErp-enterprisePU\" is missing [jboss.naming.context.java.jdbc.erp]" ]} }}}}}}, "rolled-back" => true, "server-groups" => {"main-server-group" => {"host" => {"master" => { "server-one" => {"response" => { "outcome" => "failed", "failure-description" => {"WFLYCTL0180: Services with missing/unavailable dependencies" => [ "jboss.persistenceunit.\"FlcErp_060116.1.ear/FlcErp_v2-ejb.jar#FlcErp-enterprisePU\" is missing [jboss.naming.context.java.jdbc.erp]", "jboss.persistenceunit.\"FlcErp_060116.1.ear/PlantTwoScanner-ejb.jar#PlantTwoScanner-ejbPU\" is missing [jboss.naming.context.java.jdbc.erp]", "jboss.persistenceunit.\"FlcErp_060116.1.ear/PlantFourScanner-ejb.jar#PlantFourScanner-ejbPU\".__FIRST_PHASE__ is missing [jboss.naming.context.java.jdbc.erp]", "jboss.persistenceunit.\"FlcErp_060116.1.ear/FlcErp_v2-ejb.jar#FlcErp-enterprisePU\".__FIRST_PHASE__ is missing [jboss.naming.context.java.jdbc.erp]", "jboss.persistenceunit.\"FlcErp_060116.1.ear/PlantFourScanner-ejb.jar#PlantFourScanner-ejbPU\" is missing [jboss.naming.context.java.jdbc.erp]", "jboss.persistenceunit.\"FlcErp_060116.1.ear/PlantTwoScanner-ejb.jar#PlantTwoScanner-ejbPU\".__FIRST_PHASE__ is missing [jboss.naming.context.java.jdbc.erp]" ]}, "rolled-back" => true }}, "server-two" => {"response" => { "outcome" => "failed", "failure-description" => {"WFLYCTL0180: Services with missing/unavailable dependencies" => [ "jboss.persistenceunit.\"FlcErp_060116.1.ear/PlantFourScanner-ejb.jar#PlantFourScanner-ejbPU\".__FIRST_PHASE__ is missing [jboss.naming.context.java.jdbc.erp]", "jboss.persistenceunit.\"FlcErp_060116.1.ear/FlcErp_v2-ejb.jar#FlcErp-enterprisePU\".__FIRST_PHASE__ is missing [jboss.naming.context.java.jdbc.erp]", "jboss.persistenceunit.\"FlcErp_060116.1.ear/PlantTwoScanner-ejb.jar#PlantTwoScanner-ejbPU\" is missing [jboss.naming.context.java.jdbc.erp]", "jboss.persistenceunit.\"FlcErp_060116.1.ear/PlantTwoScanner-ejb.jar#PlantTwoScanner-ejbPU\".__FIRST_PHASE__ is missing [jboss.naming.context.java.jdbc.erp]", "jboss.persistenceunit.\"FlcErp_060116.1.ear/PlantFourScanner-ejb.jar#PlantFourScanner-ejbPU\" is missing [jboss.naming.context.java.jdbc.erp]", "jboss.persistenceunit.\"FlcErp_060116.1.ear/FlcErp_v2-ejb.jar#FlcErp-enterprisePU\" is missing [jboss.naming.context.java.jdbc.erp]" ]}, "rolled-back" => true }} }}}} } 

I little research returned that this is due to a Missing driver which I have been trying to correct with no success. I have added this to /opt/JBoss7/domain/configuration/domain.xml :

<datasource
        jndi-name="java:/erp" pool-name="erpPool"
        enabled="true" jta="true"
        use-java-context="true" use-ccm="true">
    <connection-url>
        jdbc:mysql://localhost:3306/erp
    </connection-url>
    <driver>
        mysql
    </driver>
    <security>
        <user-name>
            root
        </user-name>
        <password>
    flc_admin14114
        </password>
    </security>
    <statement>
        <prepared-statement-cache-size>
            100
        </prepared-statement-cache-size>
        <share-prepared-statements/>
    </statement>
</datasource>

As well as register the driver:

<driver name = "mysql" module = "com.mysql" />

I have also tried to deploy my mysql driver as appliction(the same way I deployed the enterprise application) Still no luck, please don't link me to sites, i've seen them all already.

Edit: Just tried to deploy my dataSource again and got this error:

Message





 Tue Jun 07 10:00:26 GMT-700 2016
Unknown error

Unexpected HTTP response: 500

Request
{
    "operation" => "composite",
    "address" => [],
    "steps" => [
        {
            "password" => "flc_admin14114",
            "enabled" => true,
            "jndi-name" => "java:/MysqlDataSource",
            "user-name" => "admin",
            "pool-name" => "MysqlDataSource_Pool",
            "driver-class" => "com.mysql.jdbc.Driver",
            "driver-name" => "mysql",
            "valid-connection-checker-class-name" => "org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLValidConnectionChecker",
            "background-validation" => true,
            "exception-sorter-class-name" => "org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLExceptionSorter",
            "use-ccm" => true,
            "name" => "MysqlDataSource",
            "operation" => "add",
            "address" => [
                ("profile" => "Freres_Admin"),
                ("subsystem" => "datasources"),
                ("xa-data-source" => "MysqlDataSource")
            ]
        },
        {
            "address" => [
                ("profile" => "Freres_Admin"),
                ("subsystem" => "datasources"),
                ("xa-data-source" => "MysqlDataSource"),
                ("xa-datasource-properties" => "ServerName")
            ],
            "operation" => "add",
            "value" => "localhost"
        },
        {
            "address" => [
                ("profile" => "Freres_Admin"),
                ("subsystem" => "datasources"),
                ("xa-data-source" => "MysqlDataSource"),
                ("xa-datasource-properties" => "DatabaseName")
            ],
            "operation" => "add",
            "value" => "erp"
        }
    ]
}

    Response

    Internal Server Error
    {
        "outcome" => "failed",
        "failure-description" => {"domain-failure-description" => {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => "WFLYCTL0158: Operation handler failed: java.lang.IllegalStateException: WFLYCTL0363: Capability 'org.wildfly.data-source.MysqlDataSource' is already registered in context 'profile=Freres_Admin'."}}},
        "rolled-back" => true
    }
1
  • I've been off the loop with latest JBosses so I can't help you with technicalities, but your question seems conflicting. Please tell what happened with the application deployment after you had added the datasource to domain.xml and registered the mysql driver. Although you say no to links, you should follow docs.jboss.org/author/display/AS71/DataSource+configuration on how to check the existing datasources to verify your configuration. – zagrimsan Jun 11 '16 at 8:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.