ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <ja...@yoosed.com>
Subject Re: could not fully load <...>Home for super class check??!!?? FIXED sortof
Date Wed, 11 Apr 2001 17:27:05 GMT
I've just figured it out sortof ....it was because I had all my bean classes
in the system classpath
and ant uses the system classpath to find the jars that it needs and somehow
this was causing a conflict with ant's classloader...?
basically it seems that ant is finding and loading all the classes noted in
the deploy descriptor in the system classpath but is unable to load them
"fully",as it says, from the it's own classloader because it NEEDS to load
the classes from it's own classloader?? and then my understanding fades
further into the abyss... It's this modifier "FULLY" that really bugs me
here...

here's some of the debug mess:

   [ejbjar] 1 deployment descriptors located.
Class com.company.common.util.PrimaryKey loaded from system loader
   [ejbjar] looking at class com.company.common.util.PrimaryKey
   [ejbjar] Could not fully load class
com.company.enterprise.serviceoffering.impl.ejb.DiscountHome for super class
check
   [ejbjar] Could not fully load class
com.company.enterprise.displayed.impl.ejb.PromotionHome for super class
check
Class com.company.enterprise.displayed.impl.basic.PromotionStatus loaded
from system loader
   [ejbjar] looking at class
com.company.enterprise.displayed.impl.basic.PromotionStatus
Class com.company.enterprise.serviceoffering.Discount loaded from system
loader
   [ejbjar] looking at interface
com.company.enterprise.serviceoffering.Discount
   [ejbjar]      implements java.rmi.Remote
   [ejbjar]      implements com.company.common.util.Identifiable
   [ejbjar]      implements com.company.common.util.Describable
   [ejbjar]      implements com.company.common.util.Auditable
   [ejbjar] Could not fully load class
com.company.enterprise.displayed.impl.ejb.Promotion for super class check
Class com.company.enterprise.displayed.Promotion loaded from system loader
   [ejbjar] looking at interface com.company.enterprise.displayed.Promotion
   [ejbjar]      implements java.rmi.Remote
   [ejbjar]      implements com.company.common.util.Identifiable
   [ejbjar]      implements com.company.common.util.Auditable
   [ejbjar]      implements com.company.enterprise.displayed.Branded
   [ejbjar] Could not fully load class
com.company.enterprise.displayed.impl.ejb.PromotionBean for super class
check
   [ejbjar] C:\AppDev\stage\build\ejbjars\Promotion.jar is up to date.

BUILD SUCCESSFUL <-wha?


in anycase, this is how I fixed this:
I made sure to clean my system classpath to include only neccessities:
rt.jar, jaxp.jar etc... AND THEN  I fed ejbjar the necessary classpaths for
the bean files and such....and voila!



----- Original Message -----
From: <james@yoosed.com>
To: <ant-user@jakarta.apache.org>
Sent: Tuesday, April 10, 2001 6:12 PM
Subject: Re: could not fully load <...>Home for super class check??!!??


> I've already tried that...is doesn't work..
>
>
> ----- Original Message -----
> From: "Goli, Srikanth" <sg210022@exchange.DAYTONOH.NCR.com>
> To: <ant-user@jakarta.apache.org>
> Sent: Tuesday, April 10, 2001 5:44 PM
> Subject: RE: could not fully load <...>Home for super class check??!!??
>
>
> > James,
> >
> > Add ur build.dir directory also in ejbjar and weblogic (both) elements'
> > classpath.
> >
> > -Srikanth Goli
> >
> > > -----Original Message-----
> > > From: james@yoosed.com [SMTP:james@yoosed.com]
> > > Sent: Tuesday, April 10, 2001 1:42 PM
> > > To: ant-user@jakarta.apache.org
> > > Subject: could not fully  load <...>Home for super class check??!!??
> > >
> > > I've seen questions for this posted...but there doesn't seem to be any
> > > definate answers.
> > > I keep getting the aforementioned warning...the jars seem to build
> > > anyway...
> > > what does it mean in the context of ant's build process?
> > >
> > > I've played around w/ numerous variations of the classpath and include
> > > elements...no positive results, except when ant cannot locate my
> > > ejb-jar.xml
> > > then I don't get the persnikety warning/error...but no jar
either...poo
> > >
> > > heres an excerpt from the ejbjar task from my build.xml:
> > >
> > >  <ejbjar descriptordir="."  basejarname="${bean.name}"
> > > srcdir="${build.dir}">
> > >        <include name="*-jar.xml"/>
> > >
> > >       <classpath>
> > >            <pathelement path="${wl.classpath}"/>
> > >            <pathelement path="${jar.classpath}"/>
> > >       </classpath>
> > >
> > >   <weblogic destdir="${ejb.dir}"  rebuild="false"
> > > compiler="${build.compiler}" newCMP="true">
> > >          <classpath>
> > >               <pathelement path="${wl.classpath}"/>
> > >               <pathelement path="${jar.classpath}"/>
> > >          </classpath>
> > >   </weblogic>
> > >
> > >  </ejbjar>
> >
> >
>
>
>


Mime
View raw message