ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kapil_Pa...@i2.com
Subject RE: ejbjar compiler="jikes" vs. compiler="java"
Date Fri, 07 Sep 2001 04:45:54 GMT
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: kapil_pawar@i2.com
Tel: +91 80 558 1487-90 ext. 2416




ArindamR@NIIT.COM
09/06/01 07:08 PM
Please respond to ant-user

 
        To:     ant-user@jakarta.apache.org
        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: Kapil_Pawar@i2.com [mailto:Kapil_Pawar@i2.com]
Sent: Thursday, September 06, 2001 6:58 PM
To: ant-user@jakarta.apache.org
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: kapil_pawar@i2.com
Tel: +91 80 558 1487-90 ext. 2416 



ArindamR@NIIT.COM 
09/06/01 06:47 PM 
Please respond to ant-user 
        
        To:        ant-user@jakarta.apache.org 
        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





Mime
View raw message