Kapil
I
tried your solution. Didn't work out for me. The problem is with weblogic's ejbc
command not with ant. If you run
java
-classpath=$WL_HOME/lib/weblogic.jar -compiler=javac genric.jar
deployable.jar
This
will run fine. The moment you replace -compiler=javac with -compiler=jikes
as
java
-classpath=$WL_HOME/lib/weblogic.jar -compiler=jikes genric.jar
deployable.jar
gives
error.
Arindam
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 07, 2001 10:16 AM
To: [EMAIL PROTECTED]
Subject: RE: ejbjar compiler="jikes" vs. compiler="java"
Hi Arindam,
I had also encountered a similar problem once with Ant 1.3. I solved it by adding two properties as:
javac_compiler=jikes (or classic for using the classic compiler)
ejbc_compiler=jikes (or javac for using the classic compiler)
Then I had set the build.compiler property to ${javac_compiler} and compiler argument of weblogic task to ${ejbc_compiler} to make it work.
_____________________________________
Kapil Singh Pawar
Consultant - Integration
i2 Technologies India Private Ltd.
1 Primrose Road
Bangalore 560 025, INDIA
Email: [EMAIL PROTECTED]
Tel: +91 80 558 1487-90 ext. 2416
[EMAIL PROTECTED] 09/06/01 07:08 PM
Please respond to ant-user
To: [EMAIL PROTECTED]
cc:
Subject: RE: ejbjar compiler="jikes" vs. compiler="java"
Kapil
I am compiling the Remote/Home/Bean classes before the ejbjar task. Please note that when I am replacing compiler="jikes" with compiler="javac" in the <weblogic> task, I am able to complete the task without error.
Arindam
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 06, 2001 6:58 PM
To: [EMAIL PROTECTED]
Subject: Re: ejbjar compiler="jikes" vs. compiler="java"
Hi Arindam
You need to compile the Bean, Home and Remote Interface classes using javac before running ejbjar. Add the javac task before ejbjar.
_____________________________________
Kapil Singh Pawar
Consultant - Integration
i2 Technologies India Private Ltd.
1 Primrose Road
Bangalore 560 025, INDIA
Email: [EMAIL PROTECTED]
Tel: +91 80 558 1487-90 ext. 2416
[EMAIL PROTECTED] 09/06/01 06:47 PM
Please respond to ant-user
To: [EMAIL PROTECTED]
cc:
Subject: ejbjar compiler="jikes" vs. compiler="java"
Hi,
I am trying to use compiler="jikes" with ejbjar as :
<target depends="compile" description="Deploy" name="deploy">
<ejbjar descriptordir="${dir.descriptor}" flatdestdir="true"
srcdir="${dir.build}">
<weblogic classpath="${stellar.classpath}" compiler="jikes"
destdir="${dir.deploy}" newcmp="true" wlclasspath="${weblogic.classpath}"/>
<dtd location="${dir.dtd}/weblogic/ejb20/dd/xml/ejb11-jar.dtd"
publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN"
publicid="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN"/>
<dtd
location="${dir.dtd}/weblogic/ejb20/dd/xml/weblogic600-ejb-jar.dtd"
publicId="-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN" publicid="-//BEA
Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN"/>
<include name="**/*-ejb-jar.xml"/>
<exclude name="**/*.weblogic*.xml"/>
</ejbjar>
</target>
The error that I am getting is :
Buildfile: build.xml
init:
[mkdir] Created dir: D:\Stellar\Dynamic\Code\build
compile:
[javac] Compiling 13 source files to D:\Stellar\Dynamic\Code\build
deploy:
[ejbjar] building Dept.jar with 7 files
[ejbc]
[ejbc] Found 54 semantic errors compiling
"D:/Stellar/Dynamic/Code/ejbcgen/samples/ejb/Dept_WebLogic_CMP_RDBMS.java":
[ejbc]
[ejbc] 29. public final class Dept_WebLogic_CMP_RDBMS extends
samples.ejb.DeptBean
[ejbc]
<------>
[ejbc] *** Error: Type samples/ejb/DeptBean was not found.
[ejbc]
[ejbc]
[ejbc] 51. deptno = 0;
[ejbc] <---->
[ejbc] *** Error: No entity named "deptno" was found in this
environment.
[ejbc]
[ejbc]
[ejbc] 52. loc = null;
[ejbc] <->
[ejbc] *** Error: No entity named "loc" was found in this environment.
******** snip ******************
It seems that jikes is not able to locate the Home, Remote or the Bean
classes.
However if I replace compiler="jikes" with compiler="javac", there's no
error. Is there something I am missing out?
Regards
Arindam