title: JBOSS Migration AS6 to EAP 7 404 Error
body: <p>This question is Not Answered.(Mark as assumed answered)
   Andy Gowdy
  Newbie
  Andy Gowdy 31-Mar-2017 06:56
  HI</p>
  
  <p>I am having difficulty referencing an ear file after I have deployed it in EAP 7.  I have no deployment errors but when I try to access the the ear /beans through the URL I get a 404 error.  In the now deprecated JBOSS.xml  the URI was configured as shown.   Any help would be much appreciated.  Many Thanks Andy</p>
  
  <pre><code>&lt;jboss&gt;
    &lt;enterprise-beans&gt;
    &lt;session&gt;
    &lt;ejb-name&gt;HousingFacadeEJB&lt;/ejb-name&gt;
    &lt;jndi-name&gt;HousingFacadeEJB&lt;/jndi-name&gt;
    &lt;local-jndi-name&gt;LocalHousingFacadeEJB&lt;/local-jndi-name&gt;
    &lt;call-by-value&gt;false&lt;/call-by-value&gt;
    &lt;!-- &lt;configuration-name&gt;Facade&lt;/configuration-name&gt; --&gt;
    &lt;clustered&gt;false&lt;/clustered&gt;
              &lt;port-component&gt;
                  &lt;port-component-name&gt;HousingFacade&lt;/port-component-name&gt;
                  &lt;port-component-uri&gt;HousingFacade/HousingFacadeEJB
                  &lt;/port-component-uri&gt;
              &lt;/port-component&gt;
    &lt;/session&gt;
    &lt;/enterprise-beans&gt;
    &lt;container-configurations&gt;
    &lt;container-configuration extends="Standard Stateless SessionBean"&gt;
        &lt;container-name&gt;HousingFacade&lt;/container-name&gt;
    &lt;container-pool-conf&gt;
        &lt;MinimumSize&gt;50&lt;/MinimumSize&gt;
    &lt;MaximumSize&gt;150&lt;/MaximumSize&gt;
        &lt;/container-pool-conf&gt;
    &lt;/container-configuration&gt;
    &lt;/container-configurations&gt;
  &lt;/jboss&gt;
  
  ----------------------------------------------------------
  
  I have replaced this with a JBOSS-EJB3.xml
  
  &lt;enterprise-beans&gt;
    &lt;session&gt;
     &lt;ejb-name&gt;HousingFacadeEJB2_Live&lt;/ejb-name&gt;
  
     &lt;home&gt;com.comino.cxm.housingfacade.HousingFacadeHome&lt;/home&gt;
     &lt;remote&gt;com.comino.cxm.housingfacade.HousingFacade&lt;/remote&gt;
     &lt;local-home&gt;com.comino.cxm.housingfacade.LocalHousingFacadeHome&lt;/local-home&gt;
     &lt;local&gt;com.comino.cxm.housingfacade.LocalHousingFacade&lt;/local&gt;
  
     &lt;ejb-class&gt;com.comino.cxm.housingfacade.HousingFacadeBean&lt;/ejb-class&gt;
  
     &lt;session-type&gt;Stateless&lt;/session-type&gt;
     &lt;transaction-type&gt;Container&lt;/transaction-type&gt;
     &lt;env-entry&gt;
                  &lt;env-entry-name&gt;UHDSJNDINAME&lt;/env-entry-name&gt;
                    &lt;env-entry-type&gt;java.lang.String&lt;/env-entry-type&gt;
                    &lt;env-entry-value&gt;java:/UHTLIVE_2&lt;/env-entry-value&gt;
      &lt;/env-entry&gt;
  
    &lt;/session&gt;
    &lt;/enterprise-beans&gt;
  
  &lt;assembly-descriptor&gt;
    &lt;container-transaction&gt;
             &lt;method&gt;
               &lt;ejb-name&gt;HousingFacadeEJB2_Live&lt;/ejb-name&gt;
    &lt;method-name&gt;*&lt;/method-name&gt;
             &lt;/method&gt;
             &lt;trans-attribute&gt;Required&lt;/trans-attribute&gt;
          &lt;/container-transaction&gt;
  &lt;/assembly-descriptor&gt;
  </code></pre>
  
  <hr>
  
  <p>My ejb-jar.xml</p>
  
  <pre><code>&lt;jboss:ejb-jar&gt;
  
    &lt;enterprise-beans&gt;
     &lt;session&gt;
     &lt;ejb-name&gt;HousingFacadeEJB2_Live&lt;/ejb-name&gt;
  
     &lt;home&gt;com.comino.cxm.housingfacade.HousingFacadeHome&lt;/home&gt;
     &lt;remote&gt;com.comino.cxm.housingfacade.HousingFacade&lt;/remote&gt;
     &lt;local-home&gt;com.comino.cxm.housingfacade.LocalHousingFacadeHome&lt;/local-home&gt;
     &lt;local&gt;com.comino.cxm.housingfacade.LocalHousingFacade&lt;/local&gt;
  
     &lt;ejb-class&gt;com.comino.cxm.housingfacade.HousingFacadeBean&lt;/ejb-class&gt;
  
     &lt;session-type&gt;Stateless&lt;/session-type&gt;
     &lt;transaction-type&gt;Container&lt;/transaction-type&gt;
     &lt;env-entry&gt;
                &lt;env-entry-name&gt;UHDSJNDINAME&lt;/env-entry-name&gt;
                &lt;env-entry-type&gt;java.lang.String&lt;/env-entry-type&gt;
                &lt;env-entry-value&gt;java:/UHTLIVE_2&lt;/env-entry-value&gt;
      &lt;/env-entry&gt;
  
    &lt;/session&gt;
    &lt;/enterprise-beans&gt;
  
    &lt;assembly-descriptor&gt;
    &lt;container-transaction&gt;
             &lt;method&gt;
               &lt;ejb-name&gt;HousingFacadeEJB2_Live&lt;/ejb-name&gt;
    &lt;method-name&gt;*&lt;/method-name&gt;
             &lt;/method&gt;
             &lt;trans-attribute&gt;Required&lt;/trans-attribute&gt;
          &lt;/container-transaction&gt;
    &lt;/assembly-descriptor&gt;
  
  &lt;/jboss:ejb-jar&gt;
  </code></pre>
  
  <p>JBOSS Server log extract.. I have redacted the connection addresses.</p>
  
  <p>----------------------------REQUEST---------------------------</p>
  
  <pre><code>URI=/HousingFacade2_Live/HousingFacadeEJB2_Live
  characterEncoding=null
       contentLength=1304
         contentType=[text/xml; charset=utf-8]
              header=Connection=Keep-Alive
              header=SOAPAction=""
              header=Cache-Control=no-cache
              header=Content-Type=text/xml; charset=utf-8
              header=Content-Length=1304
              header=User-Agent=W2
              header=Host=**************
              locale=[]
              method=POST
            protocol=HTTP/1.1
         queryString=
          remoteAddr=*************
          remoteHost=************
              scheme=http
                host=*******************
          serverPort=8080
  --------------------------RESPONSE--------------------------
       contentLength=74
         contentType=text/html
              header=Connection=keep-alive
              header=X-Powered-By=Undertow/1
              header=Server=JBoss-EAP/7
              header=Content-Length=74
              header=Content-Type=text/html
              header=Date=Fri, 31 Mar 2017 10:31:43 GMT
              status=404
  ==============================================================
  </code></pre>