[jboss-osgi-commits] JBoss-OSGI SVN: r92823 - projects/jboss-osgi/projects/runtime/microcontainer/trunk/src/main/java/org/jboss/osgi/plugins/facade/launch.

jboss-osgi-commits at lists.jboss.org jboss-osgi-commits at lists.jboss.org
Wed Aug 26 06:06:17 EDT 2009


Author: thomas.diesler at jboss.com
Date: 2009-08-26 06:06:17 -0400 (Wed, 26 Aug 2009)
New Revision: 92823

Modified:
   projects/jboss-osgi/projects/runtime/microcontainer/trunk/src/main/java/org/jboss/osgi/plugins/facade/launch/OSGiFrameworkFactory.java
Log:
Improve error message on missing botstrap configs

Modified: projects/jboss-osgi/projects/runtime/microcontainer/trunk/src/main/java/org/jboss/osgi/plugins/facade/launch/OSGiFrameworkFactory.java
===================================================================
--- projects/jboss-osgi/projects/runtime/microcontainer/trunk/src/main/java/org/jboss/osgi/plugins/facade/launch/OSGiFrameworkFactory.java	2009-08-26 10:02:04 UTC (rev 92822)
+++ projects/jboss-osgi/projects/runtime/microcontainer/trunk/src/main/java/org/jboss/osgi/plugins/facade/launch/OSGiFrameworkFactory.java	2009-08-26 10:06:17 UTC (rev 92823)
@@ -24,6 +24,7 @@
 // $Id$
 
 import java.net.URL;
+import java.util.Arrays;
 import java.util.Map;
 
 import org.jboss.dependency.spi.ControllerContext;
@@ -61,7 +62,7 @@
       BasicXMLDeployer deployer = new BasicXMLDeployer(kernel, ControllerMode.AUTOMATIC);
 
       URL url = null;
-      String[] bootstraps = new String[] { "/bootstrap/bootstrap.xml", "/META-INF/bootstrap.xml" };
+      String[] bootstraps = new String[] { "/bootstrap/bootstrap.xml", "/META-INF/jboss-osgi-bootstrap.xml" };
       for (String xml : bootstraps)
       {
          url = getClass().getResource(xml);
@@ -69,7 +70,7 @@
             break;
       }
       if (url == null)
-         throw new IllegalStateException("Cannot find any bootstrap: " + bootstraps);
+         throw new IllegalStateException("Cannot find any bootstrap: " + Arrays.asList(bootstraps));
 
       try
       {



More information about the jboss-osgi-commits mailing list