RE: Embedding Merlin in Main method
S V Subramonian <[email protected]>
| Newsgroups | gmane.comp.jakarta.avalon.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Steve,
Here is the log stack trace that you were asking for.
regards,
Subbu
Log Trace
++++++++++++++++++++++++++++++++++++++++++++++++++++++
[DEBUG ] (kernel.logger): logging system established
[DEBUG ] (kernel.logger): adding category [kernel]
[DEBUG ] (kernel): logging system established
[DEBUG ] (kernel): repository established:
"C:\Documents and
Settings\SSubramonian\.maven\repository",
http://www.dpml.net/, http://www.ibiblio.org/maven/
[DEBUG ] (kernel.logger): adding category [kernel]
[INFO ] (kernel): info report
-----------------------------------------------------------
Merlin Kernel Environment Listing
-----------------------------------------------------------
${user.dir} == D:\eclipse\workspace\MerlinTahiti
${user.home} == C:\Documents and
Settings\SSubramonian
${avalon.repository.cache} == C:\Documents and
Settings\SSubramonian\.maven\repository
${avalon.repository.online} == true
${avalon.repository.hosts} ==
http://www.dpml.net,http://www.ibiblio.org/maven
${merlin.lang} == null
${merlin.home} == D:\merlin
${merlin.system} == D:\merlin\system
${merlin.config} == D:\merlin\config
${merlin.kernel} ==
file:/D:/merlin/config/kernel.xml
${merlin.logging.implementation} ==
artifact:avalon-logging/avalon-logging-logkit-impl#1.0.0
${merlin.logging.config} == null
${merlin.runtime} ==
artifact:avalon-activation/avalon-activation-impl#2.0.0
${merlin.override} == null
${merlin.dir} == D:\eclipse\workspace\MerlinTahiti
${merlin.temp} == C:\Temp
${merlin.context} ==
D:\eclipse\workspace\MerlinTahiti\home
${merlin.anchor} ==
D:\eclipse\workspace\MerlinTahiti
${merlin.info} == true
${merlin.debug} == true
${merlin.audit} == false
${merlin.server} == true
${merlin.autostart} == true
${merlin.code.security.enabled} == false
${merlin.deployment.timeout} == 0
${merlin.repository} == "C:\Documents and
Settings\SSubramonian\.maven\repository"
${merlin.repository.hosts} ==
http://www.dpml.net/,http://www.ibiblio.org/maven/
${merlin.deployment} ==
-----------------------------------------------------------
[DEBUG ] (kernel): building application model
[DEBUG ] (kernel.logger): adding root category
[DEBUG ] (kernel.logger): adding root category
[DEBUG ] (kernel.logger): adding root category
[DEBUG ] (classloader): base: ${merlin.dir}
[DEBUG ] (classloader): classpath:
[DEBUG ] (classloader.types): type install count: 0
[DEBUG ] (classloader.types): type registration
complete
[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 [[/]].
---- stack trace
---------------------------------------------------------------
java.lang.IllegalArgumentException: Unable to locate a
container with name [tahiti] within the container
[[/]].
org.apache.avalon.composition.model.impl.DefaultContainmentModelNavigationHelper.getModel(DefaultContainmentModelNavigationHelper.java:194)
org.apache.avalon.composition.model.impl.DefaultContainmentModel.getModel(DefaultContainmentModel.java:741)
org.apache.avalon.composition.model.impl.DefaultContainmentModelNavigationHelper.getModel(DefaultContainmentModelNavigationHelper.java:93)
org.apache.avalon.composition.model.impl.DefaultContainmentModel.getModel(DefaultContainmentModel.java:741)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
com.slb.sis.tahiti.Framework.resolve(Framework.java:2683)
merlin.component.Test.main(Test.java:29)
--------------------------------------------------------------------------------
at
com.slb.sis.tahiti.Framework.resolve(Framework.java:2690)
at merlin.component.Test.main(Test.java:29)
++++++++++++++++++++++++++++++++++++++++++++++++++++++
--- Stephen McConnell <[email protected]> wrote:
>
>
> Actually what I was interested in is the log when
> debug is enabled. If
> you're running with merlin from the command line
> just add the -debug
> switch (and -info would be interesting to), or
> alternatively add the
> following property to your merlin.properties file:
>
> merlin.debug = true
> merlin.info = true
>
> This will provide info about what is happening in
> your environment. The
> info switch will provide a listing of the initial
> kernel parameters.
> The debug switch will show what merlin is doing with
> those params.
>
> Cheers, Steve.
>
>
> > -----Original Message-----
> > From: S V Subramonian
> [mailto:[email protected]]
> > Sent: 26 August 2004 18:41
> > To: [email protected]
> > Subject: RE: Embedding Merlin in Main method
> >
> >
> > Hi Steve,
> >
> > I don't know whether you got my log message or
> not. I
> > am sending this to you again.
> >
> >
> > Stack trace is
> >
> >
> > [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 [[/]].
> > ---- stack trace
> >
>
---------------------------------------------------------------
> > java.lang.IllegalArgumentException: Unable to
> locate a
> > container with name [tahiti] within the container
> > [[/]].
> >
>
org.apache.avalon.composition.model.impl.DefaultContainmentModelNavigati
> on
> >
>
Helper.getModel(DefaultContainmentModelNavigationHelper.java:194)
> >
>
org.apache.avalon.composition.model.impl.DefaultContainmentModel.getMode
> l(
> > DefaultContainmentModel.java:741)
> >
>
org.apache.avalon.composition.model.impl.DefaultContainmentModelNavigati
> on
> >
>
Helper.getModel(DefaultContainmentModelNavigationHelper.java:93)
> >
>
org.apache.avalon.composition.model.impl.DefaultContainmentModel.getMode
> l(
> > DefaultContainmentModel.java:741)
> >
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > Method)
> >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:
> > 39)
> >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Im
> > pl.java:25)
> > java.lang.reflect.Method.invoke(Method.java:324)
> >
>
com.slb.sis.tahiti.Framework.resolve(Framework.java:2683)
> > merlin.component.Test.main(Test.java:29)
> >
>
------------------------------------------------------------------------
> --
> > ------
> >
> > at
> >
>
com.slb.sis.tahiti.Framework.resolve(Framework.java:2690)
> > at merlin.component.Test.main(Test.java:29)
> >
> >
> >
> >
> >
> > regards,
> > Subbu
> >
> >
> >
> >
> >
> > --- Stephen McConnell <[email protected]>
> wrote:
> >
> > >
> > > What does the debug log say?
> > >
> > > Steve.
> > >
> > > > -----Original Message-----
> > > > From: S V Subramonian
> > > [mailto:[email protected]]
> > > > Sent: 26 August 2004 18:11
> > > > To: [email protected]
> > > > Subject: Embedding Merlin in Main method
> > > >
> > > >
> > > > All,
> > > >
> > > > I am following the example of Merlin embedded
> in a
> > > > main method in combination with
> > > > AbstractMerlinTestCase.
> > > >
> > > > I have a container called tahiti and a
> component
> > > > called simple that I have mentioned in
> block.xml.
> > > >
> > > > I have a resolve method just like the one in
> > > > AbstractMerlinTestCase which takes the path of
> the
> > > > component. The path that I have given is
> > > > "/tahiti/simple". For some reason Merlin is
> > > > complaining that "Can't find 'tahiti' in
> model
> > > > repository: {}"
> > > >
> > > > Could any one help me to find out what could
> be an
> > > > issue.
> > > >
> > > > Thanks and regards,
> > > > Subbu
> > > >
> > > >
> > > > [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 [[/]].
> > > > ---- stack trace
> > >
> > >
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > [email protected]
> > > For additional commands, e-mail:
> > > [email protected]
> > >
> > >
> >
> >
> >
> >
> > _______________________________
> > Do you Yahoo!?
> > Express yourself with Y! Messenger! Free. Download
> now.
> > http://messenger.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > 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]
>
=== message truncated ===
_______________________________
Do you Yahoo!?
Express yourself with Y! Messenger! Free. Download now.
http://messenger.yahoo.com