Just moved from JBOSS 3.0.6 to JBOSS 3.2.1
When deploying ear, receiving the following exception:
org.jboss.deployment.DeploymentException: Failed to parse WEB-INF/jboss-web.xml; - nested throwable: (org.jboss.deployment.DeploymentException: ejb-ref ejb/CustomerManager found in jboss-web.xml but not in web.xml)
This worked previously in JBOSS 3.0.6
Here is a snipplet of the web.xml
<ejb-local-ref>
Customer Manager EJB
<ejb-ref-name>ejb/CustomerManager</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>com.pubco.ice.customer.ejb.CustomerManagerLocalHome</local-home>
com.pubco.ice.customer.ejb.CustomerManagerLocal
<ejb-link>CustomerManager</ejb-link>
</ejb-local-ref>
Here is a snipplet of the jboss-web.xml:
<ejb-ref>
<ejb-ref-name>ejb/CustomerManager</ejb-ref-name>
<jndi-name>com/pubco/ice/customer/ejb/CustomerManagerLocalHome</jndi-name>
</ejb-ref>
I believe the issue to be the the jboss-web.xml is not supporting the ejb-local-ref tags, as I can not find them in the DTD.
Is this correct ? Any idea how to fix ?
See http://www.jboss.org/modules/bb/index.html?module=bb&op=viewtopic&t= don't need the ejb-ref declaration in jboss-web.xml for local references. They're directly linked to ejb-jar.xml which in order finds the JNDI name from jboss.xml.