Thank you for your help.
Fernando
---
First; I've made available the code that I'm working with. If you look at http://people.interdimensions.com/fern/pingu2test.tar.gz
you'll see what I'm currently testing.
mkdir ferntest cd ferntest wget http://people.interdimensions.com/fern/pingu2test.tar.gz tar xvzf pingu2test.tar.gz cd pingu2/kernel maven
---
Second; Before I said that i couldn't startup after a shutdown. That was due to me nulling the kernel at shutdown ( taken from servlet code ), I removed that and I can properly startup/shutdown all I want. :) Thank you. I can do things like the following, without errors:
startup shutdown addModel startup runModel shutdown
---
Third; You had a quick response on the removeModel idea. Thank you. I just tried to test it, with mixed results. It seems that removeModel removes it just fine. But it fails if I try to addModel after it has been removed - fails on startup after addModel is called after a removeModel.
== works addModel removeModel startup shutdown
== fails addModel removeModel addModel startup * exception: org.apache.avalon.merlin.KernelException:Application deployment failure org.apache.avalon.merlin.impl.DefaultKernel.startup(DefaultKernel.java:420) ...
---
Fourth; I seem to enjoy listing things :)
---
Fifth; If you do take a look at my code I'm having a weird issue with the test class, PinguTestCase. It seems to only run the first testMethod properly, then it fails an all subsequent ones ( I have to rename test* to atest* to comment out the test methods that I don't care about at the moment ). For example, if I have the following methods, I get the exception below, after it successfully runs one of the test methods.
public void testNop() throws Exception {
Pingu p = new Pingu(); p.startup();
p.shutdown();
} public void testHello() throws Exception {
Pingu p = new Pingu(); p.addHello();
p.startup();
p.runHello();
p.shutdown();
}---- error report --------------------------------------------------------------
Exception: java.lang.LinkageError
Message: loader constraints violated when linking org/apache/avalon/extension/manager/ExtensionManager class
---- stack trace ---------------------------------------------------------------
java.lang.LinkageError: loader constraints violated when linking org/apache/avalon/extension/manager/ExtensionManager class
org.apache.avalon.composition.model.impl.DefaultClassLoaderModel.<init>(DefaultClassLoaderModel.java:191)
org.apache.avalon.merlin.impl.DefaultFactory.createContainmentContext(DefaultFactory.java:620)
org.apache.avalon.merlin.impl.DefaultFactory.create(DefaultFactory.java:399)
com.intellisign.pingu.kernel.Pingu.<init>(Pingu.java:88)
com.intellisign.pingu.kernel.PinguTestCase.testHello(PinguTestCase.java:23)
...
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
