ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 5019] New: - ejbjar does not package ejb-ref interfaces
Date Thu, 22 Nov 2001 00:44:48 GMT
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: ant-dev@jakarta.apache.org
        ReportedBy: ebelisle@ix.netcom.com
                CC: ebelisle@ix.netcom.com


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:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message