I've just attempted to build James based on the current Avalon CVS of
Cornerstone and I'm experiencing a ClassCastException. The James
implementation is referencing DefaultThreadManager as a Component,
however, the "implements Component" clause has been removed from the
defintion without modification of any versioning information breaking
backward compatibility with the James implementation.
The solution is to re-include the Component interface into the
implements statement which has no side-effects and will not impact any
other usage of this class. If someone has an objections to this, please
feel free to post a detailed explination to the Avalon Dev list.
In the meantime I have update the Cornerstone CVS to correct this problem.
A stack trace demonstrating the issue is included below:
[ERROR ] (root.james): Container disposal triggered by abnormal condition.
org.apache.excalibur.merlin.container.ContainerException: Unexpected
error during container execution.
at
org.apache.excalibur.merlin.container.DefaultContainer.run(Unknown Source)
at java.lang.Thread.run(Thread.java:536)
Caused by: org.apache.excalibur.merlin.resource.LifecycleException:
Component named "/root/james/spool" failed to pass through the Composing
stage. (Reason:
org.apache.avalon.framework.component.ComponentException: Service
provider returned a non-Component: class
org.apache.avalon.cornerstone.blocks.threads.DefaultThreadManager).
at
org.apache.excalibur.merlin.resource.LifecycleHelper.fail(Unknown Source)
at
org.apache.excalibur.merlin.resource.LifecycleHelper.startup(Unknown Source)
at
org.apache.excalibur.merlin.resource.AbstractLifestyleHandler.createInstance(Unknown
Source)
at
org.apache.excalibur.merlin.resource.SingletonLifestyleHandler.get(Unknown
Source)
Cheers, Steve.
--
Stephen J. McConnell
OSM SARL
digital products for a global economy
mailto:[EMAIL PROTECTED]
http://www.osm.net
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>