"Niclas Hedhman" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > On Tuesday 01 June 2004 17:39, Eike Stepper wrote: > > i have no jar for now and i usually don't use maven when i work in eclipse. > > i manually copied pieces from the merlin tutorial (as i showed in former > > postigs), the eclipse builder compiles the source files to the bin folder > > (and also copies all non-java resources). it doesn't seem to be a problem > > for merlin to load everything from there. i just can't access a service or > > a component from outside of the kernel, yet! > > Sounds like you don't manage to generate the Meta information about the > component.
it took me a while but i managed to make my ant task create a HelloComponent.xinfo (and IdentifiableComponent.xinfo + RandomGeneratorProvider.xinfo respectively): <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE type PUBLIC "-//AVALON/Type DTD Version 1.0//EN" "http://avalon.apache.org/dtds/meta/type_1_1.dtd" > <type> <info> <name>hello</name> <version>1.0.0</version> <lifestyle>singleton</lifestyle> <collection>hard</collection> </info> <dependencies> <dependency key="random" type="tutorial.RandomGenerator" version="1.0.0"/> <dependency type="tutorial.Identifiable"/> </dependencies> </type> <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE type PUBLIC "-//AVALON/Type DTD Version 1.0//EN" "http://avalon.apache.org/dtds/meta/type_1_1.dtd" > <type> <info> <name>ident</name> <version>1.0.0</version> <lifestyle>singleton</lifestyle> <collection>hard</collection> </info> <context> <entry key="urn:avalon:name" /> <entry key="urn:avalon:partition" /> </context> <services> <service type="tutorial.Identifiable"/> </services> </type> <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE type PUBLIC "-//AVALON/Type DTD Version 1.0//EN" "http://avalon.apache.org/dtds/meta/type_1_1.dtd" > <type> <info> <name>random</name> <version>1.0.0</version> <lifestyle>singleton</lifestyle> <collection>hard</collection> </info> <services> <service type="tutorial.RandomGenerator" version="1.0.0"/> </services> </type> the .xinfos are obviously recognized and used by the container since the block.xml only contains a reference to the HelloComponent. the other two components must be instatiated via the service dependencies in HelloComponent.xinfo. /eike --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]