Re: [Hivemind] Question about customized ClassResolvers

2004-03-10 Thread Geoff Longman
That fixed it. Thanks! Geoff - Original Message - From: "Achim Huegen" <[EMAIL PROTECTED]> To: "Jakarta Commons Developers List" <[EMAIL PROTECTED]> Sent: Wednesday, March 10, 2004 9:44 AM Subject: Re: [Hivemind] Question about customized ClassResolver

Re: [Hivemind] Question about customized ClassResolvers

2004-03-10 Thread Achim Huegen
BTW - The paths that are passed as URLs to URLClassloader: My Code: file:/X:/eclipse/e21/workspace/hivemind-session-local TestRegistryBuilder: file:/X:/eclipse/e21/workspace/hivemind/src/test-data/TestRegistryBuilder In the javadoc of URLClassloader is mentioned, that the url must end with a slash

Re: [Hivemind] Question about customized ClassResolvers

2004-03-10 Thread Geoff Longman
4 AM Subject: Re: [Hivemind] Question about customized ClassResolvers > Hi, > > you could try to put the file in a source folder, so eclipse will output > it to the classpath. > Then you can build the registry like this: > > ClassResolver resolver = new DefaultClassR

Re: [Hivemind] Question about customized ClassResolvers

2004-03-10 Thread Geoff Longman
> I don't know why you get this exceptions, but why don't you just put your > module-descriptor in src/META-INF/hivemodule.xml. And than call > Registry reg = RegistryBuilder.constructDefaultRegistry(). This will take > all the META-INF/hivemodule.xml which are on the classpath - wheter jared > o

Re: [Hivemind] Question about customized ClassResolvers

2004-03-10 Thread Geoff Longman
TECTED]> Sent: Wednesday, March 10, 2004 4:34 AM Subject: Re: [Hivemind] Question about customized ClassResolvers > Hey Geoff, > It may have something to do with HiveMind passing the path (hard coded) "META-INF/hivemodule.xml". I think depending on how your project is set up and/or

Re: [Hivemind] Question about customized ClassResolvers

2004-03-10 Thread Christian Essl
Hi John, I like your multimodule classloader. I think HiveMind needs something like that. I was just wondering wheter the properties file is needed. I thought wheter it was possible to load all META-INF/hivemodule.xml and than parse the loaded ModuleDescriptors for contributions to a 'magic' c

Re: [Hivemind] Question about customized ClassResolvers

2004-03-10 Thread Achim Huegen
Hi, you could try to put the file in a source folder, so eclipse will output it to the classpath. Then you can build the registry like this: ClassResolver resolver = new DefaultClassResolver(); RegistryBuilder builder = new RegistryBuilder(); builder.processModules( resol

Re: [Hivemind] Question about customized ClassResolvers

2004-03-10 Thread Christian Essl
I don't know why you get this exceptions, but why don't you just put your module-descriptor in src/META-INF/hivemodule.xml. And than call Registry reg = RegistryBuilder.constructDefaultRegistry(). This will take all the META-INF/hivemodule.xml which are on the classpath - wheter jared or not. A

Re: [Hivemind] Question about customized ClassResolvers

2004-03-10 Thread John Rubier
Hey Geoff, It may have something to do with HiveMind passing the path (hard coded) "META-INF/hivemodule.xml". I think depending on how your project is set up and/or what classloaders are involved, it may want /META-INF or who knows. Just a guess. You might give that multimodule classloader I post

[Hivemind] Question about customized ClassResolvers

2004-03-09 Thread Geoff Longman
Hey, I have tweaked up my own version of HiveMindFilter's init() method because I want to run a junit test in Eclipse and have the Registry pick up my as yet notjarred hivemodule.xml Having looked at TestRegistryBuilder, it appears that this should work: // want to pick up META-INF/hivemodule.xml