hibernate - Error in deploying a Ear file in WildFly 9 -
i have ear application contains ejb app, webapp , client jar.
i have created datasources in wildfly names below:
java:jboss/datasources/nerstspds java:jboss/datasources/nersds java:jboss/datasources/nersmgtds
while deploying application getting below error
error in wildfly logs:
[org.jboss.as.controller.management-operation] (xnio-1 task-10) wflyctl0013: operation ("add") failed - address: ([{"deployment" => "nersserver-1.0.ear"}]) - failure description: {"wflyctl0180: services missing/unavailable dependencies" => [ "jboss.persistenceunit.\"nersserver-1.0.ear/dbserver-1.0.jar#nerstspds\" missing [jboss.naming.context.java.jboss.datasources.nerstspds]", "jboss.deployment.unit.\"nersserver-1.0.ear\".deploymentcompleteservice missing [jboss.deployment.subunit.\"nersserver-1.0.ear\".\"webserver-1.0.war\".deploymentcompleteservice]", "jboss.persistenceunit.\"nersserver-1.0.ear/dbserver-1.0.jar#nersmgtds\".__first_phase__ missing [jboss.naming.context.java.jboss.datasources.nersmgtds]", "jboss.persistenceunit.\"nersserver-1.0.ear/webserver-1.0.war#nersmgtds\".__first_phase__ missing [jboss.naming.context.java.jboss.datasources.nersmgtds]", "jboss.persistenceunit.\"nersserver-1.0.ear/webserver-1.0.war#nersds\".__first_phase__ missing [jboss.naming.context.java.jboss.datasources.nersds]", "jboss.persistenceunit.\"nersserver-1.0.ear/dbserver-1.0.jar#nersds\".__first_phase__ missing [jboss.naming.context.java.jboss.datasources.nersds]", "jboss.persistenceunit.\"nersserver-1.0.ear/dbserver-1.0.jar#nerstspds\".__first_phase__ missing [jboss.naming.context.java.jboss.datasources.nerstspds]", "jboss.persistenceunit.\"nersserver-1.0.ear/dbserver-1.0.jar#nersmgtds\" missing [jboss.naming.context.java.jboss.datasources.nersmgtds]", "jboss.deployment.subunit.\"nersserver-1.0.ear\".\"webserver-1.0.war\".weld.weldclassintrospector missing [jboss.deployment.subunit.\"nersserver-1.0.ear\".\"webserver-1.0.war\".beanmanager]", "jboss.persistenceunit.\"nersserver-1.0.ear/webserver-1.0.war#nerstspds\".__first_phase__ missing [jboss.naming.context.java.jboss.datasources.nerstspds]", "jboss.deployment.subunit.\"nersserver-1.0.ear\".\"dbserver-1.0.jar\".component.loginbean.start missing [jboss.persistenceunit.\"nersserver-1.0.ear/webserver-1.0.war#nersds\", jboss.persistenceunit.\"nersserver-1.0.ear/webserver-1.0.war#nersmgtds\", jboss.persistenceunit.\"nersserver-1.0.ear/webserver-1.0.war#nerstspds\"]", "jboss.persistenceunit.\"nersserver-1.0.ear/dbserver-1.0.jar#nersds\" missing [jboss.naming.context.java.jboss.datasources.nersds]", "jboss.deployment.subunit.\"nersserver-1.0.ear\".\"webserver-1.0.war\".batch.environment missing [jboss.deployment.subunit.\"nersserver-1.0.ear\".\"webserver-1.0.war\".bea
the error because using multiple datasources in persistence.xml of application , needed enable property allow multiple data sources in standalone.sh file of wildfly. after adding property error gone.
Comments
Post a Comment