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 exception log.

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
---------------------------------------------------------------
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:

> 
> 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!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush
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.