1 Reply Latest reply on May 23, 2006 7:06 PM by sfisque

    exploded war

    sfisque

      so far i've only seen examples where the deployment is done on a jar'ed war file.

      i'm just tooling around with a deployment and have everything running in a WarName.war directory except i cannot get my ejb's to bind into JNDI. i've double and triple checked the config files.

      my question. are there any issues with having the ejb files all reside in the same directory under WEB-INF/classes? do i HAVE to jar up the ejb's or can they deploy expanded inside the */classes directory tree?

      == stanton

        • 1. Re: exploded war
          sfisque

          posting config info since i cant edit the original post:

          EJB bean/home/iface are in /WEB-INF/classes/

          web.xml snippet:

           <ejb-ref>
           <ejb-ref-name>ejb/DungeoneerDB</ejb-ref-name>
           <ejb-ref-type>Session</ejb-ref-type>
           <home>com.latticeware.ejb.DungeoneerDB_Home</home>
           <remote>com.latticeware.ejb.DungeoneerDB</remote>
           </ejb-ref>
          


          ejb-jar.xml:

          <?xml version="1.0"?>
          
          <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
          
          <ejb-jar>
           <description>Dungeoneer Application</description>
           <display-name>Dungeoneer EJB</display-name>
          
           <enterprise-beans>
          
           <session>
          
           <ejb-name>DungeoneerDB</ejb-name>
          
           <home>com.latticeware.ejb.DungeoneerDB_Home</home>
           <remote>com.latticeware.ejb.DungeoneerDB</remote>
           <ejb-class>com.latticeware.ejb.DungeoneerDB_Bean</ejb-class>
           <session-type>Stateless</session-type>
           <transaction-type>Container</transaction-type>
          
           </session>
          
           <assembly-descriptor>
          
           <container-transaction>
          
           <method>
           <ejb-name>DungeoneerDB</ejb-name>
           <method-intf>Remote</method-intf>
           <method-name>getPersona</method-name>
           <method-params>
           <method-param>int</method-param>
           </method-params>
           </method>
          
           <trans-attribute>Required</trans-attribute>
          
           </container-transaction>
          
           </assembly-descriptor>
          
           </enterprise-beans>
          </ejb-jar>
          



          jboss-web.xml

          <?xml version="1.0" encoding="UTF-8"?>
          <jboss-web>
           <!-- A reference to an EJB in the same server with a custom JNDI binding -->
          
           <ejb-ref>
           <ejb-ref-name>ejb/DungeoneerDB</ejb-ref-name>
           <jndi-name>ejb/DungeoneerDB</jndi-name>
           </ejb-ref>
          </jboss-web>
          


          jboss.xml

          <?xml version='1.0' encoding='UTF-8' ?>
          
          <jboss>
           <enterprise-beans>
           <session>
           <ejb-name>DungeoneerDB</ejb-name>
           <jndi-name>ejb/DungeoneerDB</jndi-name>
           <local-jndi-name>ejb/DungeoneerDB</local-jndi-name>
           </session>
           </enterprise-beans>
          </jboss>