DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5019>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5019 ejbjar does not package ejb-ref interfaces Summary: ejbjar does not package ejb-ref interfaces Product: Ant Version: 1.4.1 Platform: All OS/Version: All Status: NEW Severity: Major Priority: Other Component: Optional Tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] If a <bean>-ejb.jar.xml file for an ejb refers to another bean (via <ejb-ref> section), the task ejb_ref will intentionally skip the home and remote interfaces specified in the <ejb-ref section. These home and remote interfaces need to be packaged to deploy. I've resolved this problem on my machine by modifying org.apache.tools.ant.taskdefs.optional.ejb.DescriptorHandler to not exclude home and remote classes found in ejb-ref blocks. Note commented out code below: protected void processElement() { if (/*inEJBRef || */ (parseState != STATE_IN_ENTITY && parseState != STATE_IN_SESSION)) { return; } ... The above change fixes the problem for me. I picked severity "Major" because the only other way to work around this would be to write an ejbjar task for each ejb and manually add the home and remote files in <ejb-ref> via a <support> block. Writing multiple ejbjar tasks defeats one of the best features of the ejbjar task. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
