Hi Steve, Thanks for your help, I am now able to build merlin.
Hi Cameron, I followed the steps that you asked me to do for starting JMX facility, I didn't get any error in the log message. But when I try http://127.0.0.1:8082 ,I am getting Page unavailable error, it seems JMX is not running properly. I have added log message to this email. Could you please let me know what could have gone wrong. Steps that I did so far are =========================== 1. fetched source code 2. built merlin 3. unzipped avalon-merlin-cli-SNAPSHOT.zip to a location 4. Set the system Path and MERLIN_HOME 5. changed my directory to D:\avalon\planet\facilities\jmx 6. Ran the following command D:\avalon\planet\facilities\jmx>merlin -repository "C:\Documents and Settings\SS ubramonian\.magic\main" LOG MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++++++ D:\avalon>cd planet\facilities\jmx D:\avalon\planet\facilities\jmx>merlin -repository "C:\Documents and Settings\SS ubramonian\.magic\main" [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\facilities\jmx ${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\facilities\jmx ${merlin.temp} == C:\Temp ${merlin.context} == D:\avalon\planet\facilities\jmx\home ${merlin.anchor} == D:\avalon\planet\facilities\jmx ${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:/D:/eclipse/workspace/MerlinTahiti/conf/block.xml ----------------------------------------------------------- [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:/D:/eclipse/workspace/MerlinTahiti/conf/blo ck.xml [DEBUG ] (): including composite block: file:/D:/eclipse/workspace/MerlinTahiti /conf/block.xml [DEBUG ] (): installing: tahiti [DEBUG ] (kernel.logger): adding category [tahiti] [DEBUG ] (kernel.logger): adding category [tahiti] [DEBUG ] (tahiti): creating child classloader for: [tahiti] [DEBUG ] (tahiti.classloader): base: ${merlin.dir} [DEBUG ] (tahiti.classloader): fileset.base=[D:\\eclipse\\workspace\\MerlinTahi ti\\lib] [DEBUG ] (tahiti.classloader): anchor=[D:\eclipse\workspace\MerlinTahiti\lib] [DEBUG ] (tahiti.classloader): ds.basedir=[D:\eclipse\workspace\MerlinTahiti\li b] [DEBUG ] (tahiti.classloader): includes[0]=[avalon-framework-api-4.2.0.jar] [DEBUG ] (tahiti.classloader): includes[1]=[avalon-framework-impl-4.2.0.jar] [DEBUG ] (tahiti.classloader): includes[2]=[log4j.jar] [DEBUG ] (tahiti.classloader): includes[3]=[*.jar] [DEBUG ] (tahiti.classloader): newpattern=[avalon-framework-api-4.2.0.jar]; inc ludes[0]=[avalon-framework-api-4.2.0.jar] [DEBUG ] (tahiti.classloader): newpattern=[avalon-framework-impl-4.2.0.jar]; in cludes[1]=[avalon-framework-impl-4.2.0.jar] [DEBUG ] (tahiti.classloader): newpattern=[log4j.jar]; includes[2]=[log4j.jar] [DEBUG ] (tahiti.classloader): newpattern=[]; includes[3]=[*.jar] [DEBUG ] (tahiti.classloader): Inside scandir [DEBUG ] (tahiti.classloader): file=[D:\eclipse\workspace\MerlinTahiti\lib\aval on-framework-api-4.2.0.jar] [DEBUG ] (tahiti.classloader): this is a file [DEBUG ] (tahiti.classloader): and it will be included [DEBUG ] (tahiti.classloader): file=[D:\eclipse\workspace\MerlinTahiti\lib\aval on-framework-impl-4.2.0.jar] [DEBUG ] (tahiti.classloader): this is a file [DEBUG ] (tahiti.classloader): and it will be included [DEBUG ] (tahiti.classloader): file=[D:\eclipse\workspace\MerlinTahiti\lib\comm ons-collections-2.0.jar] [DEBUG ] (tahiti.classloader): this is a file [DEBUG ] (tahiti.classloader): and it will be included [DEBUG ] (tahiti.classloader): file=[D:\eclipse\workspace\MerlinTahiti\lib\comm ons-dbcp-1.0.jar] [DEBUG ] (tahiti.classloader): this is a file [DEBUG ] (tahiti.classloader): and it will be included [DEBUG ] (tahiti.classloader): file=[D:\eclipse\workspace\MerlinTahiti\lib\comm ons-pool-1.0.jar] [DEBUG ] (tahiti.classloader): this is a file [DEBUG ] (tahiti.classloader): and it will be included [DEBUG ] (tahiti.classloader): file=[D:\eclipse\workspace\MerlinTahiti\lib\flex lm.jar] [DEBUG ] (tahiti.classloader): this is a file [DEBUG ] (tahiti.classloader): and it will be included [DEBUG ] (tahiti.classloader): file=[D:\eclipse\workspace\MerlinTahiti\lib\j2ee .jar] [DEBUG ] (tahiti.classloader): this is a file [DEBUG ] (tahiti.classloader): and it will be included [DEBUG ] (tahiti.classloader): file=[D:\eclipse\workspace\MerlinTahiti\lib\jaxb -rt.jar] [DEBUG ] (tahiti.classloader): this is a file [DEBUG ] (tahiti.classloader): and it will be included [DEBUG ] (tahiti.classloader): file=[D:\eclipse\workspace\MerlinTahiti\lib\jms. jar] [DEBUG ] (tahiti.classloader): this is a file [DEBUG ] (tahiti.classloader): and it will be included [DEBUG ] (tahiti.classloader): file=[D:\eclipse\workspace\MerlinTahiti\lib\juni t.jar] [DEBUG ] (tahiti.classloader): this is a file [DEBUG ] (tahiti.classloader): and it will be included [DEBUG ] (tahiti.classloader): file=[D:\eclipse\workspace\MerlinTahiti\lib\log4 j-1.jar] [DEBUG ] (tahiti.classloader): this is a file [DEBUG ] (tahiti.classloader): and it will be included [DEBUG ] (tahiti.classloader): file=[D:\eclipse\workspace\MerlinTahiti\lib\logk it-1.1.jar] [DEBUG ] (tahiti.classloader): this is a file [DEBUG ] (tahiti.classloader): and it will be included [DEBUG ] (tahiti.classloader): file=[D:\eclipse\workspace\MerlinTahiti\lib\mail .jar] [DEBUG ] (tahiti.classloader): this is a file [DEBUG ] (tahiti.classloader): and it will be included [DEBUG ] (tahiti.classloader): file=[D:\eclipse\workspace\MerlinTahiti\lib\ojdb c14.jar] [DEBUG ] (tahiti.classloader): this is a file [DEBUG ] (tahiti.classloader): and it will be included [DEBUG ] (tahiti.classloader): {basedir=[D:\eclipse\workspace\MerlinTahiti\lib] ;isCaseSensitive=[true];includes=(avalon-framework-api-4.2.0.jar,avalon-framewor k-impl-4.2.0.jar,log4j.jar,*.jar);excludes=()} [DEBUG ] (tahiti.classloader): candidates[0]=[D:\eclipse\workspace\MerlinTahiti \lib\avalon-framework-api-4.2.0.jar] [DEBUG ] (tahiti.classloader): candidates[1]=[D:\eclipse\workspace\MerlinTahiti \lib\avalon-framework-impl-4.2.0.jar] [DEBUG ] (tahiti.classloader): candidates[2]=[D:\eclipse\workspace\MerlinTahiti \lib\commons-collections-2.0.jar] [DEBUG ] (tahiti.classloader): candidates[3]=[D:\eclipse\workspace\MerlinTahiti \lib\commons-dbcp-1.0.jar] [DEBUG ] (tahiti.classloader): candidates[4]=[D:\eclipse\workspace\MerlinTahiti \lib\commons-pool-1.0.jar] [DEBUG ] (tahiti.classloader): candidates[5]=[D:\eclipse\workspace\MerlinTahiti \lib\flexlm.jar] [DEBUG ] (tahiti.classloader): candidates[6]=[D:\eclipse\workspace\MerlinTahiti \lib\j2ee.jar] [DEBUG ] (tahiti.classloader): candidates[7]=[D:\eclipse\workspace\MerlinTahiti \lib\jaxb-rt.jar] [DEBUG ] (tahiti.classloader): candidates[8]=[D:\eclipse\workspace\MerlinTahiti \lib\jms.jar] [DEBUG ] (tahiti.classloader): candidates[9]=[D:\eclipse\workspace\MerlinTahiti \lib\junit.jar] [DEBUG ] (tahiti.classloader): candidates[10]=[D:\eclipse\workspace\MerlinTahit i\lib\log4j-1.jar] [DEBUG ] (tahiti.classloader): candidates[11]=[D:\eclipse\workspace\MerlinTahit i\lib\logkit-1.1.jar] [DEBUG ] (tahiti.classloader): candidates[12]=[D:\eclipse\workspace\MerlinTahit i\lib\mail.jar] [DEBUG ] (tahiti.classloader): candidates[13]=[D:\eclipse\workspace\MerlinTahit i\lib\ojdbc14.jar] [DEBUG ] (tahiti.classloader): fileset.base=[D:\eclipse\workspace\MerlinTahiti\ target] [DEBUG ] (tahiti.classloader): anchor=[D:\eclipse\workspace\MerlinTahiti\target ] [DEBUG ] (tahiti.classloader): ds.basedir=[D:\eclipse\workspace\MerlinTahiti\ta rget] [DEBUG ] (tahiti.classloader): includes[0]=[simple-1.1.jar] [DEBUG ] (tahiti.classloader): newpattern=[simple-1.1.jar]; includes[0]=[simple -1.1.jar] [DEBUG ] (tahiti.classloader): canonBase=[D:\eclipse\workspace\MerlinTahiti\tar get] [DEBUG ] (tahiti.classloader): currentelement=[simple-1.1.jar] [DEBUG ] (tahiti.classloader): originalpattern=[simple-1.1.jar] [DEBUG ] (tahiti.classloader): myfile=[D:\eclipse\workspace\MerlinTahiti\target \simple-1.1.jar] [DEBUG ] (tahiti.classloader): {basedir=[D:\eclipse\workspace\MerlinTahiti\targ et];isCaseSensitive=[true];includes=(simple-1.1.jar);excludes=()} [DEBUG ] (tahiti.classloader): candidates[0]=[D:\eclipse\workspace\MerlinTahiti \target\simple-1.1.jar] [DEBUG ] (tahiti): included entries: 15 [DEBUG ] (tahiti.classloader): classpath: file:/D:/eclipse/workspace/MerlinTahi ti/lib/avalon-framework-api-4.2.0.jar;file:/D:/eclipse/workspace/MerlinTahiti/li b/avalon-framework-impl-4.2.0.jar;file:/D:/eclipse/workspace/MerlinTahiti/lib/co mmons-collections-2.0.jar;file:/D:/eclipse/workspace/MerlinTahiti/lib/commons-db cp-1.0.jar;file:/D:/eclipse/workspace/MerlinTahiti/lib/commons-pool-1.0.jar;file :/D:/eclipse/workspace/MerlinTahiti/lib/flexlm.jar;file:/D:/eclipse/workspace/Me rlinTahiti/lib/j2ee.jar;file:/D:/eclipse/workspace/MerlinTahiti/lib/jaxb-rt.jar; file:/D:/eclipse/workspace/MerlinTahiti/lib/jms.jar;file:/D:/eclipse/workspace/M erlinTahiti/lib/junit.jar;file:/D:/eclipse/workspace/MerlinTahiti/lib/log4j-1.ja r;file:/D:/eclipse/workspace/MerlinTahiti/lib/logkit-1.1.jar;file:/D:/eclipse/wo rkspace/MerlinTahiti/lib/mail.jar;file:/D:/eclipse/workspace/MerlinTahiti/lib/oj dbc14.jar;file:/D:/eclipse/workspace/MerlinTahiti/target/simple-1.1.jar [DEBUG ] (tahiti.classloader.scanner): scanning: file:/D:/eclipse/workspace/Mer linTahiti/lib/avalon-framework-api-4.2.0.jar [DEBUG ] (tahiti.classloader.scanner): scanning: file:/D:/eclipse/workspace/Mer linTahiti/lib/avalon-framework-impl-4.2.0.jar [DEBUG ] (tahiti.classloader.scanner): scanning: file:/D:/eclipse/workspace/Mer linTahiti/lib/commons-collections-2.0.jar [DEBUG ] (tahiti.classloader.scanner): scanning: file:/D:/eclipse/workspace/Mer linTahiti/lib/commons-dbcp-1.0.jar [DEBUG ] (tahiti.classloader.scanner): scanning: file:/D:/eclipse/workspace/Mer linTahiti/lib/commons-pool-1.0.jar [DEBUG ] (tahiti.classloader.scanner): scanning: file:/D:/eclipse/workspace/Mer linTahiti/lib/flexlm.jar [DEBUG ] (tahiti.classloader.scanner): scanning: file:/D:/eclipse/workspace/Mer linTahiti/lib/j2ee.jar [DEBUG ] (tahiti.classloader.scanner): scanning: file:/D:/eclipse/workspace/Mer linTahiti/lib/jaxb-rt.jar [DEBUG ] (tahiti.classloader.scanner): scanning: file:/D:/eclipse/workspace/Mer linTahiti/lib/jms.jar [DEBUG ] (tahiti.classloader.scanner): scanning: file:/D:/eclipse/workspace/Mer linTahiti/lib/junit.jar [DEBUG ] (tahiti.classloader.scanner): scanning: file:/D:/eclipse/workspace/Mer linTahiti/lib/log4j-1.jar [DEBUG ] (tahiti.classloader.scanner): scanning: file:/D:/eclipse/workspace/Mer linTahiti/lib/logkit-1.1.jar [DEBUG ] (tahiti.classloader.scanner): scanning: file:/D:/eclipse/workspace/Mer linTahiti/lib/mail.jar [DEBUG ] (tahiti.classloader.scanner): scanning: file:/D:/eclipse/workspace/Mer linTahiti/lib/ojdbc14.jar [DEBUG ] (tahiti.classloader.scanner): scanning: file:/D:/eclipse/workspace/Mer linTahiti/target/simple-1.1.jar [DEBUG ] (tahiti.classloader.scanner): type: merlin.component.HelloImpl [DEBUG ] (tahiti.classloader.scanner): type: merlin.component.Main [DEBUG ] (tahiti.classloader.types): type install count: 2 [DEBUG ] (tahiti.classloader.types): registered [type:merlin.component.HelloImp l/1]. [DEBUG ] (tahiti.classloader.types): registered [type:merlin.component.Main/1]. [DEBUG ] (tahiti.classloader.types): type registration complete [DEBUG ] (kernel.logger): adding category [tahiti] [DEBUG ] (kernel.logger): adding category [tahiti.simple] [DEBUG ] (kernel.logger): adding category [tahiti] [DEBUG ] (kernel.logger): adding category [tahiti.hello] [DEBUG ] (kernel): customize phase [DEBUG ] (kernel): startup phase [DEBUG ] (kernel): application assembly [DEBUG ] (kernel): state: assembly [DEBUG ] (): assembly phase [DEBUG ] (tahiti): assembly phase [DEBUG ] (kernel): application deployment [DEBUG ] (kernel): state: deployment [DEBUG ] (): commissioning container [tahiti] [DEBUG ] (tahiti): commissioning component [hello] [DEBUG ] (tahiti.hello.lifecycle): incarnation [DEBUG ] (tahiti.hello.lifecycle): instantiating component with a null construc tor [DEBUG ] (tahiti.hello.lifecycle): applying logger [DEBUG ] (tahiti.hello.lifecycle): applying context [DEBUG ] (tahiti.hello.lifecycle): applying configuration [DEBUG ] (tahiti.hello.lifecycle): applying initialization [DEBUG ] (tahiti.hello.lifecycle): applying startup [DEBUG ] (tahiti.hello.lifecycle): component startup completed [DEBUG ] (tahiti.hello.lifecycle): incarnation complete [DEBUG ] (tahiti): commissioning of [hello] completed in 40 milliseconds [DEBUG ] (tahiti): commissioning component [simple] [DEBUG ] (tahiti.simple.lifecycle): incarnation [DEBUG ] (tahiti.simple.lifecycle): instantiating component with a null constru ctor [DEBUG ] (tahiti.simple.lifecycle): applying logger [DEBUG ] (tahiti.simple.lifecycle): applying service manager This is the service method in Main This is hello world delete This is hello world create This is the service method in Second Main This is hello world delete This is hello world create [DEBUG ] (tahiti.simple.lifecycle): applying initialization [DEBUG ] (tahiti.simple.lifecycle): incarnation complete [DEBUG ] (tahiti): commissioning of [simple] completed in 20 milliseconds [DEBUG ] (): commissioning of [tahiti] completed in 80 milliseconds [DEBUG ] (kernel): state: started +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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 - 100MB free storage! http://promotions.yahoo.com/new_mail --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]