ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niels Verdonk <Niels.Verd...@ctp.com>
Subject RE: ejbjar compiler="jikes" vs. compiler="java"
Date Thu, 06 Sep 2001 13:26:37 GMT
You could try putting the %JAVA_HOME%\lib\rt.jar in your classpath

-----Original Message-----
From: ArindamR@NIIT.COM [mailto:ArindamR@NIIT.COM]
Sent: Thursday, September 06, 2001 3:17 PM
To: ant-user@jakarta.apache.org
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