You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by "Oliver.Boehm" <Ol...@rwg.de> on 2000/11/24 10:10:57 UTC
ejbjar and TopLink (ant 1.2)
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