0 Replies Latest reply on Jun 24, 2015 8:01 AM by Roland Müller

    Packaging & loading custom HTTP connector

    Roland Müller Newbie



      for our application running on JBoss EAP 6.2 I had to create a custom HTTP protocol by extending the provided class org.apache.coyote.http11.Http11Protocol. This can then be used in the standalone.xml in the connector configuration in the web subsystem, basically the same like it is described in this thread: Creating a custom HTTPSConnector is JBOSS AS 7.1

      I have put my class into a jar and configured this as a module. In my development environment, I could then edit the provided modules/system/layers/base/org/jboss/as/web/main/module.xml file and add my custom module to the dependencies section. In the production environment I am not allowed to edit this file because it is read-only and customized modules must be placed in a different directory that is configured via JBOSS_MODULEPATH. If I try to put the modified module.xml under the same path there, I get java.lang.IllegalStateException: Duplikat layer 'base'.


      Does anyone have a hint, how I could include my custom HTTP protocol?