Blame SOURCES/fix_bundle_loading.patch

3aaed5
diff --git a/distribution/config/commands/agent.properties b/distribution/config/commands/agent.properties
3aaed5
--- a/distribution/config/commands/agent.properties
3aaed5
+++ b/distribution/config/commands/agent.properties
3aaed5
@@ -3,6 +3,7 @@
3aaed5
           com.redhat.thermostat.web.client=${project.version}, \
3aaed5
           org.apache.httpcomponents.httpcore=${httpcomponents.core.version}, \
3aaed5
           org.apache.httpcomponents.httpclient=${httpcomponents.client.version}, \
3aaed5
+          org.apache.httpcomponents.httpmime=${httpcomponents.mime.version}, \
3aaed5
           com.google.gson=${gson.version}, \
3aaed5
           com.redhat.thermostat.process=${project.version}, \
3aaed5
           com.redhat.thermostat.common.core=${project.version}, \
3aaed5
diff --git a/distribution/config/commands/clean-data.properties b/distribution/config/commands/clean-data.properties
3aaed5
--- a/distribution/config/commands/clean-data.properties
3aaed5
+++ b/distribution/config/commands/clean-data.properties
3aaed5
@@ -4,6 +4,7 @@
3aaed5
           com.redhat.thermostat.web.client=${project.version}, \
3aaed5
           org.apache.httpcomponents.httpcore=${httpcomponents.core.version}, \
3aaed5
           org.apache.httpcomponents.httpclient=${httpcomponents.client.version}, \
3aaed5
+          org.apache.httpcomponents.httpmime=${httpcomponents.mime.version}, \
3aaed5
           com.google.gson=${gson.version}, \
3aaed5
           org.mongodb.mongo-java-driver=${mongo-driver.osgi-version}, \
3aaed5
           org.apache.commons.beanutils=${commons-beanutils.version}, \
3aaed5
diff --git a/distribution/config/commands/connect.properties b/distribution/config/commands/connect.properties
3aaed5
--- a/distribution/config/commands/connect.properties
3aaed5
+++ b/distribution/config/commands/connect.properties
3aaed5
@@ -10,6 +10,7 @@
3aaed5
           org.apache.commons.logging=${commons-logging.version}, \
3aaed5
           org.apache.httpcomponents.httpcore=${httpcomponents.core.version}, \
3aaed5
           org.apache.httpcomponents.httpclient=${httpcomponents.client.version}, \
3aaed5
+          org.apache.httpcomponents.httpmime=${httpcomponents.mime.version}, \
3aaed5
           com.google.gson=${gson.version}
3aaed5
 
3aaed5
 description = persistently connect to storage
3aaed5
diff --git a/distribution/config/commands/gui.properties b/distribution/config/commands/gui.properties
3aaed5
--- a/distribution/config/commands/gui.properties
3aaed5
+++ b/distribution/config/commands/gui.properties
3aaed5
@@ -20,7 +20,10 @@
3aaed5
           com.redhat.thermostat.process=${project.version}, \
3aaed5
           org.apache.httpcomponents.httpcore=${httpcomponents.core.version}, \
3aaed5
           org.apache.httpcomponents.httpclient=${httpcomponents.client.version}, \
3aaed5
-          org.jboss.netty=${netty.version}
3aaed5
+          org.apache.httpcomponents.httpmime=${httpcomponents.mime.version}, \
3aaed5
+          org.jboss.netty=${netty.version}, \
3aaed5
+          org.jfree.jcommon=${jcommon.osgi.version} , \
3aaed5
+          org.jfree.jfreechart=${jfreechart.osgi.version}
3aaed5
 
3aaed5
 description = launches the GUI client
3aaed5
 
3aaed5
diff --git a/distribution/config/commands/list-vms.properties b/distribution/config/commands/list-vms.properties
3aaed5
--- a/distribution/config/commands/list-vms.properties
3aaed5
+++ b/distribution/config/commands/list-vms.properties
3aaed5
@@ -4,6 +4,7 @@
3aaed5
           com.redhat.thermostat.web.client=${project.version}, \
3aaed5
           org.apache.httpcomponents.httpcore=${httpcomponents.core.version}, \
3aaed5
           org.apache.httpcomponents.httpclient=${httpcomponents.client.version}, \
3aaed5
+          org.apache.httpcomponents.httpmime=${httpcomponents.mime.version}, \
3aaed5
           com.google.gson=${gson.version}, \
3aaed5
           org.mongodb.mongo-java-driver=${mongo-driver.osgi-version}, \
3aaed5
           org.apache.commons.beanutils=${commons-beanutils.version}, \
3aaed5
diff --git a/distribution/config/commands/ping.properties b/distribution/config/commands/ping.properties
3aaed5
--- a/distribution/config/commands/ping.properties
3aaed5
+++ b/distribution/config/commands/ping.properties
3aaed5
@@ -5,6 +5,7 @@
3aaed5
           com.redhat.thermostat.web.client=${project.version}, \
3aaed5
           org.apache.httpcomponents.httpcore=${httpcomponents.core.version}, \
3aaed5
           org.apache.httpcomponents.httpclient=${httpcomponents.client.version}, \
3aaed5
+          org.apache.httpcomponents.httpmime=${httpcomponents.mime.version}, \
3aaed5
           com.google.gson=${gson.version}, \
3aaed5
           org.mongodb.mongo-java-driver=${mongo-driver.osgi-version}, \
3aaed5
           org.apache.commons.beanutils=${commons-beanutils.version}, \
3aaed5
diff --git a/distribution/config/commands/vm-info.properties b/distribution/config/commands/vm-info.properties
3aaed5
--- a/distribution/config/commands/vm-info.properties
3aaed5
+++ b/distribution/config/commands/vm-info.properties
3aaed5
@@ -4,6 +4,7 @@
3aaed5
           com.redhat.thermostat.web.client=${project.version}, \
3aaed5
           org.apache.httpcomponents.httpcore=${httpcomponents.core.version}, \
3aaed5
           org.apache.httpcomponents.httpclient=${httpcomponents.client.version}, \
3aaed5
+          org.apache.httpcomponents.httpmime=${httpcomponents.mime.version}, \
3aaed5
           com.google.gson=${gson.version}, \
3aaed5
           org.mongodb.mongo-java-driver=${mongo-driver.osgi-version}, \
3aaed5
           org.apache.commons.beanutils=${commons-beanutils.version}, \
3aaed5
diff --git a/distribution/config/commands/vm-stat.properties b/distribution/config/commands/vm-stat.properties
3aaed5
--- a/distribution/config/commands/vm-stat.properties
3aaed5
+++ b/distribution/config/commands/vm-stat.properties
3aaed5
@@ -4,6 +4,7 @@
3aaed5
           com.redhat.thermostat.web.client=${project.version}, \
3aaed5
           org.apache.httpcomponents.httpcore=${httpcomponents.core.version}, \
3aaed5
           org.apache.httpcomponents.httpclient=${httpcomponents.client.version}, \
3aaed5
+          org.apache.httpcomponents.httpmime=${httpcomponents.mime.version}, \
3aaed5
           com.google.gson=${gson.version}, \
3aaed5
           org.mongodb.mongo-java-driver=${mongo-driver.osgi-version}, \
3aaed5
           org.apache.commons.beanutils=${commons-beanutils.version}, \
3aaed5
diff --git a/distribution/config/osgi-export.properties b/distribution/config/osgi-export.properties
3aaed5
--- a/distribution/config/osgi-export.properties
3aaed5
+++ b/distribution/config/osgi-export.properties
3aaed5
@@ -32,20 +32,6 @@
3aaed5
 # library, but you are not obligated to do so.  If you do not wish
3aaed5
 # to do so, delete this exception statement from your version.
3aaed5
 
3aaed5
-# OSGi public API
3aaed5
-org.jfree.chart
3aaed5
-org.jfree.chart.axis
3aaed5
-org.jfree.chart.event
3aaed5
-org.jfree.chart.labels
3aaed5
-org.jfree.chart.plot
3aaed5
-org.jfree.chart.panel
3aaed5
-org.jfree.chart.renderer.xy
3aaed5
-org.jfree.data
3aaed5
-org.jfree.data.general
3aaed5
-org.jfree.data.time
3aaed5
-org.jfree.data.xy
3aaed5
-org.jfree.ui
3aaed5
-org.jfree.data.gantt
3aaed5
 sun.swing
3aaed5
 sun.swing.table
3aaed5
 
3aaed5
@@ -60,11 +46,3 @@
3aaed5
 sun.jvmstat
3aaed5
 sun.jvmstat.monitor
3aaed5
 sun.jvmstat.monitor.event
3aaed5
-
3aaed5
-# webservice command depends on jetty-jndi, which requires
3aaed5
-# javax.transaction and javax.mail. We don't use jndi stuff,
3aaed5
-# so we add those "fake" exports here.
3aaed5
-# javax.transaction is provided by the JVM, javax.mail is not
3aaed5
-# available.
3aaed5
-javax.transaction="1.1"
3aaed5
-javax.mail="1.4"
3aaed5
diff --git a/distribution/scripts/thermostat b/distribution/scripts/thermostat
3aaed5
--- a/distribution/scripts/thermostat
3aaed5
+++ b/distribution/scripts/thermostat
3aaed5
@@ -56,15 +56,12 @@
3aaed5
 
3aaed5
 # This is the minimal boot classpath thermostat needs. Other dependencies
3aaed5
 # will get started by the OSGi framework once that's up.
3aaed5
-SERVICE_CLASSPATH="${THERMOSTAT_LIBS}/org.apache.felix.framework-@felix.framework.version@.jar"
3aaed5
+SERVICE_CLASSPATH="${THERMOSTAT_LIBS}/org.apache.felix.framework.jar"
3aaed5
 SERVICE_CLASSPATH="${SERVICE_CLASSPATH}:${THERMOSTAT_LIBS}/thermostat-launcher-@project.version@.jar"
3aaed5
 SERVICE_CLASSPATH="${SERVICE_CLASSPATH}:${THERMOSTAT_LIBS}/thermostat-main-@project.version@.jar"
3aaed5
 SERVICE_CLASSPATH="${SERVICE_CLASSPATH}:${THERMOSTAT_LIBS}/thermostat-shared-config-@project.version@.jar"
3aaed5
 # This needs to be on the classpath for the RMI registry to find it
3aaed5
 SERVICE_CLASSPATH="${SERVICE_CLASSPATH}:${THERMOSTAT_LIBS}/thermostat-agent-proxy-common-@project.version@.jar"
3aaed5
-# FIXME: Remove once jfreechart is a real OSGi bundle upstream
3aaed5
-SERVICE_CLASSPATH="${SERVICE_CLASSPATH}:${THERMOSTAT_LIBS}/jfreechart-@jfreechart.version@.jar"
3aaed5
-SERVICE_CLASSPATH="${SERVICE_CLASSPATH}:${THERMOSTAT_LIBS}/jcommon-@jcommon.version@.jar"
3aaed5
 SERVICE_CLASSPATH="${TOOLS_JAR}:${SERVICE_CLASSPATH}"
3aaed5
 
3aaed5
 THERMOSTAT_MAIN="com.redhat.thermostat.main.Thermostat"
3aaed5
diff --git a/main/src/main/resources/com/redhat/thermostat/main/impl/bootstrapbundles.properties b/main/src/main/resources/com/redhat/thermostat/main/impl/bootstrapbundles.properties
3aaed5
--- a/main/src/main/resources/com/redhat/thermostat/main/impl/bootstrapbundles.properties
3aaed5
+++ b/main/src/main/resources/com/redhat/thermostat/main/impl/bootstrapbundles.properties
3aaed5
@@ -4,6 +4,7 @@
3aaed5
         thermostat-common-core-${project.version}.jar, \
3aaed5
         thermostat-plugin-validator-${project.version}.jar, \
3aaed5
         thermostat-launcher-${project.version}.jar, \
3aaed5
-        jline-${jline.version}.jar, \
3aaed5
-        commons-cli-${commons-cli.version}.jar, \
3aaed5
-        org.apache.servicemix.bundles.lucene-${lucene.version}.jar
3aaed5
+        jline2.jar, \
3aaed5
+        jansi.jar, \
3aaed5
+        commons-cli.jar, \
3aaed5
+        lucene.jar
3aaed5
diff --git a/vm-heap-analysis/distribution/thermostat-plugin.xml b/vm-heap-analysis/distribution/thermostat-plugin.xml
3aaed5
--- a/vm-heap-analysis/distribution/thermostat-plugin.xml
3aaed5
+++ b/vm-heap-analysis/distribution/thermostat-plugin.xml
3aaed5
@@ -86,8 +86,11 @@
3aaed5
         <bundle><symbolic-name>org.apache.commons.logging</symbolic-name><version>${commons-logging.version}</version></bundle>
3aaed5
         <bundle><symbolic-name>org.apache.httpcomponents.httpcore</symbolic-name><version>${httpcomponents.core.version}</version></bundle>
3aaed5
         <bundle><symbolic-name>org.apache.httpcomponents.httpclient</symbolic-name><version>${httpcomponents.client.version}</version></bundle>
3aaed5
+        <bundle><symbolic-name>org.apache.httpcomponents.httpmime</symbolic-name><version>${httpcomponents.mime.version}</version></bundle>
3aaed5
         <bundle><symbolic-name>com.google.gson</symbolic-name><version>${gson.version}</version></bundle>
3aaed5
         <bundle><symbolic-name>org.jboss.netty</symbolic-name><version>${netty.version}</version></bundle>
3aaed5
+        <bundle><symbolic-name>org.jfree.jcommon</symbolic-name><version>${jcommon.osgi.version}</version></bundle>
3aaed5
+        <bundle><symbolic-name>org.jfree.jfreechart</symbolic-name><version>${jfreechart.osgi.version}</version></bundle>
3aaed5
       </bundles>
3aaed5
     </command>
3aaed5
     <command>
3aaed5
@@ -139,8 +142,11 @@
3aaed5
         <bundle><symbolic-name>org.apache.commons.logging</symbolic-name><version>${commons-logging.version}</version></bundle>
3aaed5
         <bundle><symbolic-name>org.apache.httpcomponents.httpcore</symbolic-name><version>${httpcomponents.core.version}</version></bundle>
3aaed5
         <bundle><symbolic-name>org.apache.httpcomponents.httpclient</symbolic-name><version>${httpcomponents.client.version}</version></bundle>
3aaed5
+        <bundle><symbolic-name>org.apache.httpcomponents.httpmime</symbolic-name><version>${httpcomponents.mime.version}</version></bundle>
3aaed5
         <bundle><symbolic-name>com.google.gson</symbolic-name><version>${gson.version}</version></bundle>
3aaed5
         <bundle><symbolic-name>org.jboss.netty</symbolic-name><version>${netty.version}</version></bundle>
3aaed5
+        <bundle><symbolic-name>org.jfree.jcommon</symbolic-name><version>${jcommon.osgi.version}</version></bundle>
3aaed5
+        <bundle><symbolic-name>org.jfree.jfreechart</symbolic-name><version>${jfreechart.osgi.version}</version></bundle>
3aaed5
       </bundles>
3aaed5
     </command>
3aaed5
     <command>
3aaed5
@@ -195,8 +201,11 @@
3aaed5
         <bundle><symbolic-name>org.apache.commons.logging</symbolic-name><version>${commons-logging.version}</version></bundle>
3aaed5
         <bundle><symbolic-name>org.apache.httpcomponents.httpcore</symbolic-name><version>${httpcomponents.core.version}</version></bundle>
3aaed5
         <bundle><symbolic-name>org.apache.httpcomponents.httpclient</symbolic-name><version>${httpcomponents.client.version}</version></bundle>
3aaed5
+        <bundle><symbolic-name>org.apache.httpcomponents.httpmime</symbolic-name><version>${httpcomponents.mime.version}</version></bundle>
3aaed5
         <bundle><symbolic-name>com.google.gson</symbolic-name><version>${gson.version}</version></bundle>
3aaed5
         <bundle><symbolic-name>org.jboss.netty</symbolic-name><version>${netty.version}</version></bundle>
3aaed5
+        <bundle><symbolic-name>org.jfree.jcommon</symbolic-name><version>${jcommon.osgi.version}</version></bundle>
3aaed5
+        <bundle><symbolic-name>org.jfree.jfreechart</symbolic-name><version>${jfreechart.osgi.version}</version></bundle>
3aaed5
       </bundles>
3aaed5
     </command>
3aaed5
     <command>
3aaed5
@@ -245,8 +254,11 @@
3aaed5
         <bundle><symbolic-name>org.apache.commons.logging</symbolic-name><version>${commons-logging.version}</version></bundle>
3aaed5
         <bundle><symbolic-name>org.apache.httpcomponents.httpcore</symbolic-name><version>${httpcomponents.core.version}</version></bundle>
3aaed5
         <bundle><symbolic-name>org.apache.httpcomponents.httpclient</symbolic-name><version>${httpcomponents.client.version}</version></bundle>
3aaed5
+        <bundle><symbolic-name>org.apache.httpcomponents.httpmime</symbolic-name><version>${httpcomponents.mime.version}</version></bundle>
3aaed5
         <bundle><symbolic-name>com.google.gson</symbolic-name><version>${gson.version}</version></bundle>
3aaed5
         <bundle><symbolic-name>org.jboss.netty</symbolic-name><version>${netty.version}</version></bundle>
3aaed5
+        <bundle><symbolic-name>org.jfree.jcommon</symbolic-name><version>${jcommon.osgi.version}</version></bundle>
3aaed5
+        <bundle><symbolic-name>org.jfree.jfreechart</symbolic-name><version>${jfreechart.osgi.version}</version></bundle>
3aaed5
       </bundles>
3aaed5
     </command>
3aaed5
     <command>
3aaed5
@@ -295,8 +307,11 @@
3aaed5
         <bundle><symbolic-name>org.apache.commons.logging</symbolic-name><version>${commons-logging.version}</version></bundle>
3aaed5
         <bundle><symbolic-name>org.apache.httpcomponents.httpcore</symbolic-name><version>${httpcomponents.core.version}</version></bundle>
3aaed5
         <bundle><symbolic-name>org.apache.httpcomponents.httpclient</symbolic-name><version>${httpcomponents.client.version}</version></bundle>
3aaed5
+        <bundle><symbolic-name>org.apache.httpcomponents.httpmime</symbolic-name><version>${httpcomponents.mime.version}</version></bundle>
3aaed5
         <bundle><symbolic-name>com.google.gson</symbolic-name><version>${gson.version}</version></bundle>
3aaed5
         <bundle><symbolic-name>org.jboss.netty</symbolic-name><version>${netty.version}</version></bundle>
3aaed5
+        <bundle><symbolic-name>org.jfree.jcommon</symbolic-name><version>${jcommon.osgi.version}</version></bundle>
3aaed5
+        <bundle><symbolic-name>org.jfree.jfreechart</symbolic-name><version>${jfreechart.osgi.version}</version></bundle>
3aaed5
       </bundles>
3aaed5
     </command>
3aaed5
     <command>
3aaed5
@@ -345,8 +360,11 @@
3aaed5
         <bundle><symbolic-name>org.apache.commons.logging</symbolic-name><version>${commons-logging.version}</version></bundle>
3aaed5
         <bundle><symbolic-name>org.apache.httpcomponents.httpcore</symbolic-name><version>${httpcomponents.core.version}</version></bundle>
3aaed5
         <bundle><symbolic-name>org.apache.httpcomponents.httpclient</symbolic-name><version>${httpcomponents.client.version}</version></bundle>
3aaed5
+        <bundle><symbolic-name>org.apache.httpcomponents.httpmime</symbolic-name><version>${httpcomponents.mime.version}</version></bundle>
3aaed5
         <bundle><symbolic-name>com.google.gson</symbolic-name><version>${gson.version}</version></bundle>
3aaed5
         <bundle><symbolic-name>org.jboss.netty</symbolic-name><version>${netty.version}</version></bundle>
3aaed5
+        <bundle><symbolic-name>org.jfree.jcommon</symbolic-name><version>${jcommon.osgi.version}</version></bundle>
3aaed5
+        <bundle><symbolic-name>org.jfree.jfreechart</symbolic-name><version>${jfreechart.osgi.version}</version></bundle>
3aaed5
       </bundles>
3aaed5
     </command>
3aaed5
     <command>
3aaed5
@@ -388,8 +406,11 @@
3aaed5
         <bundle><symbolic-name>org.apache.commons.logging</symbolic-name><version>${commons-logging.version}</version></bundle>
3aaed5
         <bundle><symbolic-name>org.apache.httpcomponents.httpcore</symbolic-name><version>${httpcomponents.core.version}</version></bundle>
3aaed5
         <bundle><symbolic-name>org.apache.httpcomponents.httpclient</symbolic-name><version>${httpcomponents.client.version}</version></bundle>
3aaed5
+        <bundle><symbolic-name>org.apache.httpcomponents.httpmime</symbolic-name><version>${httpcomponents.mime.version}</version></bundle>
3aaed5
         <bundle><symbolic-name>com.google.gson</symbolic-name><version>${gson.version}</version></bundle>
3aaed5
         <bundle><symbolic-name>org.jboss.netty</symbolic-name><version>${netty.version}</version></bundle>
3aaed5
+        <bundle><symbolic-name>org.jfree.jcommon</symbolic-name><version>${jcommon.osgi.version}</version></bundle>
3aaed5
+        <bundle><symbolic-name>org.jfree.jfreechart</symbolic-name><version>${jfreechart.osgi.version}</version></bundle>
3aaed5
       </bundles>
3aaed5
     </command>
3aaed5
   </commands>