Duplicate resource Wildfly

Passionate Engineer picture Passionate Engineer · Jan 31, 2015 · Viewed 34.8k times · Source

I'm getting below error in Wildfly 8.2:

05:17:12,202 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.2.Final
05:17:12,285 INFO  [org.jboss.as] (MSC service thread 1-6) JBAS015899: WildFly 8.2.0.Final "Tweek" starting
05:17:13,199 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 12) JBAS014613: Operation ("add") failed - address: ([
    ("subsystem" => "datasources"),
    ("data-source" => "ExampleDS")
]) - failure description: "JBAS014803: Duplicate resource [
    (\"subsystem\" => \"datasources\"),
    (\"data-source\" => \"ExampleDS\")
]"

How can I remove duplicate?

Answer

i2ijeya picture i2ijeya · Jun 19, 2016

Under standalone/configuration/standalone-full.xml remove the duplicate deployment value.

Remove the below if mywar.war is the duplicate one.

<deployments>
    <deployment name="mywar.war" runtime-name="mywar.war">
        <content sha1="d642ffaa51228ab567439653a0923c69b7972cf5"/>
    </deployment>
</deployments>