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
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
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
> 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
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
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
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
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
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
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
10 matches
Mail list logo