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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -