Deployment works in Wildfly 14 but not 15. IllegalArgumentException Cannot both require and provide same dependencyWhat is resource-ref in web.xml used for?.EAR deploying order wildfly-8.0.0Finalhow to deploy resource adapter in jbossWild Fly Deployment Error (Failed to process phase POST_MODULE of subdeployment “DemoEjb.jar” of deployment “DemoApp.ear”)Illegal context in name: java:app/jdbc/ActionBazaarDSWildFly 10 with PostgreSQL 9.4 datasource Error deploying applicationJBoss7.1.0: Can't find a persistence unit named null in subdeploymentJBoss Wildfly 10 Ear deployment guide neededWildlfy deployment failedHow to map Datasources in Wildfly using deployment descriptorsCan't find a persistence unit named 'siscorp' in deployment javaee-angularjs.war

What is the origin of Scooby-Doo's name?

Primes and SemiPrimes in Binary

Is "Busen" just the area between the breasts?

How can I bring back a dead main character without cliches?

How does DC work with natural 20?

Why isn't my calculation that we should be able to see the sun well beyond the observable universe valid?

Do I have any obligations to my PhD supervisor's requests after I have graduated?

Can Ogre clerics use Purify Food and Drink on humanoid characters?

Do I need a shock-proof watch for cycling?

Why does Linux list NVMe drives as /dev/nvme0 instead of /dev/sda?

Putting a plot inside a tab

Non-misogynistic way to say “asshole”?

How to execute a command when ALL of the players are close enough

Methodology: Writing unit tests for another developer

Prime sieve in Python

How did the Vostok ejection seat safely eject an astronaut from a sealed space capsule?

Helping ease my back pain by studying 13 hours everyday , even weekends

I found a password with hashcat, but it doesn't work

Can I enter the UK for 24 hours from a Schengen area, holding an Indian passport?

Is there any proof that high saturation and contrast makes a picture more appealing in social media?

Why does using different ArrayList constructors cause a different growth rate of the internal array?

Creating a histogram using custom data

Hit the Bulls Eye with T in the Center

Why do all the teams that I have worked with always finish a sprint without completion of all the stories?



Deployment works in Wildfly 14 but not 15. IllegalArgumentException Cannot both require and provide same dependency


What is resource-ref in web.xml used for?.EAR deploying order wildfly-8.0.0Finalhow to deploy resource adapter in jbossWild Fly Deployment Error (Failed to process phase POST_MODULE of subdeployment “DemoEjb.jar” of deployment “DemoApp.ear”)Illegal context in name: java:app/jdbc/ActionBazaarDSWildFly 10 with PostgreSQL 9.4 datasource Error deploying applicationJBoss7.1.0: Can't find a persistence unit named null in subdeploymentJBoss Wildfly 10 Ear deployment guide neededWildlfy deployment failedHow to map Datasources in Wildfly using deployment descriptorsCan't find a persistence unit named 'siscorp' in deployment javaee-angularjs.war






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















Trying to get my jee ear deployed to wildfly 15 or 16.



I get this error:



"WFLYCTL0080: Failed services" => "jboss.deployment.subunit."test.ear"."web.war".INSTALL" => "WFLYSRV0153: Failed to process phase INSTALL of subdeployment "web.war" of deployment
"test.ear"
Caused by: java.lang.IllegalArgumentException: Cannot both require and provide same dependency:service jboss.naming.context.java.module.test.web.env.mainDB",
mainDB is a postgresql datasource configured in standalone.xml.



Any pointers in how I might track the source of the problem would be helpful.



Thanks!



The same exact ear deploys without any problems on wildfly versions prior 14.0.1. Tested on 14.0.1, 10.0.1, 9 and 8.










share|improve this question






















  • Can you post the entire exception from server.log? it may trigger any clue.

    – Ramesh Subramanian
    Mar 25 at 7:55











  • Hi Ramesh - thanks for taking a look, removing the redundant resource-ref in jboss-web.xml resolved this issue.

    – user3757849
    Mar 26 at 18:09

















0















Trying to get my jee ear deployed to wildfly 15 or 16.



I get this error:



"WFLYCTL0080: Failed services" => "jboss.deployment.subunit."test.ear"."web.war".INSTALL" => "WFLYSRV0153: Failed to process phase INSTALL of subdeployment "web.war" of deployment
"test.ear"
Caused by: java.lang.IllegalArgumentException: Cannot both require and provide same dependency:service jboss.naming.context.java.module.test.web.env.mainDB",
mainDB is a postgresql datasource configured in standalone.xml.



Any pointers in how I might track the source of the problem would be helpful.



Thanks!



The same exact ear deploys without any problems on wildfly versions prior 14.0.1. Tested on 14.0.1, 10.0.1, 9 and 8.










share|improve this question






















  • Can you post the entire exception from server.log? it may trigger any clue.

    – Ramesh Subramanian
    Mar 25 at 7:55











  • Hi Ramesh - thanks for taking a look, removing the redundant resource-ref in jboss-web.xml resolved this issue.

    – user3757849
    Mar 26 at 18:09













0












0








0








Trying to get my jee ear deployed to wildfly 15 or 16.



I get this error:



"WFLYCTL0080: Failed services" => "jboss.deployment.subunit."test.ear"."web.war".INSTALL" => "WFLYSRV0153: Failed to process phase INSTALL of subdeployment "web.war" of deployment
"test.ear"
Caused by: java.lang.IllegalArgumentException: Cannot both require and provide same dependency:service jboss.naming.context.java.module.test.web.env.mainDB",
mainDB is a postgresql datasource configured in standalone.xml.



Any pointers in how I might track the source of the problem would be helpful.



Thanks!



The same exact ear deploys without any problems on wildfly versions prior 14.0.1. Tested on 14.0.1, 10.0.1, 9 and 8.










share|improve this question














Trying to get my jee ear deployed to wildfly 15 or 16.



I get this error:



"WFLYCTL0080: Failed services" => "jboss.deployment.subunit."test.ear"."web.war".INSTALL" => "WFLYSRV0153: Failed to process phase INSTALL of subdeployment "web.war" of deployment
"test.ear"
Caused by: java.lang.IllegalArgumentException: Cannot both require and provide same dependency:service jboss.naming.context.java.module.test.web.env.mainDB",
mainDB is a postgresql datasource configured in standalone.xml.



Any pointers in how I might track the source of the problem would be helpful.



Thanks!



The same exact ear deploys without any problems on wildfly versions prior 14.0.1. Tested on 14.0.1, 10.0.1, 9 and 8.







java java-ee wildcard






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 25 at 7:38









user3757849user3757849

266




266












  • Can you post the entire exception from server.log? it may trigger any clue.

    – Ramesh Subramanian
    Mar 25 at 7:55











  • Hi Ramesh - thanks for taking a look, removing the redundant resource-ref in jboss-web.xml resolved this issue.

    – user3757849
    Mar 26 at 18:09

















  • Can you post the entire exception from server.log? it may trigger any clue.

    – Ramesh Subramanian
    Mar 25 at 7:55











  • Hi Ramesh - thanks for taking a look, removing the redundant resource-ref in jboss-web.xml resolved this issue.

    – user3757849
    Mar 26 at 18:09
















Can you post the entire exception from server.log? it may trigger any clue.

– Ramesh Subramanian
Mar 25 at 7:55





Can you post the entire exception from server.log? it may trigger any clue.

– Ramesh Subramanian
Mar 25 at 7:55













Hi Ramesh - thanks for taking a look, removing the redundant resource-ref in jboss-web.xml resolved this issue.

– user3757849
Mar 26 at 18:09





Hi Ramesh - thanks for taking a look, removing the redundant resource-ref in jboss-web.xml resolved this issue.

– user3757849
Mar 26 at 18:09












1 Answer
1






active

oldest

votes


















1














The jboss-web.xml in web.war/WEB-INF had this:



<jboss-web>
<resource-ref>
<res-ref-name>mainDB</res-ref-name>
<jndi-name>mainDB</jndi-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</jboss-web>


Once I removed this, the ear deployed without any problems on both wildfly 15 and 16.

Apparently, this was used to alias a datasource while migrating code a while back.



What is resource-ref in web.xml used for?



Since then, the code has been updated and the alias was no longer used, which resulted in the alias being the same as the jndi-name, this is no longer necessary and caused the deployment to fail.






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55333127%2fdeployment-works-in-wildfly-14-but-not-15-illegalargumentexception-cannot-both%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    The jboss-web.xml in web.war/WEB-INF had this:



    <jboss-web>
    <resource-ref>
    <res-ref-name>mainDB</res-ref-name>
    <jndi-name>mainDB</jndi-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </jboss-web>


    Once I removed this, the ear deployed without any problems on both wildfly 15 and 16.

    Apparently, this was used to alias a datasource while migrating code a while back.



    What is resource-ref in web.xml used for?



    Since then, the code has been updated and the alias was no longer used, which resulted in the alias being the same as the jndi-name, this is no longer necessary and caused the deployment to fail.






    share|improve this answer



























      1














      The jboss-web.xml in web.war/WEB-INF had this:



      <jboss-web>
      <resource-ref>
      <res-ref-name>mainDB</res-ref-name>
      <jndi-name>mainDB</jndi-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
      </resource-ref>
      </jboss-web>


      Once I removed this, the ear deployed without any problems on both wildfly 15 and 16.

      Apparently, this was used to alias a datasource while migrating code a while back.



      What is resource-ref in web.xml used for?



      Since then, the code has been updated and the alias was no longer used, which resulted in the alias being the same as the jndi-name, this is no longer necessary and caused the deployment to fail.






      share|improve this answer

























        1












        1








        1







        The jboss-web.xml in web.war/WEB-INF had this:



        <jboss-web>
        <resource-ref>
        <res-ref-name>mainDB</res-ref-name>
        <jndi-name>mainDB</jndi-name>
        <res-type>javax.sql.DataSource</res-type>
        <res-auth>Container</res-auth>
        </resource-ref>
        </jboss-web>


        Once I removed this, the ear deployed without any problems on both wildfly 15 and 16.

        Apparently, this was used to alias a datasource while migrating code a while back.



        What is resource-ref in web.xml used for?



        Since then, the code has been updated and the alias was no longer used, which resulted in the alias being the same as the jndi-name, this is no longer necessary and caused the deployment to fail.






        share|improve this answer













        The jboss-web.xml in web.war/WEB-INF had this:



        <jboss-web>
        <resource-ref>
        <res-ref-name>mainDB</res-ref-name>
        <jndi-name>mainDB</jndi-name>
        <res-type>javax.sql.DataSource</res-type>
        <res-auth>Container</res-auth>
        </resource-ref>
        </jboss-web>


        Once I removed this, the ear deployed without any problems on both wildfly 15 and 16.

        Apparently, this was used to alias a datasource while migrating code a while back.



        What is resource-ref in web.xml used for?



        Since then, the code has been updated and the alias was no longer used, which resulted in the alias being the same as the jndi-name, this is no longer necessary and caused the deployment to fail.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 25 at 8:09









        user3757849user3757849

        266




        266





























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55333127%2fdeployment-works-in-wildfly-14-but-not-15-illegalargumentexception-cannot-both%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

            용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

            155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해