Well it should all work fine. Can you give it another go from HEAD or from the RELEASE_402-branch of CVS. There was a change to Threadcontext that made a problem for a while with Phoenix and apps. Phoenix distributes the threadcontext jar. We should press forward with a release of the 4.0.x series ... it is not really fair to expect all to build from CVs for their needs.
- Paul
I'm exploring Avalon/Phoenix and am trying to get the demo app working. Actually, I've gotten it to work by checking out and building all the latest source for all the Avalon components. What I'd like to do now is get the avalon-demo working against the binary release of Phoenix (4.0.3) - to effectively evangelize this technology to my colleagues I need to be able to send them a ZIP file that they can play with immediately.
I adjusted the avalon-apps/demo/build.xml so that it builds against all the JARs in phoenix-4.0.3/lib - I added the JARs from avalon-apps/common/lib that were required to make it build cleanly. When I copy the resulting SAR file to phoenix-4.0.3/apps and fire up phoenix via phoenix-4.0.3/bin/run.bat I get the attached log. It seems that the startup phase fails because thread-manger doesn't make it through the Configuration stage due to a NoSuchMethodException.
Any help would be greatly appreciated. This is very cool stuff but it's got to be easy to get running to sway conservative IBM types.
... WkH
------------------------------------------------------------------------
INFO 2003-02-28 11:08:26.187 [Phoenix ] (): Logger started WARN 2003-02-28 11:08:26.250 [Phoenix ] (): Phoenix was not started by the daemon thus it will not be possible to restart the JVM via the Management interface. INFO 2003-02-28 11:08:26.984 [Phoenix.] (): Installing Sar located at file:/C:/software/phoenix/phoenix-4.0.3/apps/avalon-demo.sar. INFO 2003-02-28 11:08:27.250 [Phoenix.] (): Verifying that the name specified for Blocks and BlockListeners are valid. INFO 2003-02-28 11:08:27.250 [Phoenix.] (): Verifying that the name specified for Blocks and BlockListeners are unique. INFO 2003-02-28 11:08:27.250 [Phoenix.] (): Verifying that the specified Dependencies are valid according to BlockInfo. INFO 2003-02-28 11:08:27.250 [Phoenix.] (): Verifying that the dependencies of Blocks are valid with respect to other Blocks. INFO 2003-02-28 11:08:27.265 [Phoenix.] (): Verifying that there are no circular dependencies between Blocks. INFO 2003-02-28 11:08:27.265 [Phoenix.] (): Verifying that the specified Blocks have valid types. INFO 2003-02-28 11:08:27.281 [Phoenix.] (): Verifying that the specified BlockListeners have valid types. INFO 2003-02-28 11:08:27.328 [Phoenix.] (): 5 Blocks to process for phase "startup". Order of processing = [thread-manager, connections, sockets, scheduler, helloworldserver]. ERROR 2003-02-28 11:08:27.343 [Phoenix.] (): Component named "thread-manager" failed to pass through the Configuration stage. (Reason: java.lang.NoSuchMethodError: org.apache.avalon.excalibur.thread.impl.DefaultThreadPool.<init>(Ljava/lang/String;IILorg/apache/excalibur/threadcontext/ThreadContext;)V). ERROR 2003-02-28 11:08:27.343 [Phoenix.] (): There was an error running phase "startup" for Block named "thread-manager". (Reason: Component named "thread-manager" failed to pass through the Configuration stage. (Reason: java.lang.NoSuchMethodError: org.apache.avalon.excalibur.thread.impl.DefaultThreadPool.<init>(Ljava/lang/String;IILorg/apache/excalibur/threadcontext/ThreadContext;)V).). org.apache.excalibur.containerkit.lifecycle.LifecycleException: Component named "thread-manager" failed to pass through the Configuration stage. (Reason: java.lang.NoSuchMethodError: org.apache.avalon.excalibur.thread.impl.DefaultThreadPool.<init>(Ljava/lang/String;IILorg/apache/excalibur/threadcontext/ThreadContext;)V). at org.apache.excalibur.containerkit.lifecycle.LifecycleHelper.fail(LifecycleHelper.java:289) at org.apache.excalibur.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:159) at org.apache.avalon.phoenix.components.application.DefaultApplication.startup(DefaultApplication.java:480) at org.apache.avalon.phoenix.components.application.DefaultApplication.doRunPhase(DefaultApplication.java:428) at org.apache.avalon.phoenix.components.application.DefaultApplication.runPhase(DefaultApplication.java:364) at org.apache.avalon.phoenix.components.application.DefaultApplication.start(DefaultApplication.java:138) at org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java:251) rethrown from java.lang.NoSuchMethodError: org.apache.avalon.excalibur.thread.impl.DefaultThreadPool.<init>(Ljava/lang/String;IILorg/apache/excalibur/threadcontext/ThreadContext;)V at org.apache.avalon.cornerstone.blocks.threads.DefaultThreadManager.configureThreadPool(DefaultThreadManager.java:73) at org.apache.avalon.cornerstone.blocks.threads.DefaultThreadManager.configure(DefaultThreadManager.java:54) at org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:192) at org.apache.excalibur.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:126) at org.apache.avalon.phoenix.components.application.DefaultApplication.startup(DefaultApplication.java:480) at org.apache.avalon.phoenix.components.application.DefaultApplication.doRunPhase(DefaultApplication.java:428) at org.apache.avalon.phoenix.components.application.DefaultApplication.runPhase(DefaultApplication.java:364) INFO 2003-02-28 11:08:27.359 [Phoenix.] (): exception while starting:Component named "thread-manager" failed to pass through the Configuration stage. (Reason: java.lang.NoSuchMethodError: org.apache.avalon.excalibur.thread.impl.DefaultThreadPool.<init>(Ljava/lang/String;IILorg/apache/excalibur/threadcontext/ThreadContext;)V).
WARN 2003-02-28 11:08:27.375 [Phoenix.] (): Failed to start application avalon-demo. org.apache.avalon.framework.CascadingException: Failed to start application avalon-demo. at org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(DefaultKernel.java:195) at org.apache.avalon.phoenix.components.kernel.DefaultKernel.addApplication(DefaultKernel.java:254) at org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:353) at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:498) at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:491) at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(DefaultEmbeddor.java:476) at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultApplications(DefaultEmbeddor.java:466) rethrown from org.apache.avalon.phoenix.interfaces.ApplicationException: Component named "thread-manager" failed to pass through the Configuration stage. (Reason: java.lang.NoSuchMethodError: org.apache.avalon.excalibur.thread.impl.DefaultThreadPool.<init>(Ljava/lang/String;IILorg/apache/excalibur/threadcontext/ThreadContext;)V). at org.apache.avalon.phoenix.components.application.DefaultApplication.start(DefaultApplication.java:144) at org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java:251) at org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(DefaultKernel.java:178) at org.apache.avalon.phoenix.components.kernel.DefaultKernel.addApplication(DefaultKernel.java:254) at org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:353) at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:498) at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:491) rethrown from org.apache.excalibur.containerkit.lifecycle.LifecycleException: Component named "thread-manager" failed to pass through the Configuration stage. (Reason: java.lang.NoSuchMethodError: org.apache.avalon.excalibur.thread.impl.DefaultThreadPool.<init>(Ljava/lang/String;IILorg/apache/excalibur/threadcontext/ThreadContext;)V). at org.apache.excalibur.containerkit.lifecycle.LifecycleHelper.fail(LifecycleHelper.java:289) at org.apache.excalibur.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:159) at org.apache.avalon.phoenix.components.application.DefaultApplication.startup(DefaultApplication.java:480) at org.apache.avalon.phoenix.components.application.DefaultApplication.doRunPhase(DefaultApplication.java:428) at org.apache.avalon.phoenix.components.application.DefaultApplication.runPhase(DefaultApplication.java:364) at org.apache.avalon.phoenix.components.application.DefaultApplication.start(DefaultApplication.java:138) at org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java:251) rethrown from java.lang.NoSuchMethodError: org.apache.avalon.excalibur.thread.impl.DefaultThreadPool.<init>(Ljava/lang/String;IILorg/apache/excalibur/threadcontext/ThreadContext;)V at org.apache.avalon.cornerstone.blocks.threads.DefaultThreadManager.configureThreadPool(DefaultThreadManager.java:73) at org.apache.avalon.cornerstone.blocks.threads.DefaultThreadManager.configure(DefaultThreadManager.java:54) at org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:192) at org.apache.excalibur.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:126) at org.apache.avalon.phoenix.components.application.DefaultApplication.startup(DefaultApplication.java:480) at org.apache.avalon.phoenix.components.application.DefaultApplication.doRunPhase(DefaultApplication.java:428) at org.apache.avalon.phoenix.components.application.DefaultApplication.runPhase(DefaultApplication.java:364) WARN 2003-02-28 11:08:27.390 [Phoenix.] (): Error deleting Work Directory "C:\software\phoenix\phoenix-4.0.3\work\avalon-demo-1046452107000". (Reason: File C:\software\phoenix\phoenix-4.0.3\work\avalon-demo-1046452107000\SAR-INF\lib\cornerstone.jar unable to be deleted.) java.io.IOException: File C:\software\phoenix\phoenix-4.0.3\work\avalon-demo-1046452107000\SAR-INF\lib\cornerstone.jar unable to be deleted. at org.apache.avalon.excalibur.io.FileUtil.forceDelete(FileUtil.java:638) at org.apache.avalon.excalibur.io.FileUtil.cleanDirectory(FileUtil.java:806) at org.apache.avalon.excalibur.io.FileUtil.deleteDirectory(FileUtil.java:762) at org.apache.avalon.excalibur.io.FileUtil.forceDelete(FileUtil.java:630) at org.apache.avalon.excalibur.io.FileUtil.cleanDirectory(FileUtil.java:806) at org.apache.avalon.excalibur.io.FileUtil.deleteDirectory(FileUtil.java:762) at org.apache.avalon.excalibur.io.FileUtil.forceDelete(FileUtil.java:630) WARN 2003-02-28 11:08:27.453 [Phoenix.] (): Failed to stop application avalon-demo as it is not initialized/started.
------------------------------------------------------------------------
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
