Sukhvinder Gill wrote:

I finally got my embedded app working by including many libraries.

Not a good idea!

After
further investigation
I think this was probably not the correct way to resolve the issue, rather
the avalon-repository bootstrapping should actually taken care of this,

Yep - you should have only one rather small jar file in you classpath.

  avalon-repository-main-2.0.0.jar

In the tutorial pack you will find the tutorials/main example. If you update the source to reference 3.3.0 everything should work just fine. Also your own example should be ok as well but after updating your bootstrap classpath - if you have any problems yell out and we will sort things out. Things to keep in such an event are:

1. the source to your embedder
2. the command line your using to bootstrap with
3. contents of ${user.dir}/merlin.properties
4. the stacktrace

The class java.lang.NoClassDefFoundError seems to suggest that it cannot
find the avalon-framework artifcats from the repository.


This suggests a classloader stack conflict which is almost certainly a result of putting extra jars into the bootstrap classpath.

My local repository
is h:\merlin\system which does seem to contain
avalon-framework artifact.

below is contents of the meta file for merlin artifact and all the files
held in the respositry h:\merlin\system.

Maybe I'm missing the point here, I thought it would simply loads in the
jars it was dependent on at runtime. Is there any override critera I need to
pass to merlin when it is bootstrapping it self on the
location of the repostory ?

Yes - but to provide a proper answer could you post the details of the inital context creation from your example? Also, have you created a merlin.properties file and set the following property values:


merlin.info = true
merlin.debug = true

This can be very useful to figure out what is happening.

Cheers, Stephen.

--

|---------------------------------------|
| Magic by Merlin                       |
| Production by Avalon                  |
|                                       |
| http://avalon.apache.org              |
|---------------------------------------|

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



Reply via email to