ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Chang <FCh...@ware2.com>
Subject FW: ejbc problem (repost)
Date Fri, 09 Feb 2001 14:51:26 GMT
Hi all, I am wondering does anyone know what this problem is? Ant seems to
be causing ejbc compiler to fail.

-----Original Message-----
From: Frank Chang [mailto:FChang@ware2.com]
Sent: February 7, 2001 11:48 AM
To: 'ant-user@jakarta.apache.org'
Subject: ejbc problem


Hi all,

I am running Ant 1.2 and Weblogic 6. The weblogic.ejbc compiler gives me the
following error (see attachment) when compiling my entity bean, my stateless
bean seems to work. The compiler works fine if I took the generic jar file
for my entity bean and call the weblogic.ejbc compiler from the command line
(the jar file is ok). I am getting a slightly different error message than
the ejbc problem that have been reported previously.

Thanks in advance

----
Ant version 1.2 compiled on January 25 2001

Searching for build.xml ...
Searching in P:\CVS\wfs\src\java\idgenerator
Buildfile: P:\CVS\wfs\src\java\idgenerator\build.xml
Detected Java Version: 1.3
Detected OS: Windows 2000
Project base dir set to: P:\CVS\wfs\src\java\idgenerator
  [loadenv] Loading All Environment Variables.
Build sequence for target `all' is [init, prepare, classes, ejb-client-jar,
ejb-support-jar, ejb-jar, all]
Complete build sequence is [init, prepare, classes, ejb-client-jar,
ejb-support-jar, ejb-jar, all, javadoc, test, clean]
 [property] Loading P:\CVS\wfs\build.properties
** Building subproject idgenerator **
   [ejbjar] 2 deployment descriptors located.
   [ejbjar] The old method for locating CMP files has been DEPRECATED.
   [ejbjar] Please adjust your weblogic descriptor and set oldCMP="false" to
use the new CMP descriptor inclusion mechanism. 
   [ejbjar] looking at interface
com.ware2.wfs.server.idgenerator.IdGenerator
   [ejbjar] looking at class
com.ware2.wfs.server.idgenerator.IdGeneratorDuplicateKeyException
   [ejbjar] looking at class
com.ware2.wfs.server.idgenerator.IdGeneratorKeyNotFoundException
   [ejbjar] looking at interface
com.ware2.wfs.server.idgenerator.entity.IdGenerator
   [ejbjar]      implements javax.ejb.EJBObject
   [ejbjar] looking at class
com.ware2.wfs.server.idgenerator.entity.IdGeneratorBean
   [ejbjar] looking at interface
com.ware2.wfs.server.idgenerator.entity.IdGeneratorHome
   [ejbjar]      implements javax.ejb.EJBHome
   [ejbjar] looking at class
com.ware2.wfs.server.idgenerator.IdGeneratorException
   [ejbjar] looking at class
com.ware2.wfs.server.idgenerator.IdGeneratorJndiService
   [ejbjar] building IdGen2_wl.jar with 11 files
   [ejbjar] adding file 'com\ware2\wfs\server\idgenerator\IdGenerator.class'
   [ejbjar] adding file
'com\ware2\wfs\server\idgenerator\IdGeneratorDuplicateKeyException.class'
   [ejbjar] adding file
'com\ware2\wfs\server\idgenerator\IdGeneratorKeyNotFoundException.class'
   [ejbjar] adding file
'com\ware2\wfs\server\idgenerator\entity\IdGenerator.class'
   [ejbjar] adding file
'com\ware2\wfs\server\idgenerator\entity\IdGeneratorBean.class'
   [ejbjar] adding file
'com\ware2\wfs\server\idgenerator\entity\IdGeneratorHome.class'
   [ejbjar] adding file 'META-INF/weblogic-cmp-rdbms-jar.xml'
   [ejbjar] adding file
'com\ware2\wfs\server\idgenerator\IdGeneratorException.class'
   [ejbjar] adding file 'META-INF/weblogic-ejb-jar.xml'
   [ejbjar] adding file 'META-INF/ejb-jar.xml'
   [ejbjar] adding file
'com\ware2\wfs\server\idgenerator\IdGeneratorJndiService.class'
   [ejbjar] Calling weblogic.ejbc for
P:\CVS\wfs\pkg\libs\idgenerator\IdGen2-generic.jar
     [ejbc] Forking java -classpath
P:\CVS\wfs\ext\jars\crimson.jar;P:\CVS\wfs\ext\jars\jaxp.jar;P:\CVS\wfs\ext\
jars\jconn2.jar;P:\CVS\wfs\ext\jars\rt-1_3.jar;P:\CVS\wfs\ext\jars\weblogic.
jar;P:\CVS\wfs\ext\jars\weblogic_sp.jar;P:\CVS\wfs\ext\jars\xalan.jar;P:\CVS
\wfs\pkg\classes\idgenerator weblogic.ejbc -noexit
P:\CVS\wfs\pkg\libs\idgenerator\IdGen2-generic.jar
P:\CVS\wfs\pkg\libs\idgenerator\IdGen2_wl.jar
     [ejbc] <7-Feb-01 11:09:08 EST AM> <Error> <EJB> <EJB Deployment:
IdGen2
has a class com.ware2.wfs.server.idgenerator.entity.IdGeneratorBean which is
in the classpath. This class should only be located in the ejb-jar file.> 
     [ejbc] <7-Feb-01 11:09:08 EST AM> <Error> <EJB> <EJB Deployment:
IdGen2
has a class com.ware2.wfs.server.idgenerator.entity.IdGeneratorHome which is
in the classpath. This class should only be located in the ejb-jar file.> 
     [ejbc] <7-Feb-01 11:09:08 EST AM> <Error> <EJB> <EJB Deployment:
IdGen2
has a class com.ware2.wfs.server.idgenerator.entity.IdGenerator which is in
the classpath. This class should only be located in the ejb-jar file.> 
     [ejbc] 
     [ejbc] ERROR: Error from ejbc: error in finding weblogic.Home
     [ejbc] weblogic.utils.compiler.ToolFailureException: ERROR: ejbc found
errors
     [ejbc]  at weblogic.ejbc20.runBody(ejbc20.java:386)
     [ejbc]  at weblogic.utils.compiler.Tool.run(Tool.java:81)
     [ejbc]  at weblogic.ejbc.main(ejbc.java:20)
   [ejbjar] The old method for locating CMP files has been DEPRECATED.
   [ejbjar] Please adjust your weblogic descriptor and set oldCMP="false" to
use the new CMP descriptor inclusion mechanism. 

 

Mime
View raw message