This error is because the class TrackingBean (I believe), which you
named WLBean, could not be found.  I have ran into this problem before
and I solved it by adding any necessary class through the support
nested element.  To determine which files are required I just kept
running the task to build and compile the ejb jar until it worked.  I
know it is the brut force method but it worked, only took about 5 mins

  What I think should happen is that introspection be done to determine
which dependent classes are needed and add them automagically.  JMO

dwfa

--- Eddie Bernard <[EMAIL PROTECTED]> wrote:
> I'm trying to create an EJB using the <ejbjar> task with WebLogic
> 6.1.  I'm
> using Ant 1.4.1.
> 
> Here's the stack trace:
> ejbs:
>      [echo] --(DT)--> Generating ejbs
> Overriding previous definition of reference to
> opel.rdbms.deployment.descriptors
>    [ejbjar] building TrackingBean.jar with 6 files
>      [ejbc] weblogic.utils.AssertionError: ***** ASSERTION FAILED
> *****[
> Couldn't find a WLBean called "TrackingBean" ]
>      [ejbc]     at weblogic.utils.Debug.assert(Debug.java:84)
>      [ejbc]     at
>
weblogic.ejb20.deployer.CompositeMBeanDescriptor.initialize60(CompositeMBean
> Descriptor.java:218)
>      [ejbc]     at
>
weblogic.ejb20.deployer.CompositeMBeanDescriptor.init(CompositeMBeanDescript
> or.java:159)
>      [ejbc]     at
>
weblogic.ejb20.deployer.CompositeMBeanDescriptor.<init>(CompositeMBeanDescri
> ptor.java:152)
>      [ejbc]     at
>
weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeBeanInfos(MBeanDep
> loymentInfoImpl.java:393)
>      [ejbc]     at
>
weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.<init>(MBeanDeploymentInfoIm
> pl.java:126)
>      [ejbc]     at
> weblogic.ejb20.ejbc.EJBCompiler.setupEJB(EJBCompiler.java:127)
>      [ejbc]     at weblogic.ejbc20.runBody(ejbc20.java:358)
>      [ejbc]     at weblogic.utils.compiler.Tool.run(Tool.java:79)
>      [ejbc]     at weblogic.ejbc20.main(ejbc20.java:460)
>      [ejbc] Exception in thread "main" weblogic.utils.AssertionError:
> *****
> ASSERTION FAILED *****[ Couldn't find a WLBean called "TrackingBean"
> ]
>      [ejbc]     at weblogic.utils.Debug.assert(Debug.java:84)
>      [ejbc]     at
>
weblogic.ejb20.deployer.CompositeMBeanDescriptor.initialize60(CompositeMBean
> Descriptor.java:218)
>      [ejbc]     at
>
weblogic.ejb20.deployer.CompositeMBeanDescriptor.init(CompositeMBeanDescript
> or.java:159)
>      [ejbc]     at
>
weblogic.ejb20.deployer.CompositeMBeanDescriptor.<init>(CompositeMBeanDescri
> ptor.java:152)
>      [ejbc]     at
>
weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeBeanInfos(MBeanDep
> loymentInfoImpl.java:393)
>      [ejbc]     at
>
weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.<init>(MBeanDeploymentInfoIm
> pl.java:126)
>      [ejbc]     at
> weblogic.ejb20.ejbc.EJBCompiler.setupEJB(EJBCompiler.java:127)
>      [ejbc]     at weblogic.ejbc20.runBody(ejbc20.java:358)
>      [ejbc]     at weblogic.utils.compiler.Tool.run(Tool.java:79)
>      [ejbc]     at weblogic.ejbc20.main(ejbc20.java:460)
> 
> BUILD FAILED
> 
> /vobs/opel/build_opel.xml:170: Exception while calling
> weblogic.ejbc20.
> Details: Ejbc reported an error
> 
> Here's the snippet of my build.xml:
> 
>   <target name="ejbs"
>           depends="classes"
>           description="generates ejbs">
>     <echo message="--(DT)--> Generating ejbs"/>
>     <copy todir="${opel.build}">
>       <fileset dir="${opel.src}"
>                includes="**/ejb-jar.xml,**/weblogic-ejb-jar.xml"/>
>     </copy>
>     <copy todir="${opel.build}">
>       <fileset dir="${opel.src}">
>         <patternset id="opel.rdbms.deployment.descriptors">
>           <include name="**/*rdbms*"/>
>         </patternset>
>       </fileset>
>     </copy>
>     <ejbjar srcdir="${opel.build}"
>             descriptordir="${opel.build}"
>             classpath="${opel.classpath}"
>             naming="ejb-name"
>             flatdestdir="true">
>       <weblogic destdir="${opel.release}"
>                 keepgeneric="no"
>                 rebuild="false"
>                 classpath="${opel.classpath};${wls.classpath}"
>                 noEJBC="false"
>                 newCMP="false">
>       </weblogic>
>       <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise
> JavaBeans
> 2.0//EN"
>            location="${opel.home}/ejb-jar_2_0.dtd"/>
>       <include name="**/ejb-jar.xml"/>
>       <exclude name="**/*weblogic*.xml"/>
>     </ejbjar>
>   </target>
> 
> 
> Any ideas?  I've been staring at this for a while and I'm completely
> out of
> ideas.
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


=====
Douglas WF Acheson

__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to