ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Garcia <mike_garcia...@yahoo.com>
Subject Using ant for EJB jar creation
Date Tue, 14 Nov 2000 16:28:17 GMT
Hi fellow Developers,
Ant is really great but, I am having some problems while trying
to build an EJB.  I have to invoke the java command on a vendor
specific EJB compiler in order to generate a deployable jar
file.  Here is what I am doing in the target name="compile" tag:

    <java classname="${ejbc}" fork="yes" jvmargs="${std_jar}
${wl_jar}">
      <classpath path="${classpath}"/>
    </java>

where <<ejbc>> is the vendor's ejb compiler class with the input
jar <<std_jar>> and output jar <<wl_jar>> as the 1st and 2nd
args.  The two jar file properties are just paths to the
particular jar file.  

When I try to run ant I get the following:

compile:
    [javac] Compiling 4 source files to
C:\Z-Working\ejb\deployEJB
      [jar] Building jar:
C:\Z-Working\ejb\jar\std_CompositionControllerEJB.jar
     [java] java.lang.NoClassDefFoundError:
/jar\std_CompositionControllerEJB/jar
     [java] Exception in thread "main"
     [java] Result: 1


No matter what I try I seem to get the same error.  The forked
process will not recognize the path to my jar files.  The reason
I want to use a fork is because I create some temporary
directories for the build then, delete them after the build is
complete.  My <target name="deploy" depends="compile"> and it
never gets to this step because of the
java.lang.NoClassDefFoundError.

Any advice would be much appreciated?

Cheers,
Mike


__________________________________________________
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/

Mime
View raw message