Re: Embedding Merlin in Main method

Paul E Cooley <[email protected]>
Newsgroups gmane.comp.jakarta.avalon.user
Message-ID <[email protected]>
Given that the Tahiti framework is its own container, are you attempting to
startup from within Merlin, or actually migrate the Tahiti components/services
to the merlin model?  

In other words, what is the design tack you are taking?

(I know the Tahiti container because I helped build it at slb)

Quoting S V Subramonian <[email protected]>:

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