[jboss-cvs] JBossAS SVN: r88565 - in projects/jboss-osgi/trunk: build/hudson/hudson-home and 9 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri May 8 18:53:15 EDT 2009


Author: thomas.diesler at jboss.com
Date: 2009-05-08 18:53:15 -0400 (Fri, 08 May 2009)
New Revision: 88565

Removed:
   projects/jboss-osgi/trunk/bundle/common/src/main/java/org/jboss/osgi/common/StringConstants.java
   projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/service/microcontainer/
Modified:
   projects/jboss-osgi/trunk/build/hudson/hudson-home/config.xml
   projects/jboss-osgi/trunk/pom.xml
   projects/jboss-osgi/trunk/runtime/deployer/src/main/java/org/jboss/osgi/deployer/BundleStartStopDeployer.java
   projects/jboss-osgi/trunk/runtime/equinox/src/main/java/org/jboss/osgi/equinox/framework/EquinoxIntegration.java
   projects/jboss-osgi/trunk/runtime/equinox/src/main/resources/osgi-deployers-jboss-beans.xml
   projects/jboss-osgi/trunk/runtime/felix/src/main/java/org/jboss/osgi/felix/framework/FelixIntegration.java
   projects/jboss-osgi/trunk/runtime/knopflerfish/src/main/java/org/jboss/osgi/knopflerfish/framework/KnopflerfishIntegration.java
   projects/jboss-osgi/trunk/runtime/knopflerfish/src/main/resources/osgi-deployers-jboss-beans.xml
   projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jboss-osgi-felix.properties
Log:
Fix Equinox,Knopflerfish startup. 'org.osgi.framework.system.packages.extra' seems not to work

Modified: projects/jboss-osgi/trunk/build/hudson/hudson-home/config.xml
===================================================================
--- projects/jboss-osgi/trunk/build/hudson/hudson-home/config.xml	2009-05-08 22:30:54 UTC (rev 88564)
+++ projects/jboss-osgi/trunk/build/hudson/hudson-home/config.xml	2009-05-08 22:53:15 UTC (rev 88565)
@@ -10,7 +10,6 @@
 <tr align="left"><th>Bind Addr</th><td>@jboss.bind.address@</td></tr>
 <tr align="left"><th>JavaDoc</th><td>
 <a href='job/jbossosgi-jdk16/ws/jboss-osgi/spi/target/apidocs/index.html'>SPI</a>&nbsp;
-<a href='job/jbossosgi-jdk16/ws/jboss-osgi/runtime/testing/target/apidocs/index.html'>Testing</a>&nbsp;
 </td></tr>
 <tr align="left"><th>Userguide</th><td>
 <a href='job/jbossosgi-jdk16/ws/jboss-osgi/build/distribution/target/auto-install-dest/docs/userguide/pdf/JBossOSGi - Userguide.pdf'>PDF</a>&nbsp;

Deleted: projects/jboss-osgi/trunk/bundle/common/src/main/java/org/jboss/osgi/common/StringConstants.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/common/src/main/java/org/jboss/osgi/common/StringConstants.java	2009-05-08 22:30:54 UTC (rev 88564)
+++ projects/jboss-osgi/trunk/bundle/common/src/main/java/org/jboss/osgi/common/StringConstants.java	2009-05-08 22:53:15 UTC (rev 88565)
@@ -1,113 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.osgi.common;
-
-//$Id$
-
-import org.osgi.framework.Bundle;
-import org.osgi.framework.BundleEvent;
-import org.osgi.service.log.LogService;
-
-/**
- * String representation for common OSGi Constants
- * 
- * @author thomas.diesler at jboss.com
- * @since 04-Mar-2009
- */
-public abstract class StringConstants 
-{
-   /**
-    * Return the string representation of a {@link Bundle} state
-    */
-   public static String bundleState(int bundleState)
-   {
-      String retState = "[" + bundleState + "]";
-      if (Bundle.UNINSTALLED == bundleState)
-         retState = "UNINSTALLED";
-      else if (Bundle.INSTALLED == bundleState)
-         retState = "INSTALLED";
-      else if (Bundle.RESOLVED == bundleState)
-         retState = "RESOLVED";
-      else if (Bundle.STARTING == bundleState)
-         retState = "STARTING";
-      else if (Bundle.STOPPING == bundleState)
-         retState = "STOPPING";
-      else if (Bundle.ACTIVE == bundleState)
-         retState = "ACTIVE";
-      return retState;
-   }
-   
-   /**
-    * Return the string representation of a {@link BundleEvent} type
-    */
-   public static String bundleEvent(int eventType)
-   {
-      String retType = "[" + eventType + "]";
-      if (BundleEvent.INSTALLED == eventType)
-         retType = "INSTALLED";
-      else if (BundleEvent.LAZY_ACTIVATION == eventType)
-         retType = "LAZY_ACTIVATION";
-      else if (BundleEvent.RESOLVED == eventType)
-         retType = "RESOLVED";
-      else if (BundleEvent.STARTING == eventType)
-         retType = "STARTING";
-      else if (BundleEvent.STARTED == eventType)
-         retType = "STARTED";
-      else if (BundleEvent.STOPPING == eventType)
-         retType = "STOPPING";
-      else if (BundleEvent.STOPPED == eventType)
-         retType = "STOPPED";
-      else if (BundleEvent.UNINSTALLED == eventType)
-         retType = "UNINSTALLED";
-      else if (BundleEvent.UNRESOLVED == eventType)
-         retType = "UNRESOLVED";
-      else if (BundleEvent.UPDATED == eventType)
-         retType = "UPDATED";
-      return retType;
-   }
-   
-   /**
-    * Return the string representation of a {@link LogService} level
-    */
-   public static String logLevel(int level)
-   {
-      String logLevel;
-      switch (level)
-      {
-         case LogService.LOG_DEBUG:
-            logLevel = "DEBUG";
-            break;
-         case LogService.LOG_INFO:
-            logLevel = "INFO";
-            break;
-         case LogService.LOG_WARNING:
-            logLevel = "WARN";
-            break;
-         case LogService.LOG_ERROR:
-            logLevel = "ERROR";
-            break;
-         default:
-            logLevel = "Level=" + level;
-      }
-      return logLevel;
-   }
-}

Modified: projects/jboss-osgi/trunk/pom.xml
===================================================================
--- projects/jboss-osgi/trunk/pom.xml	2009-05-08 22:30:54 UTC (rev 88564)
+++ projects/jboss-osgi/trunk/pom.xml	2009-05-08 22:53:15 UTC (rev 88565)
@@ -48,7 +48,7 @@
     <version.felix.metatype>1.0.2</version.felix.metatype>
     <version.felix.osgi.core>1.2.0</version.felix.osgi.core>
     <version.felix.webconsole>1.2.8</version.felix.webconsole>
-    <version.izpack>4.3.0</version.izpack>
+    <version.izpack>4.2.0</version.izpack>
     <version.javax.servlet>2.4</version.javax.servlet>
     <version.jaxb.bundle>2.1.10-SNAPSHOT</version.jaxb.bundle>
     <version.jbossas>5.0.1.GA</version.jbossas>

Modified: projects/jboss-osgi/trunk/runtime/deployer/src/main/java/org/jboss/osgi/deployer/BundleStartStopDeployer.java
===================================================================
--- projects/jboss-osgi/trunk/runtime/deployer/src/main/java/org/jboss/osgi/deployer/BundleStartStopDeployer.java	2009-05-08 22:30:54 UTC (rev 88564)
+++ projects/jboss-osgi/trunk/runtime/deployer/src/main/java/org/jboss/osgi/deployer/BundleStartStopDeployer.java	2009-05-08 22:53:15 UTC (rev 88565)
@@ -31,6 +31,7 @@
 import org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer;
 import org.jboss.deployers.structure.spi.DeploymentUnit;
 import org.jboss.osgi.spi.Constants;
+import org.jboss.osgi.spi.framework.ExportedPackageHelper;
 import org.osgi.framework.Bundle;
 import org.osgi.framework.BundleContext;
 import org.osgi.framework.BundleException;
@@ -94,10 +95,12 @@
 
    private void simpleStart(DeploymentUnit unit, Bundle bundle) throws DeploymentException
    {
+      ExportedPackageHelper packageHelper = new ExportedPackageHelper(systemContext);
       try
       {
          bundle.start();
          log.info("Started: " + bundle);
+         packageHelper.logExportedPackages(bundle);
       }
       catch (BundleException e)
       {
@@ -107,6 +110,8 @@
 
    private void deferredStart(DeploymentUnit unit, Bundle bundle) throws DeploymentException
    {
+      ExportedPackageHelper packageHelper = new ExportedPackageHelper(systemContext);
+      
       // Get the required dependency on the PackageAdmin service
       if (packageAdmin == null)
       {
@@ -136,6 +141,7 @@
             try
             {
                auxBundle.start();
+               packageHelper.logExportedPackages(bundle);
                log.info("Started: " + bundle);
             }
             catch (BundleException e)

Modified: projects/jboss-osgi/trunk/runtime/equinox/src/main/java/org/jboss/osgi/equinox/framework/EquinoxIntegration.java
===================================================================
--- projects/jboss-osgi/trunk/runtime/equinox/src/main/java/org/jboss/osgi/equinox/framework/EquinoxIntegration.java	2009-05-08 22:30:54 UTC (rev 88564)
+++ projects/jboss-osgi/trunk/runtime/equinox/src/main/java/org/jboss/osgi/equinox/framework/EquinoxIntegration.java	2009-05-08 22:53:15 UTC (rev 88565)
@@ -35,6 +35,7 @@
 import org.eclipse.osgi.framework.internal.core.FrameworkProperties;
 import org.jboss.logging.Logger;
 import org.jboss.osgi.spi.FrameworkException;
+import org.jboss.osgi.spi.framework.ExportedPackageHelper;
 import org.jboss.osgi.spi.framework.OSGiFramework;
 import org.osgi.framework.Bundle;
 import org.osgi.framework.BundleContext;
@@ -123,31 +124,26 @@
          FrameworkProperties.setProperty(LocationManager.PROP_INSTALL_AREA, userHome + "/equinox");
       }
       
-      // Init & Start the Framework
+      // Init the Framework
       framework = new Framework(new FrameworkAdaptorImpl());
-      framework.launch();
    }
 
-   private void assertFrameworkCreate()
+   public void start()
    {
-      if (framework == null)
-         create();
-   }
-
-   private void assertFrameworkStart()
-   {
       assertFrameworkCreate();
-      if ((framework.getBundle(0).getState() & Bundle.ACTIVE) == 0)
-         start();
-   }
-
-   public void start()
-   {
+      
+      // Start the Framework
+      framework.launch();
+      
       // Get system bundle context
       BundleContext context = getBundleContext();
       if (context == null)
          throw new FrameworkException("Cannot obtain system context");
 
+      // Log the the framework packages
+      ExportedPackageHelper packageHelper = new ExportedPackageHelper(context);
+      packageHelper.logExportedPackages(getBundle());
+      
       Map<URL, Bundle> autoBundles = new HashMap<URL, Bundle>();
 
       // Add the autoStart bundles to autoInstall
@@ -178,6 +174,7 @@
          {
             Bundle bundle = autoBundles.get(bundleURL);
             bundle.start();
+            packageHelper.logExportedPackages(bundle);
             log.info("Started bundle: " + bundle.getSymbolicName());
          }
          catch (BundleException ex)
@@ -194,4 +191,17 @@
          framework.shutdown();
       }
    }
+
+   private void assertFrameworkCreate()
+   {
+      if (framework == null)
+         create();
+   }
+
+   private void assertFrameworkStart()
+   {
+      assertFrameworkCreate();
+      if ((framework.getBundle(0).getState() & Bundle.ACTIVE) == 0)
+         start();
+   }
 }
\ No newline at end of file

Modified: projects/jboss-osgi/trunk/runtime/equinox/src/main/resources/osgi-deployers-jboss-beans.xml
===================================================================
--- projects/jboss-osgi/trunk/runtime/equinox/src/main/resources/osgi-deployers-jboss-beans.xml	2009-05-08 22:30:54 UTC (rev 88564)
+++ projects/jboss-osgi/trunk/runtime/equinox/src/main/resources/osgi-deployers-jboss-beans.xml	2009-05-08 22:53:15 UTC (rev 88565)
@@ -1,7 +1,19 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
+<!--
+  $Id$
+-->
+
 <deployment xmlns="urn:jboss:bean-deployer:2.0">
 
+  <!-- 
+  ********************************
+  *                              *  
+  *  Framework                   *
+  *                              *
+  ********************************
+  -->
+
   <!-- The OSGiFramework -->
   <bean name="jboss.osgi:service=Framework" class="org.jboss.osgi.equinox.framework.EquinoxIntegration">
     <property name="properties">
@@ -12,14 +24,17 @@
         <entry><key>osgi.install.area</key><value>${jboss.server.data.dir}/equinox</value></entry>
         <entry><key>felix.cm.dir</key><value>${jboss.server.data.dir}/osgi-configadmin</value></entry>
         <entry>
-          <key>org.osgi.framework.system.packages.extra</key>
+          <key>org.osgi.framework.system.packages</key>
           <value>
+            javax.management,
+            javax.xml.parsers,
             org.jboss.logging,
             org.jboss.osgi.spi.service,
             org.jboss.osgi.spi.management,
             org.osgi.framework; version=1.4,
             org.osgi.service.packageadmin; version=1.2,
             org.osgi.service.startlevel; version=1.1,
+            org.xml.sax
           </value>
         </entry>
         <!-- 
@@ -27,25 +42,62 @@
           If set to 'false' bundles must be deployed in the order that is required to start them. 
         -->
         <entry><key>org.jboss.osgi.deferred.start</key><value>true</value></entry>
+        <!--
+          Setup remote logging  
+        -->
+        <entry><key>org.jboss.osgi.service.remote.log.sender</key><value>true</value></entry>
+        <entry><key>org.jboss.osgi.service.remote.log.host</key><value>localhost</value></entry>
+        <entry><key>org.jboss.osgi.service.remote.log.port</key><value>5400</value></entry>
       </map>
     </property>
   </bean>
 
   <!-- The Framework Management -->
   <bean name="jboss.osgi:service=ManagedFramework" class="org.jboss.osgi.spi.management.ManagedFramework">
-    <property name="mbeanServer"><inject bean="JMXKernel" property="mbeanServer"/></property>
+   <property name="systemContext"><inject bean="jboss.osgi:service=Framework" property="bundleContext"/></property>
+   <property name="mbeanServer"><inject bean="JMXKernel" property="mbeanServer"/></property>
   </bean>
 
-  <!-- A Service that gives access to the Microcontainer Kernel -->
-  <bean name="jboss.osgi:service=Microcontainer" class="org.jboss.osgi.spi.service.microcontainer.internal.MicrocontainerServiceImpl">
-    <property name="systemContext"><inject bean="jboss.osgi:service=Framework" property="bundleContext"/></property>
-    <property name="mbeanServer"><inject bean="JMXKernel" property="mbeanServer"/></property>
-    <property name="kernel"><inject bean="jboss.kernel:service=Kernel" /></property>
+  <!-- 
+  ********************************
+  *                              *  
+  *  Services                    *
+  *                              *
+  ********************************
+  -->
+
+  <!-- A Service that gives access to the Microcontainer -->
+  <bean name="jboss.osgi:service=Microcontainer" class="org.jboss.osgi.microcontainer.internal.MicrocontainerServiceImpl">
+   <property name="systemContext"><inject bean="jboss.osgi:service=Framework" property="bundleContext"/></property>
+   <property name="mbeanServer"><inject bean="JMXKernel" property="mbeanServer"/></property>
+   <property name="kernel"><inject bean="jboss.kernel:service=Kernel" /></property>
   </bean>
 
+  <!-- A Service that gives access to JNDI -->
+  <bean name="jboss.osgi:service=Naming" class="org.jboss.osgi.jndi.internal.NamingServiceImpl">
+   <property name="systemContext"><inject bean="jboss.osgi:service=Framework" property="bundleContext"/></property>
+  </bean>
+
+  <!-- A Service that gives access to the MBeanServer -->
+  <bean name="jboss.osgi:service=Management" class="org.jboss.osgi.jmx.internal.ManagementServiceImpl">
+   <property name="systemContext"><inject bean="jboss.osgi:service=Framework" property="bundleContext"/></property>
+   <property name="mbeanServer"><inject bean="JMXKernel" property="mbeanServer"/></property>
+  </bean>
+
+  <!-- 
+  ********************************
+  *                              *  
+  *  Deployers                   *
+  *                              *
+  ********************************
+  -->
+
   <!-- The OSGi MetaData Deployer -->
   <bean name="jboss.osgi:service=BundleMetaDataDeployer" class="org.jboss.osgi.deployer.BundleMetaDataDeployer" />
   
+  <!-- The OSGi Bundle Structure Deployer -->
+  <bean name="jboss.osgi:service=BundleStructureDeployer" class="org.jboss.osgi.deployer.BundleStructureDeployer" />
+  
   <!-- The OSGi Bundle Deployer -->
   <bean name="jboss.osgi:service=BundleRealDeployer" class="org.jboss.osgi.deployer.BundleRealDeployer">
     <property name="systemContext"><inject bean="jboss.osgi:service=Framework" property="bundleContext" /></property>

Modified: projects/jboss-osgi/trunk/runtime/felix/src/main/java/org/jboss/osgi/felix/framework/FelixIntegration.java
===================================================================
--- projects/jboss-osgi/trunk/runtime/felix/src/main/java/org/jboss/osgi/felix/framework/FelixIntegration.java	2009-05-08 22:30:54 UTC (rev 88564)
+++ projects/jboss-osgi/trunk/runtime/felix/src/main/java/org/jboss/osgi/felix/framework/FelixIntegration.java	2009-05-08 22:53:15 UTC (rev 88565)
@@ -132,6 +132,10 @@
       if (context == null)
          throw new FrameworkException("Cannot obtain system context");
 
+      // Log the the framework packages
+      ExportedPackageHelper packageHelper = new ExportedPackageHelper(context);
+      packageHelper.logExportedPackages(getBundle());
+      
       Map<URL, Bundle> autoBundles = new HashMap<URL, Bundle>();
 
       // Add the autoStart bundles to autoInstall
@@ -157,7 +161,6 @@
       }
 
       // Start autoStart bundles
-      ExportedPackageHelper packageHelper = new ExportedPackageHelper(context);
       for (URL bundleURL : autoStart)
       {
          try
@@ -177,19 +180,6 @@
       }
    }
 
-   private void assertFrameworkCreate()
-   {
-      if (framework == null)
-         create();
-   }
-
-   private void assertFrameworkStart()
-   {
-      assertFrameworkCreate();
-      if ((framework.getState() & Bundle.ACTIVE) == 0)
-         start();
-   }
-
    public void stop()
    {
       if (framework != null)
@@ -211,4 +201,17 @@
          }
       }
    }
+
+   private void assertFrameworkCreate()
+   {
+      if (framework == null)
+         create();
+   }
+
+   private void assertFrameworkStart()
+   {
+      assertFrameworkCreate();
+      if ((framework.getState() & Bundle.ACTIVE) == 0)
+         start();
+   }
 }
\ No newline at end of file

Modified: projects/jboss-osgi/trunk/runtime/knopflerfish/src/main/java/org/jboss/osgi/knopflerfish/framework/KnopflerfishIntegration.java
===================================================================
--- projects/jboss-osgi/trunk/runtime/knopflerfish/src/main/java/org/jboss/osgi/knopflerfish/framework/KnopflerfishIntegration.java	2009-05-08 22:30:54 UTC (rev 88564)
+++ projects/jboss-osgi/trunk/runtime/knopflerfish/src/main/java/org/jboss/osgi/knopflerfish/framework/KnopflerfishIntegration.java	2009-05-08 22:53:15 UTC (rev 88565)
@@ -34,6 +34,7 @@
 
 import org.jboss.logging.Logger;
 import org.jboss.osgi.spi.FrameworkException;
+import org.jboss.osgi.spi.framework.ExportedPackageHelper;
 import org.jboss.osgi.spi.framework.OSGiFramework;
 import org.knopflerfish.framework.Framework;
 import org.osgi.framework.Bundle;
@@ -146,11 +147,10 @@
       PrintStream sysErr = System.err;
       System.setErr(new PrintStream(new ByteArrayOutputStream()));
       
-      // Init & Start the Framework
+      // Init the Framework
       try
       {
          framework = new Framework(null);
-         framework.launch(0);
       }
       catch (RuntimeException rte)
       {
@@ -169,11 +169,31 @@
 
    public void start()
    {
+      assertFrameworkCreate();
+      
+      // Start the Framework
+      try
+      {
+         framework.launch(0);
+      }
+      catch (RuntimeException rte)
+      {
+         throw rte;
+      }
+      catch (Exception ex)
+      {
+         throw new FrameworkException("Cannot start system bundle", ex);
+      }
+      
       // Get system bundle context
       BundleContext context = getBundleContext();
       if (context == null)
          throw new FrameworkException("Cannot obtain system context");
 
+      // Log the the framework packages
+      ExportedPackageHelper packageHelper = new ExportedPackageHelper(context);
+      packageHelper.logExportedPackages(getBundle());
+      
       Map<URL, Bundle> autoBundles = new HashMap<URL, Bundle>();
 
       // Add the autoStart bundles to autoInstall
@@ -204,6 +224,7 @@
          {
             Bundle bundle = autoBundles.get(bundleURL);
             bundle.start();
+            packageHelper.logExportedPackages(bundle);
             log.info("Started bundle: " + bundle.getSymbolicName());
          }
          catch (BundleException ex)

Modified: projects/jboss-osgi/trunk/runtime/knopflerfish/src/main/resources/osgi-deployers-jboss-beans.xml
===================================================================
--- projects/jboss-osgi/trunk/runtime/knopflerfish/src/main/resources/osgi-deployers-jboss-beans.xml	2009-05-08 22:30:54 UTC (rev 88564)
+++ projects/jboss-osgi/trunk/runtime/knopflerfish/src/main/resources/osgi-deployers-jboss-beans.xml	2009-05-08 22:53:15 UTC (rev 88565)
@@ -1,7 +1,19 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
+<!--
+  $Id$
+-->
+
 <deployment xmlns="urn:jboss:bean-deployer:2.0">
 
+  <!-- 
+  ********************************
+  *                              *  
+  *  Framework                   *
+  *                              *
+  ********************************
+  -->
+
   <!-- The OSGiFramework -->
   <bean name="jboss.osgi:service=Framework" class="org.jboss.osgi.knopflerfish.framework.KnopflerfishIntegration">
     <property name="properties">
@@ -11,14 +23,17 @@
         <entry><key>org.osgi.framework.dir</key><value>${jboss.server.data.dir}/knopflerfish</value></entry>
         <entry><key>felix.cm.dir</key><value>${jboss.server.data.dir}/osgi-configadmin</value></entry>
         <entry>
-          <key>org.osgi.framework.system.packages.extra</key>
+          <key>org.osgi.framework.system.packages</key>
           <value>
+            javax.management,
+            javax.xml.parsers,
             org.jboss.logging,
             org.jboss.osgi.spi.service,
             org.jboss.osgi.spi.management,
             org.osgi.framework; version=1.4,
             org.osgi.service.packageadmin; version=1.2,
             org.osgi.service.startlevel; version=1.1,
+            org.xml.sax
           </value>
         </entry>
         <!-- 
@@ -26,22 +41,56 @@
           If set to 'false' bundles must be deployed in the order that is required to start them. 
         -->
         <entry><key>org.jboss.osgi.deferred.start</key><value>true</value></entry>
+        <!--
+          Setup remote logging  
+        -->
+        <entry><key>org.jboss.osgi.service.remote.log.sender</key><value>true</value></entry>
+        <entry><key>org.jboss.osgi.service.remote.log.host</key><value>localhost</value></entry>
+        <entry><key>org.jboss.osgi.service.remote.log.port</key><value>5400</value></entry>
       </map>
     </property>
   </bean>
 
   <!-- The Framework Management -->
   <bean name="jboss.osgi:service=ManagedFramework" class="org.jboss.osgi.spi.management.ManagedFramework">
-    <property name="mbeanServer"><inject bean="JMXKernel" property="mbeanServer"/></property>
+   <property name="systemContext"><inject bean="jboss.osgi:service=Framework" property="bundleContext"/></property>
+   <property name="mbeanServer"><inject bean="JMXKernel" property="mbeanServer"/></property>
   </bean>
 
-  <!-- A Service that gives access to the Microcontainer Kernel -->
-  <bean name="jboss.osgi:service=Microcontainer" class="org.jboss.osgi.spi.service.microcontainer.internal.MicrocontainerServiceImpl">
-    <property name="systemContext"><inject bean="jboss.osgi:service=Framework" property="bundleContext"/></property>
-    <property name="mbeanServer"><inject bean="JMXKernel" property="mbeanServer"/></property>
-    <property name="kernel"><inject bean="jboss.kernel:service=Kernel" /></property>
+  <!-- 
+  ********************************
+  *                              *  
+  *  Services                    *
+  *                              *
+  ********************************
+  -->
+
+  <!-- A Service that gives access to the Microcontainer -->
+  <bean name="jboss.osgi:service=Microcontainer" class="org.jboss.osgi.microcontainer.internal.MicrocontainerServiceImpl">
+   <property name="systemContext"><inject bean="jboss.osgi:service=Framework" property="bundleContext"/></property>
+   <property name="mbeanServer"><inject bean="JMXKernel" property="mbeanServer"/></property>
+   <property name="kernel"><inject bean="jboss.kernel:service=Kernel" /></property>
   </bean>
 
+  <!-- A Service that gives access to JNDI -->
+  <bean name="jboss.osgi:service=Naming" class="org.jboss.osgi.jndi.internal.NamingServiceImpl">
+   <property name="systemContext"><inject bean="jboss.osgi:service=Framework" property="bundleContext"/></property>
+  </bean>
+
+  <!-- A Service that gives access to the MBeanServer -->
+  <bean name="jboss.osgi:service=Management" class="org.jboss.osgi.jmx.internal.ManagementServiceImpl">
+   <property name="systemContext"><inject bean="jboss.osgi:service=Framework" property="bundleContext"/></property>
+   <property name="mbeanServer"><inject bean="JMXKernel" property="mbeanServer"/></property>
+  </bean>
+
+  <!-- 
+  ********************************
+  *                              *  
+  *  Deployers                   *
+  *                              *
+  ********************************
+  -->
+
   <!-- The OSGi MetaData Deployer -->
   <bean name="jboss.osgi:service=BundleMetaDataDeployer" class="org.jboss.osgi.deployer.BundleMetaDataDeployer" />
   

Modified: projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jboss-osgi-felix.properties
===================================================================
--- projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jboss-osgi-felix.properties	2009-05-08 22:30:54 UTC (rev 88564)
+++ projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jboss-osgi-felix.properties	2009-05-08 22:53:15 UTC (rev 88565)
@@ -16,7 +16,6 @@
 
 # Extra System Packages
 org.osgi.framework.system.packages.extra=\
-	org.apache.log4j, \
 	org.jboss.logging, \
   	org.jboss.net.protocol, \
   	org.jboss.osgi.spi, \




More information about the jboss-cvs-commits mailing list