ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver.Boehm" <Oliver.Bo...@rwg.de>
Subject ejbjar and TopLink (ant 1.2)
Date Fri, 24 Nov 2000 09:10:57 GMT
Hello,

we're using WebLogic 5.1 together with TopLink, so I'm happy about the
TopLink integration inside Ant. But every time I rebuild an EJB Ant
needs 2 tries to create the jar-file:

   [ejbjar] building ejb_ejournalMaterial.jar with 6 files
     [java] ERROR: Error from ejbc: Error initializing the CMP
Persistence Type for your bean: 
     [java] Could not find descriptor file with Jar entry name
'META-INF/toplink-cmp-EJSatz.xml' for specified type TOPLink for
WebLogic
     [java]  Please be sure this file is available in your ejb-jar file.
     [java] 
     [java] weblogic.utils.compiler.ToolFailureException: ERROR: ejbc
found errors
     [java] 	at weblogic.ejbc.runBody(ejbc.java:328)
     [java] 	at weblogic.utils.compiler.Tool.run(Tool.java:80)
     [java] 	at weblogic.ejbc.main(ejbc.java:353)
   [ejbjar] building ejb_ejournalMaterial.jar with 7 files
     [java] [EJB]: Creating output
jar:D:\pilot\classes\server\gebos\subsystem\ejournal\material\ejb_ejournalMaterial.jar

The jar file is created successfully, but why the error message? Is this
normal? Or did I forget something in the ejbjar task? Here's the part of
my build.xml:

  <target name="compile.ejb.ejournalMaterial" depends="compile.server">
    <ejbjar srcdir="${build.classes.server}"
	    descriptordir="${descriptor.dir}/${ejournal.dir}/material"
	    basejarname="ejb_ejournalMaterial">
      <weblogic destdir="${deploymentjars.dir}/${ejournal.dir}/material"
		compiler="jikes -nowarn"
		classpath="${classpath.ejb-toplink}"
      />
      <include name="**/ejb-jar.xml"/>
      <exclude name="**/weblogic-ejb-jar.xml"/>
      <weblogictoplink
	destdir="${deploymentjars.dir}/${ejournal.dir}/material"
	classpath="${classpath.ejb-toplink}"
        toplinkdescriptor="toplink-cmp-EJSatz.xml"
        toplinkdtd="file://prog/toplink/toplink-cmp_2_5_1.dtd"
      />
    </ejbjar>
  </target>

I tried also to include the TopLink XML file in the ejbjar task but with
no success.

cheers
Oliver
--
Oliver Böhm
Tel: (0711)2012-2734	 	Fax: (0711)2012-6734
mailto:oliver.boehm@rwg.de	http://www.rwg.de
mailto:boehm@ba-stuttgart.de	http://www.ba-stuttgart.de/~boehm

Mime
View raw message