Thanks, Stephen... 

The reason I was including the Merlin API was because I would be
needing to deploy a block dynamically further down the exercise... ..I
suppose I will be able to do this only if I use something like this :

m_kernel.getModel().addModel(m_kernel.locate(url));

Basically what I'm trying to do is this:

I have an application initializer which will throw up a login screen
and ask the user to login. After login, the 'modules' allowed for his
profile will be downloaded, and the actual application started with
only those 'modules' that he has access to deployed in the kernel.
User 2 may have a completely different set of modules to work with...
..the concept being the entire application will be available to a user
only very rarely. For this, I have two choices: generate the block.xml
dynamically, ask merlin to deploy the block, or package the modules as
blocks, ask merlin to deploy all blocks it finds within a single
directory...

It will be really simple if I can do this without embedding Merlin
into my application and instead asking it to simply launch all blocks
found in a folder - BUT AFTER login is through...

How do I get this done? ..Am I on the right track at all? Any
suggestions will be helpful.

Re. the classpath, I came across another post where you'd suggested to
remove all other jars from the system classpath as this would result
in a conflict between classloaders...  ..I had merlin-impl.jar or
something also in the system classpath. Once I removed it and included
only avalon-repository-api, avalon-repository-main, merlin-api and
avalon-framework-api in the system classpath (other than my own jar),
things worked fine.

Thanks a lot for your help,

Brgds,

R. Saravanan

On Fri, 10 Sep 2004 00:29:28 +0200, Stephen McConnell
<[EMAIL PROTECTED]> wrote:
> 
> 
> > -----Original Message-----
> > From: Rajamani Saravanan [mailto:[EMAIL PROTECTED]
> > Can someone let me know what set of
> > jar files am I supposed to be including in the classpath when I run
> > the application?
> 
> You normally only need avalon-repository-main version 2.0.0.
> 
> In your case your attempting to cast the context Map to KernelContext
> (which should not be necessary).  If you need to include the Merlin API
> for other reasons then you will also need to include:
> 
>   avalon-framework-api
>   avalon-composition-api
>   avalon-logging-api
>   avalon-meta-api
>   avalon-logkit
> 
> Stephen.
> 
>

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

Reply via email to