You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by bs...@manu.com on 2000/10/03 05:05:07 UTC

Problem usnig ANT with weblogic CMP

All of my beans go through the ejbjar process correctly except the CMPs.
The CMPs get the following exception, but the file referred to exists. I
have
tried prefacing the file's name with the jar file name and that didn't
help:

     [java] Forking java -classpath D:\weblogic51\classes;D:\weblogic51\lib\webl
ogicaux.jar;P:\ew\classes;P:\ew\source;P:\ew\vendor\activation.jar;P:\ew\vendor\
mail.jar;P:\ew\vendor\pts_fw_common.jar weblogic.ejbc -noexit P:\ew\lib\ESmatchi
ng-generic.jar P:\ew\lib\ESmatching.jar
     [java] ERROR: Error from ejbc: Error initializing the CMP Persistence Type
for your bean:
     [java] Could not find descriptor file with Jar entry name 'weblogic-cmp-rdb
ms-product-jar.xml' for specified type WebLogic RDBMS Persistence
     [java]  Please be sure this file is available in your ejb-jar file.
     [java]
     [java] weblogic.utils.compiler.ToolFailureException: ERROR: ejbc found erro
rs
     [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



RE: Problem usnig ANT with weblogic CMP

Posted by Conor MacNeill <co...@ebinteractive.com.au>.
This file needs to be prefixed with the bean name in the same way as the
ejb-jar file is. The ejbjar task puts it into the jar file with the correct
name. Are you doing that? Let me know if you are and it still isn't working.



--
Conor MacNeill
conor@cortexebusiness.com.au
Cortex eBusiness
http://www.cortexebusiness.com.au

> -----Original Message-----
> From: bsimonof@manu.com [mailto:bsimonof@manu.com]
> Sent: Tuesday, 3 October 2000 14:05
> To: ant-user@jakarta.apache.org
> Subject: Problem usnig ANT with weblogic CMP
>
>
>
> All of my beans go through the ejbjar process correctly except the CMPs.
> The CMPs get the following exception, but the file referred to exists. I
> have
> tried prefacing the file's name with the jar file name and that didn't
> help:
>
>      [java] Forking java -classpath
> D:\weblogic51\classes;D:\weblogic51\lib\webl
> ogicaux.jar;P:\ew\classes;P:\ew\source;P:\ew\vendor\activation.jar
> ;P:\ew\vendor\
> mail.jar;P:\ew\vendor\pts_fw_common.jar weblogic.ejbc -noexit
> P:\ew\lib\ESmatchi
> ng-generic.jar P:\ew\lib\ESmatching.jar
>      [java] ERROR: Error from ejbc: Error initializing the CMP
> Persistence Type
> for your bean:
>      [java] Could not find descriptor file with Jar entry name
> 'weblogic-cmp-rdb
> ms-product-jar.xml' for specified type WebLogic RDBMS Persistence
>      [java]  Please be sure this file is available in your ejb-jar file.
>      [java]
>      [java] weblogic.utils.compiler.ToolFailureException: ERROR:
> ejbc found erro
> rs
>      [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
>
>
>