Hi,
I am getting the following exception when I try to run the Hello-world JMX sample.
${merlin.deployment} == file:/${user.dir}/Helloworld.jar
-----------------------------------------------------------
[INFO ] (kernel): building application model
[INFO ] (kernel): install phase
[INFO ] (kernel): installing: file:/${user.dir}/Helloworld.jar
Logger [EMAIL PROTECTED]
[INFO ] (tutorial.hello): logging
[INFO ] (tutorial.hello): configuration
[INFO ] (tutorial.hello): Hello, Apache!
[INFO ] (tutorial.hello): initialization
[INFO ] (tutorial.hello): execution
---- exception report ----------------------------------------------------------
Exception: org.apache.avalon.merlin.KernelException
Message: Kernel startup failure.
---- cause ---------------------------------------------------------------------
Exception: org.apache.avalon.merlin.KernelException
Message: Cannot deploy application.
---- cause ---------------------------------------------------------------------
Exception: org.apache.avalon.activation.LifecycleException
Message: Unable to create a new component instance in appliance [/tutorial/JmxMa
nagementHandler] due to a component deployment failure.
---- cause ---------------------------------------------------------------------
Exception: java.lang.NoSuchMethodError
Message: org.apache.avalon.composition.model.Resolver.resolve(Z)Ljava/lang/Objec
t;
---- stack trace ---------------------------------------------------------------
java.lang.NoSuchMethodError: org.apache.avalon.composition.model.Resolver.resolv
e(Z)Ljava/lang/Object;
org.apache.avalon.jmx.spi.AbstractComponentRegistrationManager.register(Abstract
ComponentRegistrationManager.java:64)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.avalon.activation.impl.ApplianceInvocationHandler.invoke(ApplianceInv
ocationHandler.java:126)
$Proxy0.register(Unknown Source)
org.apache.avalon.jmx.handler.JmxManagementHandler.processModel(JmxManagementHan
dler.java:146)
org.apache.avalon.jmx.handler.JmxManagementHandler.processModel(JmxManagementHan
dler.java:135)
org.apache.avalon.jmx.handler.JmxManagementHandler.start(JmxManagementHandler.ja
va:85)
org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java:260
)
org.apache.avalon.activation.impl.DefaultComponentFactory.incarnation(DefaultCom
ponentFactory.java:410)
org.apache.avalon.activation.impl.DefaultComponentFactory.incarnate(DefaultCompo
nentFactory.java:130)
org.apache.avalon.activation.impl.SingletonLifestyleManager.refreshReference(Sin
gletonLifestyleManager.java:144)
org.apache.avalon.activation.impl.SingletonLifestyleManager.commission(Singleton
LifestyleManager.java:60)
org.apache.avalon.activation.impl.DefaultAppliance.commission(DefaultAppliance.j
ava:94)
org.apache.avalon.activation.impl.DefaultRuntime.commission(DefaultRuntime.java:
86)
org.apache.avalon.composition.model.impl.DefaultSystemContext.commission(Default
SystemContext.java:346)
org.apache.avalon.composition.model.impl.DefaultDeploymentModel.commission(Defau
ltDeploymentModel.java:122)
org.apache.avalon.composition.model.impl.Commissioner.run(Commissioner.java:193)
java.lang.Thread.run(Thread.java:536)
--------------------------------------------------------------------------------
Here is my block.xml
================
<classloader>
<classpath>
<repository>
<resource id="mx4j:mx4j-jmx" version="1.1.1"/>
<resource id="mx4j:mx4j-tools" version="1.1.1"/>
<resource id="avalon-framework:avalon-framework-api" version="4.1.5"/>
<resource id="avalon-composition:avalon-composition-api" version="2.0"/>
<resource id="avalon-jmx:avalon-jmx" version="1.0"/>
</repository>
</classpath>
</classloader>
<component name="hello" class="tutorial.HelloComponent">
<configuration>
<hello>Hello, Apache!</hello>
</configuration>
</component>
<component name="JmxManagementHandler"
class="org.apache.avalon.jmx.handler.JmxManagementHandler"/>
However the same sample/block.xml works fine if i run from my JBuilder project.
-Aseem
Fiorano MailServer
All incoming and outgoing mails are scanned for Virus and Spam
http://www.fiorano.com