Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 89009 invoked by uid 500); 6 Sep 2001 13:28:03 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 88994 invoked from network); 6 Sep 2001 13:28:03 -0000 To: ant-user@jakarta.apache.org Subject: Re: ejbjar compiler="jikes" vs. compiler="java" MIME-Version: 1.0 X-Mailer: Lotus Notes Release 5.0.6a January 17, 2001 Message-ID: From: Kapil_Pawar@i2.com Date: Thu, 6 Sep 2001 18:57:49 +0530 X-MIMETrack: Serialize by Router on i2Bangalore2/Servers/i2Tech(Release 5.0.7 |March 21, 2001) at 09/06/2001 06:57:55 PM, Serialize complete at 09/06/2001 06:57:55 PM, Itemize by SMTP Server on SMTPMTA2/i2Tech(Release 5.0.7 |March 21, 2001) at 09/06/2001 08:28:00 AM, Serialize by Router on SMTPMTA2/i2Tech(Release 5.0.7 |March 21, 2001) at 09/06/2001 08:28:04 AM, Serialize complete at 09/06/2001 08:28:04 AM Content-Type: multipart/alternative; boundary="=_alternative 004A442065256ABF_=" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N This is a multipart message in MIME format. --=_alternative 004A442065256ABF_= Content-Type: text/plain; charset="us-ascii" 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 : 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 --=_alternative 004A442065256ABF_= Content-Type: text/html; charset="us-ascii"
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



--=_alternative 004A442065256ABF_=--