J�rg Schaible wrote:
Stephen McConnell wrote on Friday, December 12, 2003 4:29 PM:
This is really strange.
The class o.a.a.default.Default was referenced in 1.0 of defaults. The 1.1 version bumped this to 1.1. I don't understand how your picking
this up. Can you post the stack trace?
---- stack trace --------------------------------------------------------------- java.lang.NoClassDefFoundError: org/apache/avalon/defaults/Defaults java.lang.Class.getDeclaredConstructors0(Native Method) java.lang.Class.privateGetDeclaredConstructors(Class.java:1610) java.lang.Class.getConstructor0(Class.java:1922) java.lang.Class.getConstructor(Class.java:1019) org.apache.avalon.repository.main.AbstractBuilder.createDelegate(AbstractBuilder.java:140) org.apache.avalon.repository.main.DefaultInitialContext.<init>(DefaultInitialContext.java:298) org.apache.avalon.repository.main.DefaultInitialContext.<init>(DefaultInitialContext.java:219) org.apache.avalon.repository.main.DefaultInitialContext.<init>(DefaultInitialContext.java:204) org.apache.avalon.repository.main.DefaultInitialContext.<init>(DefaultInitialContext.java:179) org.apache.avalon.merlin.unit.AbstractMerlinTestCase.setUp(AbstractMerlinTestCase.java:127)
OK .. so what we have is AbstractMerlinTestCase creating a DefaultInitialContext. The DefaultInitialContext calls createDelegate, which according to the error report is using a completely up-to-date classloader descriptor. The construction of the classloader occurs, then the factory instantiation occurs - but this is where we have an error. The factory is referencing an old class name - and this is the bit I don't understand. The repository facility will not refresh if an existing resource of the same version is present. This suggests to me that here is a version of util/defaults at 1.1 that has the old package names.
This can only mean one thing - I have made a mistake concerning the 1.1 content/versioning. Conclusion ... I will bump defaults 1.1 to 1.2, amd bump the repository main and merlin/kernel/cli and melin/kernel/plugin respectively. In pricipal this will generate a clean deploy irrespective of current repository content.
Stephen.
--
Stephen J. McConnell mailto:[EMAIL PROTECTED]
|------------------------------------------------| | Magic by Merlin | | Production by Avalon | | | | http://avalon.apache.org/merlin | | http://dpml.net/ | |------------------------------------------------|
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
