ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Orlandi, Andreas" <Andreas.Orla...@qwest.com>
Subject EJBJAR with WLS 6.0 SP2 & ANT 1.5 alpha
Date Wed, 26 Sep 2001 17:37:37 GMT
I'm trying to compile EJB using EJBJAR with WLS 6.0 SP2 & ANT 1.5 alpha but
somehow it fails and I can't figure out what I'm doing wrong.
Here is the snippet of the build.xml :

  <target name="ejbjar" depends="compile">
   <!-- make the ejb -->
   <mkdir dir="${deploy}/lib"/>
   <ejbjar 
         srcdir="${build}"
         descriptordir="${ejbdesc}"
	 flatdestdir="true"> 
         <weblogic 
	      destdir="${deploy}/lib"
	      keepgeneric="true"
                  newCMP="true"
	      compiler="jikes -nowarn"
                  rebuild="false">
	      <classpath>
                        <pathelement path="${buildClassPath}"/>
                  </classpath>
                   <wlclasspath>
                        <pathelement path="${weblogicClassPath}"/>
              </wlclasspath>
         </weblogic>
         <include name="**/*-ejb-jar.xml"/>
         <exclude name="**/*weblogic*.xml"/>
         <exclude name="**/GenericTypeDef*.java"/>
         <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans
1.1//EN"
                    location="${dtd_home}/ejb-jar_1_1.dtd"/>
         <dtd publicId="-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN"
                    location="${dtd_home}/weblogic-ejb-jar.dtd"/>
   </ejbjar>
  </target>

Please note that weblogicClassPath contains just the path to weblogic.jar
whereas buildClassPath points to the dir where the classes of the entire
project live (I'm using the same classpath in my javac task).
The following is the output :

[ejbjar] Calling weblogic.ejbc for
/home/01/orlandia/lims6.0/limscvs/deploy/lib/ActivationStatusDef-generic.jar
     [ejbc] Forking /prod/appl/java/jdk1.3.0_02/jre/../bin/java -classpath
/prod/appl/weblogic/6.0.0.2/lib/weblogic.jar weblogic.ejbc -compiler jikes
-nowarn
/home/01/orlandia/lims6.0/limscvs/deploy/lib/ActivationStatusDef-generic.jar
/home/0
1/orlandia/lims6.0/limscvs/deploy/lib/ActivationStatusDef.jar
     [ejbc] Exception in thread "main" java.lang.NoClassDefFoundError:
com/qwest/lims/data/GenericTypeDefData
     [ejbc]     at java.lang.Class.getMethods0(Native Method)
     [ejbc]     at java.lang.Class.getMethods(Class.java:742)
     [ejbc]     at
weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.initializeMethodInfos(Clien
tDrivenBeanInfoImpl.java:513)

Please note that GenericTypeDefData.class is definitely in the
buildClassPath.

Thanks,
Andreas

Mime
View raw message