Hi Subbu,

I'm just trying to reproduce the problem, I'll let you know as soon as I have an idea.

-Cameron

S V Subramonian wrote:

Hi,

I am trying to run the JMX facility, as instructed by
Cameron, I am getting the following error. Can anyone
help me to identify what is going wrong.


LOG MSG
+++++++++++++++++++++++++++++++++++++++++++++++++++++++

D:\avalon\planet>merlin -repository "C:\Documents and
Settings\SSubramonian\.mag
ic\main"
test/target/deliverables/blocks/avalon-jmx-test.block
[DEBUG  ] (kernel.logger): logging system established
[DEBUG  ] (kernel.logger): adding category [kernel]
[DEBUG  ] (kernel): logging system established
[DEBUG  ] (kernel): repository established:
C:\Documents and Settings\SSubramoni
an\.magic\main, http://www.dpml.net/,
http://www.ibiblio.org/maven/
[DEBUG  ] (kernel.logger): adding category [kernel]
[INFO   ] (kernel): info report
-----------------------------------------------------------
Merlin Kernel Environment Listing
-----------------------------------------------------------

 ${user.dir} == D:\avalon\planet
 ${user.home} == C:\Documents and
Settings\SSubramonian

 ${avalon.repository.cache} ==
D:\merlin-jmx\merlin\system
 ${avalon.repository.online} == true
 ${avalon.repository.hosts} ==
http://www.dpml.net,http://www.ibiblio.org/maven


${merlin.lang} == null ${merlin.home} == D:\merlin-jmx\merlin ${merlin.system} == D:\merlin-jmx\merlin\system ${merlin.config} == D:\merlin-jmx\merlin\config ${merlin.kernel} == file:/D:/merlin-jmx/merlin/config/kernel.xml ${merlin.logging.implementation} == artifact:jar:avalon/logging/avalon-logging -logkit-impl#SNAPSHOT ${merlin.logging.config} == null ${merlin.runtime} == artifact:jar:avalon/activation/avalon-activation-impl#SNA PSHOT ${merlin.override} == null ${merlin.dir} == D:\avalon\planet ${merlin.temp} == C:\Temp ${merlin.context} == D:\avalon\planet\home ${merlin.anchor} == D:\avalon\planet ${merlin.info} == true ${merlin.debug} == true ${merlin.audit} == false ${merlin.server} == true ${merlin.autostart} == true ${merlin.code.security.enabled} == false ${merlin.deployment.timeout} == 0 ${merlin.repository} == C:\Documents and Settings\SSubramonian\.magic\main ${merlin.repository.hosts} == http://www.dpml.net/,http://www.ibiblio.org/mave n/ ${merlin.deployment} == file:/${merlin.dir}/test/target/deliverables/blocks/av alon-jmx-test.block

-----------------------------------------------------------
[DEBUG  ] (kernel): building application model
[DEBUG  ] (kernel.logger): adding root category
[DEBUG  ] (kernel.logger): adding root category
[DEBUG  ] (kernel.logger): adding root category
[DEBUG  ] (classloader): base: ${merlin.dir}
[DEBUG  ] (classloader): classpath:
[DEBUG  ] (classloader.types): type install count: 0
[DEBUG  ] (classloader.types): type registration
complete
[DEBUG  ] (kernel): state: initializing
[DEBUG  ] (kernel): kernel established
[DEBUG  ] (kernel): state: initialized
[DEBUG  ] (kernel): install phase
[DEBUG  ] (kernel): installing:
file:/${merlin.dir}/test/target/deliverables/blo
cks/avalon-jmx-test.block
[DEBUG  ] (): including composite block:
file:/D:/avalon/planet/test/target/deli
verables/blocks/avalon-jmx-test.block
[DEBUG  ] (): installing: jmx
[DEBUG  ] (kernel.logger): adding category [jmx]
[DEBUG  ] (kernel.logger): adding category [jmx]
[DEBUG  ] (jmx): creating child classloader for: [jmx]
[DEBUG  ] (jmx.classloader): base: ${merlin.dir}
Download from:
[http://www.dpml.net/avalon/jmx/jars/avalon-jmx-mx4j-SNAPSHOT.jar
]
..
Download from:
[http://www.dpml.net/avalon/jmx/jars/avalon-jmx-spi-SNAPSHOT.jar]

..
Download from:
[http://www.dpml.net/mx4j/jars/mx4j-impl-2.0.1.jar]
....................
Download from:
[http://www.dpml.net/mx4j/jars/mx4j-rjmx-2.0.1.jar]
.........
Download from:
[http://www.dpml.net/mx4j/jars/mx4j-rimpl-2.0.1.jar]
.......
Download from:
[http://www.dpml.net/mx4j/jars/mx4j-tools-2.0.1.jar]
..........................................
Download from:
[http://www.dpml.net/avalon/jmx/jars/avalon-jmx-test.jar]
..
[DEBUG  ] (jmx.classloader): classpath:
file:/C:/Documents and Settings/SSubramo
nian/.magic/main/avalon/framework/jars/avalon-framework-api-SNAPSHOT.jar;file:/C
:/Documents and
Settings/SSubramonian/.magic/main/avalon/jmx/jars/avalon-jmx-mx4
j-SNAPSHOT.jar;file:/C:/Documents and
Settings/SSubramonian/.magic/main/avalon/j
mx/jars/avalon-jmx-spi-SNAPSHOT.jar;file:/C:/Documents
and Settings/SSubramonian
/.magic/main/avalon/jmx/jars/avalon-jmx-api-SNAPSHOT.jar;file:/C:/Documents
and
Settings/SSubramonian/.magic/main/avalon/composition/jars/avalon-composition-api
-2.0.0.jar;file:/C:/Documents and
Settings/SSubramonian/.magic/main/avalon/util/
jars/avalon-util-extension-api-1.2.0.jar;file:/C:/Documents
and Settings/SSubram
onian/.magic/main/avalon/repository/jars/avalon-repository-api-SNAPSHOT.jar;file
:/C:/Documents and
Settings/SSubramonian/.magic/main/avalon/logging/jars/avalon-
logging-api-1.0.0.jar;file:/C:/Documents and
Settings/SSubramonian/.magic/main/a
valon/meta/jars/avalon-meta-api-SNAPSHOT.jar;file:/C:/Documents
and Settings/SSu
bramonian/.magic/main/avalon/jmx/jars/avalon-jmx-util-SNAPSHOT.jar;file:/C:/Docu
ments and
Settings/SSubramonian/.magic/main/avalon/framework/jars/avalon-framewo
rk-impl-SNAPSHOT.jar;file:/C:/Documents and
Settings/SSubramonian/.magic/main/av
alon/framework/jars/avalon-framework-legacy-SNAPSHOT.jar;file:/C:/Documents
and
Settings/SSubramonian/.magic/main/avalon/logkit/jars/avalon-logkit-SNAPSHOT.jar;
file:/C:/Documents and
Settings/SSubramonian/.magic/main/avalon/util/jars/avalon
-util-i18n-1.0.0.jar;file:/C:/Documents and
Settings/SSubramonian/.magic/main/mx
4j/jars/mx4j-jmx-2.0.1.jar;file:/C:/Documents and
Settings/SSubramonian/.magic/m
ain/mx4j/jars/mx4j-impl-2.0.1.jar;file:/C:/Documents
and Settings/SSubramonian/.
magic/main/mx4j/jars/mx4j-rjmx-2.0.1.jar;file:/C:/Documents
and Settings/SSubram
onian/.magic/main/mx4j/jars/mx4j-rimpl-2.0.1.jar;file:/C:/Documents
and Settings
/SSubramonian/.magic/main/mx4j/jars/mx4j-tools-2.0.1.jar;file:/C:/Documents
and
Settings/SSubramonian/.magic/main/avalon/jmx/jars/avalon-jmx-handler-SNAPSHOT.ja
r;file:/C:/Documents and
Settings/SSubramonian/.magic/main/avalon/jmx/jars/avalo
n-jmx-test.jar
[DEBUG  ] (jmx.classloader.scanner): scanning:
file:/C:/Documents and Settings/S
Subramonian/.magic/main/avalon/framework/jars/avalon-framework-api-SNAPSHOT.jar
[DEBUG  ] (jmx.classloader.scanner): scanning:
file:/C:/Documents and Settings/S
Subramonian/.magic/main/avalon/jmx/jars/avalon-jmx-mx4j-SNAPSHOT.jar
[DEBUG  ] (jmx.classloader.scanner): type:
org.apache.avalon.jmx.mx4j.MX4JCompon
entRegistrationManager
[DEBUG  ] (jmx.classloader.scanner): scanning:
file:/C:/Documents and Settings/S
Subramonian/.magic/main/avalon/jmx/jars/avalon-jmx-spi-SNAPSHOT.jar
[DEBUG  ] (jmx.classloader.scanner): scanning:
file:/C:/Documents and Settings/S
Subramonian/.magic/main/avalon/jmx/jars/avalon-jmx-api-SNAPSHOT.jar
[DEBUG  ] (jmx.classloader.scanner): scanning:
file:/C:/Documents and Settings/S
Subramonian/.magic/main/avalon/composition/jars/avalon-composition-api-2.0.0.jar

[DEBUG  ] (jmx.classloader.scanner): scanning:
file:/C:/Documents and Settings/S
Subramonian/.magic/main/avalon/util/jars/avalon-util-extension-api-1.2.0.jar
[DEBUG  ] (jmx.classloader.scanner): scanning:
file:/C:/Documents and Settings/S
Subramonian/.magic/main/avalon/repository/jars/avalon-repository-api-SNAPSHOT.ja
r
[DEBUG  ] (jmx.classloader.scanner): scanning:
file:/C:/Documents and Settings/S
Subramonian/.magic/main/avalon/logging/jars/avalon-logging-api-1.0.0.jar
[DEBUG  ] (jmx.classloader.scanner): scanning:
file:/C:/Documents and Settings/S
Subramonian/.magic/main/avalon/meta/jars/avalon-meta-api-SNAPSHOT.jar
[DEBUG  ] (jmx.classloader.scanner): scanning:
file:/C:/Documents and Settings/S
Subramonian/.magic/main/avalon/jmx/jars/avalon-jmx-util-SNAPSHOT.jar
[DEBUG  ] (jmx.classloader.scanner): scanning:
file:/C:/Documents and Settings/S
Subramonian/.magic/main/avalon/framework/jars/avalon-framework-impl-SNAPSHOT.jar

[DEBUG  ] (jmx.classloader.scanner): scanning:
file:/C:/Documents and Settings/S
Subramonian/.magic/main/avalon/framework/jars/avalon-framework-legacy-SNAPSHOT.j
ar
[DEBUG  ] (jmx.classloader.scanner): scanning:
file:/C:/Documents and Settings/S
Subramonian/.magic/main/avalon/logkit/jars/avalon-logkit-SNAPSHOT.jar
[DEBUG  ] (jmx.classloader.scanner): scanning:
file:/C:/Documents and Settings/S
Subramonian/.magic/main/avalon/util/jars/avalon-util-i18n-1.0.0.jar
[DEBUG  ] (jmx.classloader.scanner): scanning:
file:/C:/Documents and Settings/S
Subramonian/.magic/main/mx4j/jars/mx4j-jmx-2.0.1.jar
[DEBUG  ] (jmx.classloader.scanner): scanning:
file:/C:/Documents and Settings/S
Subramonian/.magic/main/mx4j/jars/mx4j-impl-2.0.1.jar
[DEBUG  ] (jmx.classloader.scanner): scanning:
file:/C:/Documents and Settings/S
Subramonian/.magic/main/mx4j/jars/mx4j-rjmx-2.0.1.jar
[DEBUG  ] (jmx.classloader.scanner): scanning:
file:/C:/Documents and Settings/S
Subramonian/.magic/main/mx4j/jars/mx4j-rimpl-2.0.1.jar
[DEBUG  ] (jmx.classloader.scanner): scanning:
file:/C:/Documents and Settings/S
Subramonian/.magic/main/mx4j/jars/mx4j-tools-2.0.1.jar
[DEBUG  ] (jmx.classloader.scanner): scanning:
file:/C:/Documents and Settings/S
Subramonian/.magic/main/avalon/jmx/jars/avalon-jmx-handler-SNAPSHOT.jar
[DEBUG  ] (jmx.classloader.scanner): type:
org.apache.avalon.jmx.handler.JmxMana
gementHandler
[DEBUG  ] (jmx.classloader.scanner): scanning:
file:/C:/Documents and Settings/S
Subramonian/.magic/main/avalon/jmx/jars/avalon-jmx-test.jar
[DEBUG  ] (jmx.classloader.scanner): type:
org.apache.avalon.playground.jmxtest.
JMXTestComponent
[DEBUG  ] (jmx.classloader.types): type install count:
3
[DEBUG  ] (jmx.classloader.types): registered
[type:org.apache.avalon.jmx.mx4j.M
X4JComponentRegistrationManager/1].
[DEBUG  ] (jmx.classloader.types): registered
[type:org.apache.avalon.jmx.handle
r.JmxManagementHandler/1].
[DEBUG  ] (jmx.classloader.types): registered
[type:org.apache.avalon.playground
.jmxtest.JMXTestComponent/1].
[DEBUG  ] (jmx.classloader.types): type registration
complete
[DEBUG  ] (kernel.logger): adding category [jmx]
[DEBUG  ] (kernel.logger): adding category [jmx.mx4j]
[DEBUG  ] (kernel.logger): adding category [jmx]
[DEBUG  ] (kernel.logger): adding category [jmx.test]
[DEBUG  ] (kernel.logger): adding category [jmx]
[DEBUG  ] (kernel.logger): adding category
[jmx.handler]
[DEBUG  ] (kernel): customize phase
[DEBUG  ] (kernel): startup phase
[DEBUG  ] (kernel): application assembly
[DEBUG  ] (kernel): state: assembly
[DEBUG  ] (): assembly phase
[DEBUG  ] (jmx): assembly phase
[DEBUG  ] (kernel): application deployment
[DEBUG  ] (kernel): state: deployment
[DEBUG  ] (): commissioning container [jmx]
[DEBUG  ] (jmx): commissioning component [mx4j]
[DEBUG  ] (jmx.mx4j.lifecycle): incarnation
[DEBUG  ] (jmx.mx4j.lifecycle): instantiating
component with 3 arguments.
[INFO   ] (jmx.mx4j): Created MBeanServer with ID:
1060478:ff41c63868:-8000:ffor
ster-gqh:1
[DEBUG  ] (jmx.mx4j): MX4J HTTP listener port: 8082
[INFO   ] (jmx.mx4j): HttpAdaptor version 2.0.1
started on port 8082
[DEBUG  ] (kernel): state: initialized
---- 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: Component related exception during
instantiation of the class [org.apac
he.avalon.jmx.mx4j.MX4JComponentRegistrationManager].
---- cause
---------------------------------------------------------------------

Exception: java.lang.reflect.InvocationTargetException
Message: null
---- cause
---------------------------------------------------------------------

Exception: java.io.IOException
Message: javax.naming.CommunicationException [Root
exception is java.rmi.ServerE
xception: RemoteException occurred in server thread;
nested exception is:
       java.rmi.UnmarshalException: error
unmarshalling arguments; nested excep
tion is:
       java.net.MalformedURLException: no protocol:
and]
--------------------------------------------------------------------------------


[DEBUG ] (kernel): shutdown event [DEBUG ] (kernel): disposal

+++++++++++++++++++++++++++++++++++++++++++++++++++++++

regards,
Subbu















--- Cameron Fieber <[EMAIL PROTECTED]> wrote:



Hi Subbu,

I have recently commited some changes to the JMX
facility that upgrades
it to use the latest MX4J release.  Unfortunately, I
still haven't got
around to writing any end user documentation on it.

Here are some steps that should get you up and
running, and likely the
beginnings of the JMX facility user documentation
;-).   I'll start
right from scratch as I'm not sure if you are
looking at the subversion
version or not:

-= Checkin out the source, building, and setting up
Merlin =-

First, check out the latest source:
$ svn co
http://svn.apache.org/repos/asf/avalon/trunk avalon
$ cd avalon

Now, initialize the magic buildsystem (this only has
to be done once):
$ ant setup

Now, build the various components of merlin and it's
facilities:
$ ant

This build will have created a Merlin distribution,
you can unzip it to
install it.  This is also a one time step. Note that
the zip resides in
your local magic repository, a .magic directory in
your user home
directory.  On unix, check your $HOME directory, in
Windows, check
C:\Documents and Settings\<your user name> for that
directory. unzip the
zip file to the location you want to install merlin,
and set the
environment variables MERLIN_HOME (pointing to the
merlin directory you
just unzipped) and add $MERLIN_HOME/bin to your
path.  The full path to
the zip file is



$HOME/.magic/main/avalon/merlin/dist/avalon-merlin-cli-SNAPSHOT.zip.


-= Launching the JMX Facility example =-
Now that it's all built and you have merlin
installed, you can play with
the JMX facility:
$ cd planet/facilities/jmx

The following command will run the test block, which
establishes the JMX
facility, and a single test component that exposes a
management API:
$ merlin -repository $HOME/.magic/main



test/target/deliverables/blocks/avalon-jmx-test.block


You should see a couple info messages printed on the
console indicating
the facility has started, and started HTTP and RMI
adaptors to the MBean
server. You can now access the JMX console at
http://127.0.0.1:8082. If
you click on the MBean:



Merlin:container=jmx,name=test,topic=JMXTestComponentMBean


it will bring
up the management interface of the test component.
Management interfaces
for a component are currently only determined by
inspecting the
component's implemented interfaces for interfaces
with names ending with
"MBean".  For each "MBean" interface found, an MBean
is created and
registered with the MBeanServer by the JMX facility.
An example of this
is the JMXTestComponent located in the test
directory.

I hope this helps, and I hope to have some more
formalized documentation
as well as some facility enhancements available in
the near future.  Let
me know if you run into any problems.

Regards,

-Cameron


On Wed, 2004-09-08 at 14:32, S V Subramonian wrote:


Hi Peter,

I would appreciate if you can let me know the JMX
facility that you got. Also please send me if


there is


any to do list document or guide for incorporating


JMX


in Merlin.

regards,
Subbu
--- [EMAIL PROTECTED] wrote:



Hi Subbu,
we have the JMX facility running here, so I


could


take a look at the demo
next week if no one else has time.

/peter


---------------------------------------------------------------------


To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:


[EMAIL PROTECTED]




__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail


SpamGuard.


http://promotions.yahoo.com/new_mail




---------------------------------------------------------------------


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]








__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail


---------------------------------------------------------------------
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]



Reply via email to