Hi,

I'm trying to build my application using ejbjar. However I keep getting the
following error (it's been driving me nuts for the last couple of days):

ejbc.entities:
   [ejbjar] building MedullaEntities.jar with 485 files
     [ejbc] Usage: java weblogic.ejbc20 [options] <source jar file> <target
dir
ectory or jar file>
     [ejbc]
     [ejbc] where options include:
     [ejbc]     -help             Print this help message.
     [ejbc]     -version          Print version information.
     [ejbc]     -idl              Generate idl for remote interfaces
     [ejbc]     -idlOverwrite     Always overwrite existing IDL files
     [ejbc]     -idlVerbose       Display verbose information for IDL
     [ejbc]                       generation
     [ejbc]     -idlDirectory <dir> Specify the directory where IDL files
will be
     [ejbc]                       created (default : current directory)
     [ejbc]     -iiop             Generate CORBA stubs
     [ejbc]     -iiopDirectory <dir> Specify the directory where IIOP stub
files
     [ejbc]                       will be written (default : current
     [ejbc]                       directory)
     [ejbc]     -keepgenerated    Keep the generated .java files.
     [ejbc]     -compiler <javac> Java compiler to use.
     [ejbc]     -g                Compile debugging info into class file.
     [ejbc]     -debug            Compile with debugging on.
     [ejbc]     -nowarn           Compile without warnings.
     [ejbc]     -verbose          Compile with verbose output.
     [ejbc]     -deprecation      Warn about deprecated calls.
     [ejbc]     -normi            Passed through to Symantec's sj.
     [ejbc]     -classpath <path> Classpath to use during compilation.
     [ejbc]
     [ejbc] Unrecognized option or flag, -
     [ejbc] Java Result: 1

My ant build file that produces the error is:
  <target name="ejbc.entities" depends="compile.entitiesAll">
    <ejbjar srcdir="${build}" descriptordir="${entities.descriptor}"
basejarname="MedullaEntities">
      <include name="**/*ejb-jar.xml"/>
      <exclude name="**/*weblogic*.xml"/>
      <support dir="${build}">
        <include name="**/*.class"/>
      </support>
      <weblogic destdir="${dist.deploy}"
                keepgeneric="true"
                suffix=".jar"
                rebuild="false"
                newCMP="true">
        <classpath>
          <path refid="entities.class.path"/>
          <pathelement location="${build}"/>
        </classpath>
        <wlclasspath>
          <path refid="entities.class.path"/>
        </wlclasspath>
      </weblogic>
    </ejbjar>
  </target>

Reply via email to