> -----Original Message----- > From: David Leangen [mailto:[EMAIL PROTECTED] > Sent: 06 August 2004 04:00 > To: [EMAIL PROTECTED] > Subject: Interesting error when adding log JAR > > > I noticed something interesting. > > I am dynamically instantiating a component with a call like this: > > Factory factory = builder.getFactory(); > Map criteria = factory.createDefaultCriteria(); > criteria.put("merlin.deployment", > "artifact:block:components/my-component-0.0.1"); > criteria.put("merlin.deployment.timeout", "0"); > factory.create( criteria ); > > My component works fine. > > Then I add the jars from avalon/logging to my classpath and I get the > error > below. Took me a long time to figure out that there was a relationship > with > logging, since nothing of the sort is mentioned in the error messages. > Also, > because the error is misleading, I'm not able to figure out how to > proceed. > > > It's no big deal, but I thought I'd mention it anyway.
Following a quick chat with Dave it looks like this is a setup problem linked to the bootstrap classloader established by Eclipse. Solutions should be possible through tweaking Eclipse. A quick note about bootstrap classloaders for embedding - the following jar files are needed in the classloader that is embedding Merlin (relative to Merlin 3.4.0 SNAPSHOT): artifact:jar:avalon/repository/avalon-repository-main#SNAPSHOT artifact:jar:avalon/repository/avalon-repository-spi#2.0.0 artifact:jar:avalon/repository/avalon-repository-api#SNAPSHOT artifact:jar:avalon/repository/avalon-repository-util#2.0.0 artifact:jar:avalon/util/avalon-util-exception#1.0.0 artifact:jar:avalon/util/avalon-util-env#1.1.1 artifact:jar:avalon/util/avalon-util-i18n#1.0.0 artifact:jar:avalon/util/avalon-util-criteria#1.1.0 artifact:jar:avalon/util/avalon-util-defaults#SNAPSHOT Generally speaking an embeddor should aim to limit any additional dependencies to the maximum extent possible. Cheers, Steve. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
