10 Replies Latest reply on Jul 15, 2010 12:33 PM by Eric Bustad

    Basic authentication for EBWS

    Eric Bustad Newbie

      I have an EBWS set up using jbossesb-server-4.7.  I want to add http basic authentication to it.  My understanding is that this requires a web.xml file to be deployed with the web service.  I build a .esb with the web.xml file in the WEB-INF folder, but when the .esb is deployed that web.xml file is replaced by one that is created during the deployment process.  I see the following lines in my server.log file:

       

      2010-02-12 11:38:23,718 DEBUG [org.jboss.soa.esb.listeners.config.JBoss4ESBDeployer] nested deployment: file:/C:/java/jbossesb-server-4.7/server/default/tmp/deploy/tmp1939921691740386303dms-master.esb-contents/validation-1.3.0.jar
      2010-02-12 11:38:23,765 DEBUG [org.jboss.soa.esb.listeners.config.JBoss4ESBDeployer] Added schema WEB-INF/wsdl/DMSWebServices/response.xsd
      2010-02-12 11:38:23,765 DEBUG [org.jboss.soa.esb.listeners.config.JBoss4ESBDeployer] Added schema WEB-INF/wsdl/DMSWebServices/fault.xsd
      2010-02-12 11:38:23,765 DEBUG [org.jboss.soa.esb.listeners.config.JBoss4ESBDeployer] Added schema WEB-INF/wsdl/DMSWebServices/XmlLoaderData.xsd
      2010-02-12 11:38:23,765 DEBUG [org.jboss.soa.esb.listeners.config.JBoss4ESBDeployer] Added schema WEB-INF/wsdl/DMSWebServices/Iresponse.xsd
      2010-02-12 11:38:23,765 DEBUG [org.jboss.soa.esb.listeners.config.JBoss4ESBDeployer] Added schema WEB-INF/wsdl/DMSWebServices/request.xsd
      2010-02-12 11:38:24,468 DEBUG [org.jboss.soa.esb.listeners.config.JBoss4ESBDeployer] Added schema WEB-INF/wsdl/DMSWebServices/response.xsd
      2010-02-12 11:38:24,468 DEBUG [org.jboss.soa.esb.listeners.config.JBoss4ESBDeployer] Added schema WEB-INF/wsdl/DMSWebServices/fault.xsd
      2010-02-12 11:38:24,468 DEBUG [org.jboss.soa.esb.listeners.config.JBoss4ESBDeployer] Added schema WEB-INF/wsdl/DMSWebServices/XmlLoaderData.xsd
      2010-02-12 11:38:24,468 DEBUG [org.jboss.soa.esb.listeners.config.JBoss4ESBDeployer] Added schema WEB-INF/wsdl/DMSWebServices/Iresponse.xsd
      2010-02-12 11:38:24,468 DEBUG [org.jboss.soa.esb.listeners.config.JBoss4ESBDeployer] Added schema WEB-INF/wsdl/DMSWebServices/request.xsd
      2010-02-12 11:38:24,828 DEBUG [freemarker.cache] Could not find template in cache, creating new one; id=[templates/web.xml.ftl[en_US,Cp1252,parsed] ]
      2010-02-12 11:38:24,828 DEBUG [freemarker.cache] Compiling FreeMarker template templates/web.xml.ftl[en_US,Cp1252,parsed]  from jar:file:/C:/java/jbossesb-server-4.7/server/default/tmp/deploy/tmp949801992259484641jbossesb-rosetta.jar!/org/jboss/internal/soa/esb/listeners/war/templates/web.xml.ftl
      2010-02-12 11:38:25,296 DEBUG [freemarker.cache] Could not find template in cache, creating new one; id=[templates/jboss-web.xml.ftl[en_US,Cp1252,parsed] ]
      2010-02-12 11:38:25,296 DEBUG [freemarker.cache] Compiling FreeMarker template templates/jboss-web.xml.ftl[en_US,Cp1252,parsed]  from jar:file:/C:/java/jbossesb-server-4.7/server/default/tmp/deploy/tmp949801992259484641jbossesb-rosetta.jar!/org/jboss/internal/soa/esb/listeners/war/templates/jboss-web.xml.ftl
      2010-02-12 11:38:25,375 DEBUG [org.jboss.soa.esb.listeners.config.JBoss4ESBDeployer] nested deployment: file:/C:/java/jbossesb-server-4.7/server/default/tmp/esbwarfiles/dms-master.war

       

      The generated web.xml does not contain anything to control security or authentication.

       

      Can someone give me a clue as to how to do this?

       

      [BTW, I have downloaded the source for jbossesb 4.7.  Oddly, I can see where the "Added schema" messages are coming from org.jboss.soa.esb.listeners.config.JBoss4ESBDeployer, but not the "nested deployment" messages.  Makes me wonder if the source code download really goes with the binary download.  But that is a different question.]