Hi there,
I am currently deploying my exploded ear archive outside jboss using the jboss-service.xml file in the default/conf directory to point to that outside directory location using this:
deploy/,/downloads/deploy/myEAR.ear/
in my exploded directory myapp.ear/, the directory structure is
myEAR.ear/
myEAR.ear/META-INF/
myEAR.ear/myEJB.jar/......
myEAR.ear/myWAR.war/......
as you can see, my myEJB.jar file is also exploded in a directory with all the class files inside instead of a single jar file.
i dont have a jboss-web.xml file in my myWAR.war/META-INF/ directory with the web.xml
and the ejb references in the web.xml are
<ejb-ref>
<ejb-ref-name>ejb/MyEJBBeanHome</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
interfaces.MyEJBBeanHome
interfaces.MyEJBBean
<ejb-link>MyEJBBeanHome</ejb-link>
</ejb-ref>
The ejb-name in my ejb-jar.xml file is the same as the one in ejb-link
when i deploy the exploded archive with the exact same directory structure as mentioned above, in the default/deploy directory in jboss, everything is ok, its only when the exploded ear file is located outside jboss, then i am having all these ejb linking problems. error message given by jboss during startup is :
org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: ejb-ref: ejb/MyEJBBeanHome, no ejb-link match, use jndi-name in jboss-web.xml)
as i have mentioned above, i dont have a jboss-web.xml file, but becos i have to deploy outside of jboss, do i need one? if so, what do i need to out into jboss-web.xml? Please help!!!
Best Regards