4 Replies Latest reply on Apr 9, 2012 11:58 AM by clairelin

    Operation ("add") failed - always need to restart to get Datasource working


      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

      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.