ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel CAUNE <>
Subject HELP: ejbjar tag and EJB exception.
Date Mon, 20 Aug 2001 10:07:21 GMT
Dear all,

I have a little problem with my EJB JAR file creation, using the ejbjar
tag. Some of my EJB have their own exception (derived obviously from
EJBException), but the corresponding exception class is not included
automatically in the EJB JAR file :

 <!-- Create the EJB JAR files -->
 <target name="ejbjar" depends="compile">
   <ejbjar descriptordir="${res}"
     <classpath refid="project.class.path"/>
     <include name="**/*-ejb-jar.xml"/>
     <exclude name="**/*jboss*.xml"/>
     <jboss destdir="${lib}"/>
     <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans
     <dtd publicId="-//JBoss//DTD JBOSS//EN"

Then the deployment failed, until I provide to JBoss an auxiliary JAR
file containing these exception classes in $JBOSS/lib/ext; but I have to
stop and start JBoss... I feel that to put EJB exception classes in an
auxiliary JAR file, else than the EJB JAR file, is an ugly method, no ?

Do you have a magic tip to ask ejbjar tag for adding EJB exception class
in the EJB JAR file (something generic of course) ? Is there an inner
variable corresponding to the name of the current EJB ejbjar tag
proceeds (so we can add <include name="**/${EJBName}Exception.class"/>)



View raw message