You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Tammy Croteau <ta...@hp.com> on 2002/10/01 04:15:49 UTC

Problems building EJBs

Hi,

I have an ant build task that build EJBs using Bluestone.  Everything
compiles and builds, however the final step of the EJB  build process is
to copy the jar file to the target destination.  The copy fails with a
"file in use" error.  I am forking during the java call to build the
EJBs and have also tried introducing a sleep to ensure that all file
locks have been released.  This process fails on some machines and
succeeds on others - the pattern seems to be fairly random.

        <java
classname="com.bluestone.gui.ejb11.deploymentdescriptor.generateEjbModules"
fork="yes" failonerror="${failonerror}">
            <arg line="${tmplib}/${NOEJB}.jar ${tmplib}/${EJB}.jar"/>
            <classpath>
                <path refid="classpath.jdk"/>
                <path refid="classpath.jdk_ext"/>
                <path refid="classpath.bluestone"/>
                <path refid="classpath.bluestoneSAclasses"/>
            </classpath>
        </java>
    <copy todir="${JAR_DIR}" file="${tmplib}/${EJB}.jar"/>

Any suggestions on how to fix the above problem?

Thanks!
--tammy


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>