Dear all,
I'm upgrading our projects from JBoss AS 6 to JBoss AS 7.1.1.Final. About the datasource configuration, I make it(Oracle 11) as a module.
But now, I always need to start up the server twice at least, i.e. when I start up the server first time, I get the error and the datasource doesn't deplot well, the message as below:
19:23:34,860 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-5) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
19:23:34,940 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) Operation ("add") failed - address: ([("deployment" => "tst-ear-1.0.0-SNAPSHOT.ear")]) - failure description: "JBAS014803: Duplicate resource [(\"deployment\" => \"tst-ear-1.0.0-SNAPSHOT.ear\")]"
19:23:34,946 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS014654: Composite operation was rolled back
19:23:34,956 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => "JBAS014803: Duplicate resource [(\"deployment\" => \"tst-ear-1.0.0-SNAPSHOT.ear\")]"}}
19:23:34,964 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
19:23:34,965 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 3088ms - Started 141 of 219 services (74 services are passive or on-demand)
Then, I need to shut down the server, start again, my server is on and everything goes well.
Anyone has the same problem? Appreciate your comment.
Thanks.
From those errors it looks like your ear is failing to deploy, rather than your data source. Is your ear listed in the <deployments> section of standalone.xml as well as being in the deployments directory by any chance?