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
|
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