RE: Embedding Merlin in Main method

"Stephen McConnell" <[email protected]>
Newsgroups gmane.comp.jakarta.avalon.user
Message-ID <002f01c48b99$2d3a7740$1601a8c0@gloria>

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]
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.