> -----Original Message-----
> From: David Leangen [mailto:[EMAIL PROTECTED]
> Sent: 12 September 2004 07:36
> To: Avalon framework users
> Subject: RE: Problem implementing automated tests
> 
> 
> Indeed, this hello example works fine.
> 
> The problem occurs when I try to add merlin resources to the build.
For
> example, try adding this in your index file of the hello example:
> 
>   <resource>
>     <info>
>       <group>avalon/composition</group>
>       <name>avalon-composition-impl</name>
>       <version>SNAPSHOT</version>
>       <type>jar</type>
>     </info>
>   </resource>
> 
> 
> That's when things start to go wrong.

Normally when merlin deploys a component that has a dependency on
something like composition-impl, the dependencies will be included in
the classloader defined in the container.  It sounds like your including
composition-impl in the test classes which in turn means that you
pushing these classes up in the classloader stack which will result in a
class not found exception if you do not include all other dependencies
of composition-impl.

But first of all - composition impl should not be used (its an
implementation package).  What is the scenario that you have that is
requiring its inclusion?

Cheers, Stephen.


> The thing is, I need some of these resources for my build.
> 
> 
> Any ideas?
> 
> 
> 
> 
> 
> > -----Original Message-----
> > From: Stephen McConnell [mailto:[EMAIL PROTECTED]
> > Sent: 10 September 2004 22:02
> > To: 'Avalon framework users'; [EMAIL PROTECTED]
> > Subject: RE: Problem implementing automated tests
> >
> >
> >
> > Have just tried this out with an extended hello example and I'm not
> > seeing any problems.
> >
> > http://www.apache.org/~mcconnell/test/hello.zip
> >
> > Steve.
> >
> >
> > > -----Original Message-----
> > > From: David Leangen [mailto:[EMAIL PROTECTED]
> > > Sent: 10 September 2004 02:40
> > > To: [EMAIL PROTECTED]
> > > Subject: Problem implementing automated tests
> > >
> > >
> > > Hello!
> > >
> > > I'm now at the point where I'd like to implement automated
testing. I
> > am
> > > following the example of the "hello" tutorial and basing my test
> > classes
> > > on
> > > AbstractMerlinTestCase.
> > >
> > > In my project, I already have the following dependencies:
> > >
> > >   <include key="commons-logging"/>
> > >   <include key="commons-logging-api"/>
> > >   <include key="avalon-framework-api"/>
> > >   <include key="avalon-framework-impl"/>
> > >   <include key="junit"/>
> > >   <include key="avalon-merlin-unit"/>
> > >
> > > I have included this line in my index file:
> > >
> > >   <import index="J:/avalon/runtime/index.xml"
> > >
> > >
> >
href="http://svn.apache.org/repos/asf/avalon/trunk/runtime/index.xml"/>
> > >
> > >
> > > I am getting this error:
> > >
> > >   java.lang.NoClassDefFoundError:
> > > org/apache/avalon/repository/provider/InitialContextFactory
> > >
> > >
> > > This comes from the provider. However, since I've included
> > > "avalon-merlin-unit" and "avlon-framework-*", I'm not sure what
else
> > needs
> > > to be done.
> > >
> > >
> > >
> > > Any suggestions?
> > >
> > >
> > >
> > >
> > >
> > >
> > >
---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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

Reply via email to