RE: Embedding Merlin in Main method

"Stephen McConnell" <[email protected]>
Newsgroups gmane.comp.jakarta.avalon.user
Message-ID <000b01c48caf$60503090$1601a8c0@gloria>

From the following we can see that your deployment scenario is
presumable defined within the kernel because your not declaring any
deployment targets.  


>   ${merlin.kernel} == file:/D:/merlin/config/kernel.xml
>   ${merlin.deployment} ==


Later on in the trace we can see that your classloader definition isn't
adding much - in fact it not adding anything in the classpath, and
reasonably there are no component types located.


> [DEBUG  ] (classloader): base: ${merlin.dir}
> [DEBUG  ] (classloader): classpath:
> [DEBUG  ] (classloader.types): type install count: 0
> [DEBUG  ] (classloader.types): type registration complete


Moving on with what is in effect an empty container ...

> [DEBUG  ] (kernel): state: initializing
> [DEBUG  ] (kernel): kernel established
> [DEBUG  ] (kernel): state: initialized
> [DEBUG  ] (kernel): install phase
> [DEBUG  ] (kernel): customize phase
> [DEBUG  ] (kernel): startup phase
> [DEBUG  ] (kernel): application assembly
> [DEBUG  ] (kernel): state: assembly
> [DEBUG  ] (): assembly phase
> [DEBUG  ] (kernel): application deployment
> [DEBUG  ] (kernel): state: deployment
> [DEBUG  ] (kernel): state: started
> Calling HelloWorld in Test
> [DEBUG  ] (): Can't find 'tahiti' in model repository:
> {}
> java.lang.Exception: ---- runtime exception report
> --------------------------------------------------
> Exception: java.lang.IllegalArgumentException
> Message: Unable to locate a container with name
> [tahiti] within the container [[/]].

Which is a perfectly reasonable situation - you're asking for a
component that does not exist.

Can we roll back a bit here and provide a summary of what exactly are
you trying to do (sorry if you have already provided this info).  Anyway
- seems to me you may be going about it the wrong way.

Stephen.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.