avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fieber, Cameron C FOR:EX" <Cameron.Fie...@gems6.gov.bc.ca>
Subject RE: JMX tests
Date Wed, 05 May 2004 15:45:59 GMT
Hi Peter,

I was just looking at the jmx stuff in avalon-components/facilities, which I
believe is now the current version of the facility.

The included block.xml files are out of sync with the current versions
of the components in the project, but once that was fixed.  I was able
to run the test jar without it freezing.  There seems to be a problem
somewhere however, because it is not noticing or registering
the JMXTestComponent's MBean.  The JMX console does come up on port
8082 but only with the default MX4J MBeans listed.

I don't have time to look at it further right now, but I will be able to
look again tonight after work.

-Cameron

Here are patches to get it running:

***avalon-components/facilities/maven.xml (added meta generation):

Index: maven.xml
===================================================================
RCS file: /home/cvspublic/avalon-components/facilities/maven.xml,v
retrieving revision 1.4
diff -u -r1.4 maven.xml
--- maven.xml	8 Apr 2004 08:35:15 -0000	1.4
+++ maven.xml	5 May 2004 15:37:51 -0000
@@ -7,6 +7,10 @@
 
   <j:set var="maven.multiproject.includes" 
       value="**/project.xml"/>
+	  
+  <preGoal name="java:compile">
+    <attainGoal name="avalon:meta"/>
+  </preGoal>
 
   <preGoal name="java:jar-resources">
     <ant:filter token="AVALON-FINDER-API-VERSION"
value="&avalon-finder-api-version;"/>


*** avalon-components/facilities/jmx/handler/conf/block.xml (fixed
versions):

Index: block.xml
===================================================================
RCS file:
/home/cvspublic/avalon-components/facilities/jmx/handler/conf/block.xml,v
retrieving revision 1.3
diff -u -r1.3 block.xml
--- block.xml   8 Apr 2004 08:35:16 -0000       1.3
+++ block.xml   5 May 2004 15:39:28 -0000
@@ -5,14 +5,13 @@
       <repository>
         <resource id="avalon-framework:avalon-framework-api"
version="4.1.5"/>
         <resource id="avalon-composition:avalon-composition-api"
version="2.0.0"/>
-        <resource id="avalon-jmx:avalon-jmx-api" version="0.9.0"/>
-        <resource id="avalon-jmx:avalon-jmx-handler" version="0.9.0"/>
-        <resource id="avalon-jmx:avalon-jmx-test" version="0.9.0"/>
+        <resource id="avalon-jmx:avalon-jmx-api" version="1.0.dev-0"/>
+        <resource id="avalon-jmx:avalon-jmx-handler" version="1.0.dev-0"/>
       </repository>
     </classpath>
   </classloader>
  
-  <include name="mx4j" id="avalon-jmx:avalon-jmx-mx4j" version="0.9.0"/>
+  <include name="mx4j" id="avalon-jmx:avalon-jmx-mx4j"
version="1.0.dev-0"/>
  
   <component name="handler"
class="org.apache.avalon.jmx.handler.JmxManagementHandler"/>

*** avalon-components/facilities/jmx/mx4j/conf/block.xml (fixed versions):

Index: block.xml
===================================================================
RCS file:
/home/cvspublic/avalon-components/facilities/jmx/mx4j/conf/block.xml,v
retrieving revision 1.3
diff -u -r1.3 block.xml
--- block.xml   8 Apr 2004 08:35:16 -0000       1.3
+++ block.xml   5 May 2004 15:40:56 -0000
@@ -14,9 +14,9 @@
          <resource id="avalon-framework:avalon-framework-impl"
version="4.1.5"/>
          <resource id="avalon-composition:avalon-composition-api"
version="2.0.0"/>
          <resource id="avalon-util:avalon-util-i18n" version="1.0"/>
-         <resource id="avalon-jmx:avalon-jmx-api" version="0.9.0"/>
-         <resource id="avalon-jmx:avalon-jmx-spi" version="0.9.0"/>
-         <resource id="avalon-jmx:avalon-jmx-util" version="0.9.0"/>
+         <resource id="avalon-jmx:avalon-jmx-api" version="1.0.dev-0"/>
+         <resource id="avalon-jmx:avalon-jmx-spi" version="1.0.dev-0"/>
+         <resource id="avalon-jmx:avalon-jmx-util" version="1.0.dev-0"/>
          <resource id="mx4j:mx4j-jmx" version="1.1.1"/>
          <resource id="mx4j:mx4j-tools" version="1.1.1"/>
        </repository>

*** avalon-components/facilities/jmx/test/conf/block.xml (new file):

<container name="jmx-test">
  <classloader>
    <classpath>
      <repository>
        <resource id="avalon-framework:avalon-framework-api"
version="4.1.5"/>
        <resource id="avalon-composition:avalon-composition-api"
version="2.0.0"/>
        <resource id="avalon-jmx:avalon-jmx-test" version="1.0.dev-0"/>
      </repository>
    </classpath>
  </classloader>
 
  <include name="handler" id="avalon-jmx:avalon-jmx-handler"
version="1.0.dev-0"/>
 
  <component name="test"
class="org.apache.avalon.playground.jmxtest.JMXTestComponent"/>
 
</container>

-----Original Message-----
From: pnb@scancoin.se
To: dev@avalon.apache.org
Sent: 5/5/04 2:44 AM
Subject: JMX tests

Hi,
I'm trying to test out the new JMX facility. We built the merlin-jmx
into a
merlin-jmx-0.1.jar.
I'm now stuck with merlin (20030423 build) that does not respond and
doesn't
go into the contructor of the MX4JComponentManager.
My block.xml cointains
  <!-- JMX system -->
		  
        <resource id="avalon-activation:avalon-activation-api"
version="1.2.2"/>
        <resource id="avalon-composition:avalon-composition-api"
version="1.2.2"/>
         <!--resource id="merlin:merlin-jmx" version="0.1"/-->
  
	  </repository>
     </classpath>
   </classloader>
    <include name="location" id="merlin:merlin-jmx" version="0.1"/>
    
and I get:
[DEBUG  ] (Orchard.location): assembly phase
[DEBUG  ] (kernel): application deployment
[DEBUG  ] (kernel): state: deployment
[DEBUG  ] (): commissioning container [Orchard]
[DEBUG  ] (Orchard): commissioning container [location]
[DEBUG  ] (Orchard.location): commissioning component
[MX4JComponentManager]
[DEBUG  ] (Orchard.location.MX4JComponentManager.lifecycle): incarnation
[DEBUG  ] (Orchard.location.MX4JComponentManager.lifecycle):
instantiating
compo
nent with a null constructor
There it stops.
Has anyone seen this before?
/peter
 <<ATT411749.txt>> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Mime
View raw message