2 Replies Latest reply on Jun 29, 2016 7:22 AM by Dan Kane

    WildFly Servlet-Only Configuration

    Dan Kane Newbie

      I am happily using WildFly 10 (Full) to deploy a webapp with a DB connection pool, but I would really like to experiment with deploying to the stripped-down servlet-only version.

       

      To do this, I need to add the module[s] required for DB connectivity.

       

      I have contrasted the differences between the standalone.xml files for each kind of WildFly server, and have been adding module declarations to the servlet-only config to try to accomplish this. However, I spent an age chasing down dependency after dependency, and now have an unusable WildFly that fails due to some error while initializing logging...so I'm starting from scratch again.

       

      I have searched around for any docs dealing specifically with this issue, to no avail.

       

      Does anyone have a quick howto for adding DB connectivity to the servlet-only version...or point me to a suitable web page?

        • 1. Re: WildFly Servlet-Only Configuration
          jaikiran pai Master

          Dan Kane wrote:

           

          I am happily using WildFly 10 (Full) to deploy a webapp with a DB connection pool, but I would really like to experiment with deploying to the stripped-down servlet-only version.

           


           

          There's already a servlet-only distribution shipped in the downloads of WildFly Downloads · WildFly, won't that work?

           

          Edit: I think I might have read your initial post wrong. Are you saying you used the servlet-only distribution from the downloads and now are trying to add some configs/modules to it and it's failing? If yes, then what exactly are you adding and what exceptions are you running into?

          • 2. Re: WildFly Servlet-Only Configuration
            Dan Kane Newbie

            Thanks for replying

             

            Yes, I am using the official Servlet-Only version.

             

            I am trying to add database connectivity to it, so that my web app can use the connection pool to invoke stored procs on the DB backend.

             

            I think I made a real hash of it last time, so I wiped the slate clean, got a fresh install of WildFly Servlet-Only running, and now I am asking for advice/pointers on how to correctly add database connectivity to it.