geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From v...@apache.org
Subject svn commit: r656417 - in /geronimo/server/trunk/plugins/monitoring: agent-jar/src/main/java/org/apache/geronimo/monitoring/snapshot/SnapshotConfigXMLBuilder.java agent-jmx/src/main/java/org/apache/geronimo/monitoring/MasterRemoteControlJMX.java
Date Wed, 14 May 2008 20:34:02 GMT
Author: viet
Date: Wed May 14 13:34:02 2008
New Revision: 656417

URL: http://svn.apache.org/viewvc?rev=656417&view=rev
Log:
Fix for Geronimo-4018. Manually determine the classloader that ObjectFactory is in.

Modified:
    geronimo/server/trunk/plugins/monitoring/agent-jar/src/main/java/org/apache/geronimo/monitoring/snapshot/SnapshotConfigXMLBuilder.java
    geronimo/server/trunk/plugins/monitoring/agent-jmx/src/main/java/org/apache/geronimo/monitoring/MasterRemoteControlJMX.java

Modified: geronimo/server/trunk/plugins/monitoring/agent-jar/src/main/java/org/apache/geronimo/monitoring/snapshot/SnapshotConfigXMLBuilder.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/monitoring/agent-jar/src/main/java/org/apache/geronimo/monitoring/snapshot/SnapshotConfigXMLBuilder.java?rev=656417&r1=656416&r2=656417&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/monitoring/agent-jar/src/main/java/org/apache/geronimo/monitoring/snapshot/SnapshotConfigXMLBuilder.java
(original)
+++ geronimo/server/trunk/plugins/monitoring/agent-jar/src/main/java/org/apache/geronimo/monitoring/snapshot/SnapshotConfigXMLBuilder.java
Wed May 14 13:34:02 2008
@@ -41,9 +41,12 @@
 
     static {
         try {
-            jc = JAXBContext.newInstance("org.apache.geronimo.monitoring.snapshot");
+            ObjectFactory objFactory = new ObjectFactory();
+            ClassLoader cl = objFactory.getClass().getClassLoader();
+            jc = JAXBContext.newInstance("org.apache.geronimo.monitoring.snapshot", cl);
         } catch(Exception e) {
             log.error(e.getMessage());
+            e.printStackTrace();
         }
     }
 

Modified: geronimo/server/trunk/plugins/monitoring/agent-jmx/src/main/java/org/apache/geronimo/monitoring/MasterRemoteControlJMX.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/monitoring/agent-jmx/src/main/java/org/apache/geronimo/monitoring/MasterRemoteControlJMX.java?rev=656417&r1=656416&r2=656417&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/monitoring/agent-jmx/src/main/java/org/apache/geronimo/monitoring/MasterRemoteControlJMX.java
(original)
+++ geronimo/server/trunk/plugins/monitoring/agent-jmx/src/main/java/org/apache/geronimo/monitoring/MasterRemoteControlJMX.java
Wed May 14 13:34:02 2008
@@ -58,6 +58,7 @@
 import org.apache.geronimo.monitoring.snapshot.SnapshotThread;
 import org.apache.geronimo.monitoring.snapshot.SnapshotConfigXMLBuilder;
 import org.apache.geronimo.monitoring.snapshot.SnapshotDBHelper;
+import org.apache.geronimo.monitoring.snapshot.ObjectFactory;
 
 /**
  * This is the GBean that will be the bottleneck for the communication



Mime
View raw message