ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J. Matthew Pryor" <...@verveinc.com>
Subject RE: failure during ejbc
Date Tue, 05 Dec 2000 22:58:15 GMT
When I got this problem, it was because the weblogic sub-task was not
finding the weblogic vendor specific XML DD file (I specified it
incorrectly)

Are you sure this file is a) specified b) correctly formed ?

You have had been specifying the JNDI name on the command-line previously

Here is my rule :
	<target name="ejbs">
		<ejbjar srcdir="${build.classes}"
                descriptordir="${ejb.dd.dir}">
			<weblogic destdir="${weblogic.dir}/${weblogic.server.dir}"

classpath="${build.classes};${weblogic.dir}/lib/weblogicaux.jar;${weblogic.d
ir}/classes"/>
			<include name="**/*ejb-jar.xml"/>
			<exclude name="**/*weblogic*.xml"/>
		</ejbjar>
	</target>

The relevant section of the XXX-weblogic-ejb-jar.xml looks like this :
<weblogic-ejb-jar>
    <weblogic-enterprise-bean>
      <ejb-name>MyService</ejb-name>
      <caching-descriptor>
	<max-beans-in-free-pool>100</max-beans-in-free-pool>
      </caching-descriptor>
      <jndi-name>MyService</jndi-name>
    </weblogic-enterprise-bean>
  </weblogic-ejb-jar>

Noitce the <jndi-name>MyService</jndi-name>

matthew

> -----Original Message-----
> From: Edmund Geesken [mailto:edmund.geesken@web.de]
> Sent: Tuesday, December 05, 2000 7:09 AM
> To: ant-user@jakarta.apache.org
> Subject: failure during ejbc
>
>
> I try to use ant (1.3alpha compiled on December 5 2000) with
> weblogic (5.1) and toplink for weblogic (2.5.1).
> I run into a serious problem:
>
>   the ejbc is started and then an error
>
> [ejbjar] building ${project}.jar with 25 files
>  [java] ERROR: Error from ejbc: The JNDI name of bean ProductType
> was not set
>  [java] ERROR: Error from ejbc: The JNDI name of bean Party was not set
>  [java] ERROR: Error from ejbc: The JNDI name of bean Currency was not set
>  [java] ERROR: Error from ejbc: The JNDI name of bean Place was not set
>  [java] ERROR: Error from ejbc: The JNDI name of bean Country was not set
>  [java] ERROR: Error from ejbc: The JNDI name of bean Branch was not set
>  [java] weblogic.utils.compiler.ToolFailureException: ERROR: ejbc
> found errors
>    [java]     at weblogic.ejbc.runBody(ejbc.java, Compiled Code)
>    [java]     at weblogic.utils.compiler.Tool.run(Tool.java:80)
>    [java]     at weblogic.ejbc.main(ejbc.java:353)
>    [java] Java Result: 1
>
> Does anyone have an idea what's wrong
>
> Edmund Geesken
>
> __________________________________________________________________
> _____________
> Alles unter einem Dach: Informationen, Fun, E-Mails. Bei WEB.DE:
> http://web.de
> Die gro├če Welt der Kommunikation: E-Mail, Fax, SMS, WAP:
> http://freemail.web.de
>
>
>


Mime
View raw message