1 Reply Latest reply: Sep 29, 2006 11:17 AM by Peter Johnson RSS

    jboss-web.xml

    Gokul Balasubramanian Newbie

      Hello I am trying to migrate my web(struts) application from tomcat to jboss. I have deployed the application but I am unable to start it. I checked the logs and it seems to be complaining that it cant find the jndi in the jboss-web.xml. My questions are:-

      1. Is the jboss-web.xml similar to the context file which needs to be placed in {TOMCAT}/conf directory?
      2. If I were to place a packaged war file like I do in Tomcat, will it be exploded into a folder?

      Your help is much appreciated.

      Regards
      Gokul

        • 1. Re: jboss-web.xml
          Peter Johnson Master

          Maybe this will help. Here is a excerpt from one of my WEB-INF/web.xml files:

          <ejb-ref>
           <ejb-ref-name>ProductSessionRemote</ejb-ref-name>
           <ejb-ref-type>Session</ejb-ref-type>
           <home>com.unisys.orp.product.ejb.ProductSessionRemoteHome</home>
           <remote>com.unisys.orp.product.ejb.ProductSessionRemote</remote>
           <ejb-link>ProductSessionRemote</ejb-link>
           </ejb-ref>
           <ejb-ref>
           <ejb-ref-name>OrderSessionRemote</ejb-ref-name>
           <ejb-ref-type>Session</ejb-ref-type>
           <home>com.unisys.orp.product.ejb.OrderSessionRemoteHome</home>
           <remote>com.unisys.orp.product.ejb.OrderSessionRemote</remote>
           <ejb-link>OrderSessionRemote</ejb-link>
           </ejb-ref>
           <ejb-ref>
           <ejb-ref-name>CalculatorRemote</ejb-ref-name>
           <ejb-ref-type>Session</ejb-ref-type>
           <home>com.unisys.orp.rpn.ejb.CalculatorEJBRemoteHome</home>
           <remote>com.unisys.orp.rpn.ejb.CalculatorEJBRemote</remote>
           <ejb-link>CalculatorRemote</ejb-link>
           </ejb-ref>


          And here is the WEB-INF/jboss-web.xml file that goes with it:

          <?xml version='1.0' encoding='UTF-8' ?>
          <!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.4//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">
          <jboss-web>
           <ejb-ref>
           <ejb-ref-name>ProductSessionRemote</ejb-ref-name>
           <jndi-name>ProductSessionRemote</jndi-name>
           </ejb-ref>
           <ejb-ref>
           <ejb-ref-name>OrderSessionRemote</ejb-ref-name>
           <jndi-name>OrderSessionRemote</jndi-name>
           </ejb-ref>
           <ejb-ref>
           <ejb-ref-name>CalculatorRemote</ejb-ref-name>
           <jndi-name>CalculatorRemote</jndi-name>
           </ejb-ref>
          </jboss-web>