JBoss-OSGI SVN: r89579 - in projects/jboss-osgi/trunk: hudson/hudson-home and 1 other directories.
by jboss-osgi-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2009-05-30 18:54:03 -0400 (Sat, 30 May 2009)
New Revision: 89579
Modified:
projects/jboss-osgi/trunk/distribution/src/main/resources/installer/install-definition.xml
projects/jboss-osgi/trunk/hudson/hudson-home/command.sh
projects/jboss-osgi/trunk/runtime/equinox/src/main/resources/osgi-deployers-jboss-beans.xml
Log:
Disable web console for equinox
Modified: projects/jboss-osgi/trunk/distribution/src/main/resources/installer/install-definition.xml
===================================================================
--- projects/jboss-osgi/trunk/distribution/src/main/resources/installer/install-definition.xml 2009-05-30 22:22:35 UTC (rev 89578)
+++ projects/jboss-osgi/trunk/distribution/src/main/resources/installer/install-definition.xml 2009-05-30 22:54:03 UTC (rev 89579)
@@ -285,7 +285,6 @@
<include name="org.apache.felix.http.jetty.jar" />
<include name="org.apache.felix.log.jar" />
<include name="org.apache.felix.metatype.jar" />
- <include name="jboss-osgi-webconsole.jar" />
</fileset>
<!-- Felix Integration -->
@@ -298,6 +297,9 @@
<fileset condition="isFelix" dir="@{deploy.artifacts.dir}/resources/jboss-osgi-runtime-felix" targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deployers/osgi.deployer/META-INF" override="true">
<include name="osgi-deployers-jboss-beans.xml" />
</fileset>
+ <fileset condition="isFelix" dir="@{deploy.artifacts.dir}/lib" targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deploy/osgi" override="true">
+ <include name="jboss-osgi-webconsole.jar" />
+ </fileset>
<!-- Equinox Integration -->
@@ -310,6 +312,11 @@
<fileset condition="isEquinox" dir="@{deploy.artifacts.dir}/resources/jboss-osgi-runtime-equinox" targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deployers/osgi.deployer/META-INF" override="true">
<include name="osgi-deployers-jboss-beans.xml" />
</fileset>
+ <!-- does not work with compendium in system classpath
+ <fileset condition="isEquinox" dir="@{deploy.artifacts.dir}/lib" targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deploy/osgi" override="true">
+ <include name="jboss-osgi-webconsole.jar" />
+ </fileset
+ -->
<!-- Knopflerfish Integration -->
@@ -321,6 +328,9 @@
<fileset condition="isKnopflerfish" dir="@{deploy.artifacts.dir}/resources/jboss-osgi-runtime-knopflerfish" targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deployers/osgi.deployer/META-INF" override="true">
<include name="osgi-deployers-jboss-beans.xml" />
</fileset>
+ <fileset condition="isKnopflerfish" dir="@{deploy.artifacts.dir}/lib" targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deploy/osgi" override="true">
+ <include name="jboss-osgi-webconsole.jar" />
+ </fileset>
</pack>
Modified: projects/jboss-osgi/trunk/hudson/hudson-home/command.sh
===================================================================
--- projects/jboss-osgi/trunk/hudson/hudson-home/command.sh 2009-05-30 22:22:35 UTC (rev 89578)
+++ projects/jboss-osgi/trunk/hudson/hudson-home/command.sh 2009-05-30 22:54:03 UTC (rev 89579)
@@ -59,6 +59,23 @@
;;
esac
+case "$FRAMEWORK" in
+ 'felix')
+ WEB_CONSOLE_ADDRESS=$JBOSS_BINDADDR:8090/jboss-osgi
+ ;;
+ 'equinox')
+ # Equinox OSGi Console does does not work with compendium in system classpath
+ WEB_CONSOLE_ADDRESS=$JBOSS_BINDADDR:8080/jmx-console
+ ;;
+ 'knopflerfish')
+ WEB_CONSOLE_ADDRESS=$JBOSS_BINDADDR:8090/jboss-osgi
+ ;;
+ *)
+ echo "Unsupported framework: $FRAMEWORK"
+ exit 1
+ ;;
+esac
+
ENVIRONMENT="-Dframework=$FRAMEWORK -Dtarget.container=$CONTAINER -Djboss.home=$RUNTIME_HOME -Djboss.bind.address=$JBOSS_BINDADDR"
#
@@ -105,7 +122,7 @@
# Was it successfully started?
#
if [ "$CONTAINER" != "runtime" ]; then
- $HUDSONBIN/http-spider.sh $JBOSS_BINDADDR:8090/jboss-osgi $WORKSPACE
+ $HUDSONBIN/http-spider.sh $WEB_CONSOLE_ADDRESS $WORKSPACE
if [ -e $WORKSPACE/spider.failed ]; then
tail -n 200 $RUNTIME_LOG
$HUDSONBIN/startup.sh $RUNTIME_HOME stop
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-30 22:22:35 UTC (rev 89578)
+++ projects/jboss-osgi/trunk/runtime/equinox/src/main/resources/osgi-deployers-jboss-beans.xml 2009-05-30 22:54:03 UTC (rev 89579)
@@ -26,33 +26,7 @@
<entry>
<key>org.osgi.framework.system.packages</key>
<value>
- <!-- system -->
- javax.management,
- javax.xml.parsers,
- org.xml.sax,
-
- <!-- jboss -->
- org.jboss.osgi.common.log;version=1.0,
- org.jboss.osgi.common.service;version=1.0,
- org.jboss.osgi.jbossas.integration,
- org.jboss.osgi.spi;version=1.0,
- org.jboss.osgi.spi.logging;version=1.0,
- org.jboss.osgi.spi.management;version=1.0,
- org.jboss.osgi.spi.testing;version=1.0,
- org.jboss.osgi.spi.testing.capability;version=1.0,
- org.jboss.xb.binding;version=2.0,
- org.jboss.xb.binding.sunday.unmarshalling;version=2.0,
-
- <!-- compendium -->
- org.osgi.service.event;version=1.1,
- org.osgi.service.http;version=1.2,
- org.osgi.service.log;version=1.3,
- org.osgi.util.xml;version=1.0,
-
- <!-- core -->
- org.osgi.framework;version=1.4,
- org.osgi.service.packageadmin;version=1.2,
- org.osgi.service.startlevel;version=1.1,
+ org.osgi.service.log
</value>
</entry>
<!--
@@ -60,24 +34,13 @@
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>
- <!--
- Husky socket connector properties
- -->
- <entry><key>org.jboss.osgi.husky.runtime.connector.host</key><value>${jboss.bind.address}</value></entry>
- <entry><key>org.jboss.osgi.husky.runtime.connector.port</key><value>5401</value></entry>
</map>
+ </property>
<property name="autoStart">
<list elementClass="java.net.URL">
<value>${jboss.server.home.url}/deploy/osgi/org.apache.felix.log.jar</value>
</list>
</property>
- </property>
</bean>
<!-- The Framework Management -->
14 years, 11 months
JBoss-OSGI SVN: r89578 - projects/jboss-osgi/trunk/runtime/knopflerfish/src/main/resources.
by jboss-osgi-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2009-05-30 18:22:35 -0400 (Sat, 30 May 2009)
New Revision: 89578
Modified:
projects/jboss-osgi/trunk/runtime/knopflerfish/src/main/resources/osgi-deployers-jboss-beans.xml
Log:
Fix knopflerfish AS integration
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-30 21:33:26 UTC (rev 89577)
+++ projects/jboss-osgi/trunk/runtime/knopflerfish/src/main/resources/osgi-deployers-jboss-beans.xml 2009-05-30 22:22:35 UTC (rev 89578)
@@ -52,8 +52,6 @@
org.osgi.framework;version=1.4,
org.osgi.service.packageadmin;version=1.2,
org.osgi.service.startlevel;version=1.1
-
- <!-- no trailing ',' -->
</value>
</entry>
<!--
@@ -61,24 +59,13 @@
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>
- <!--
- Husky socket connector properties
- -->
- <entry><key>org.jboss.osgi.husky.runtime.connector.host</key><value>${jboss.bind.address}</value></entry>
- <entry><key>org.jboss.osgi.husky.runtime.connector.port</key><value>5401</value></entry>
</map>
+ </property>
<property name="autoStart">
<list elementClass="java.net.URL">
<value>${jboss.server.home.url}/deploy/osgi/org.apache.felix.log.jar</value>
</list>
</property>
- </property>
</bean>
<!-- The Framework Management -->
14 years, 11 months
JBoss-OSGI SVN: r89576 - in projects/jboss-osgi/trunk: bundles/remotelog and 6 other directories.
by jboss-osgi-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2009-05-30 17:09:53 -0400 (Sat, 30 May 2009)
New Revision: 89576
Modified:
projects/jboss-osgi/trunk/bundles/hotdeploy/src/main/java/org/jboss/osgi/service/hotdeploy/internal/DeploymentScannerImpl.java
projects/jboss-osgi/trunk/bundles/remotelog/pom.xml
projects/jboss-osgi/trunk/bundles/remotelog/src/main/java/org/jboss/osgi/service/remotelog/RemoteLogListener.java
projects/jboss-osgi/trunk/bundles/remotelog/src/main/java/org/jboss/osgi/service/remotelog/internal/RemoteLogReaderServiceImpl.java
projects/jboss-osgi/trunk/bundles/remotelog/src/main/java/org/jboss/osgi/service/remotelog/internal/RemoteLogServiceActivator.java
projects/jboss-osgi/trunk/runtime/felix/src/main/resources/osgi-deployers-jboss-beans.xml
projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/capability/RemoteLogCapability.java
projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/internal/OSGiRuntimeImpl.java
projects/jboss-osgi/trunk/testsuite/example/src/test/java/org/jboss/test/osgi/example/http/HttpServiceTestCase.java
Log:
Remove dependency on jboss-remoting
Modified: projects/jboss-osgi/trunk/bundles/hotdeploy/src/main/java/org/jboss/osgi/service/hotdeploy/internal/DeploymentScannerImpl.java
===================================================================
--- projects/jboss-osgi/trunk/bundles/hotdeploy/src/main/java/org/jboss/osgi/service/hotdeploy/internal/DeploymentScannerImpl.java 2009-05-30 20:48:33 UTC (rev 89575)
+++ projects/jboss-osgi/trunk/bundles/hotdeploy/src/main/java/org/jboss/osgi/service/hotdeploy/internal/DeploymentScannerImpl.java 2009-05-30 21:09:53 UTC (rev 89576)
@@ -244,6 +244,7 @@
{
JarFile jarFile = new JarFile(file);
manifest = jarFile.getManifest();
+ jarFile.close();
}
catch (IOException ex)
{
Modified: projects/jboss-osgi/trunk/bundles/remotelog/pom.xml
===================================================================
--- projects/jboss-osgi/trunk/bundles/remotelog/pom.xml 2009-05-30 20:48:33 UTC (rev 89575)
+++ projects/jboss-osgi/trunk/bundles/remotelog/pom.xml 2009-05-30 21:09:53 UTC (rev 89576)
@@ -19,9 +19,6 @@
<!-- Properties -->
<properties>
- <version.concurrent>1.3.4</version.concurrent>
- <version.jboss.remoting>2.5.0.SP2</version.jboss.remoting>
- <version.jboss.serialization>1.0.3.GA</version.jboss.serialization>
</properties>
<!-- Dependencies -->
@@ -50,33 +47,6 @@
<scope>provided</scope>
</dependency>
- <!-- Remoting Dependencies -->
- <dependency>
- <groupId>org.jboss.remoting</groupId>
- <artifactId>jboss-remoting-core</artifactId>
- <version>${version.jboss.remoting}</version>
- </dependency>
- <dependency>
- <groupId>org.jboss.remoting</groupId>
- <artifactId>jboss-remoting-socket</artifactId>
- <version>${version.jboss.remoting}</version>
- </dependency>
- <dependency>
- <groupId>org.jboss.remoting</groupId>
- <artifactId>jboss-remoting-socket-client</artifactId>
- <version>${version.jboss.remoting}</version>
- </dependency>
- <dependency>
- <groupId>jboss</groupId>
- <artifactId>jboss-serialization</artifactId>
- <version>${version.jboss.serialization}</version>
- </dependency>
- <dependency>
- <groupId>concurrent</groupId>
- <artifactId>concurrent</artifactId>
- <version>${version.concurrent}</version>
- </dependency>
-
</dependencies>
<build>
@@ -91,44 +61,16 @@
<Bundle-Activator>org.jboss.osgi.service.remotelog.internal.RemoteLogServiceActivator</Bundle-Activator>
<Export-Package>org.jboss.osgi.service.remotelog;version=${version}</Export-Package>
<Import-Package>
- org.osgi.framework,
- org.osgi.service.log,
- org.osgi.util.tracker,
-
- javax.crypto;resolution:=optional,
- javax.crypto.spec;resolution:=optional,
- javax.management,
- javax.naming,
- javax.net,
- javax.net.ssl,
- javax.servlet;resolution:=optional,
- javax.servlet.http;resolution:=optional,
- org.apache.log4j,
- org.jboss.logging,
- org.jboss.mx.util;resolution:=optional,
- org.jboss.osgi.common.service;version=1.0,
- org.jboss.osgi.spi;version=1.0,
- org.jboss.osgi.spi.logging;version=1.0,
- org.jboss.remoting;resolution:=optional,
- org.jboss.remoting.*;resolution:=optional,
- org.jboss.util.*,
- org.w3c.dom;resolution:=optional,
-
- <!-- jboss-serialization -->
- gnu.trove;resolution:=optional,
- sun.misc;resolution:=optional,
- sun.reflect;resolution:=optional,
-
- <!-- concurrent -->
- javax.swing;resolution:=optional,
- javax.swing.border;resolution:=optional
+ org.jboss.osgi.common.log;version=1.0,
+ org.jboss.osgi.common.service;version=1.0,
+ org.jboss.osgi.spi;version=1.0,
+ org.jboss.osgi.spi.logging;version=1.0,
+
+ org.osgi.framework,
+ org.osgi.service.log,
+ org.osgi.util.tracker,
</Import-Package>
<Embed-Dependency>
- concurrent,
- jboss-remoting-core,
- jboss-remoting-socket,
- jboss-remoting-socket-client,
- jboss-serialization
</Embed-Dependency>
</instructions>
</configuration>
Modified: projects/jboss-osgi/trunk/bundles/remotelog/src/main/java/org/jboss/osgi/service/remotelog/RemoteLogListener.java
===================================================================
--- projects/jboss-osgi/trunk/bundles/remotelog/src/main/java/org/jboss/osgi/service/remotelog/RemoteLogListener.java 2009-05-30 20:48:33 UTC (rev 89575)
+++ projects/jboss-osgi/trunk/bundles/remotelog/src/main/java/org/jboss/osgi/service/remotelog/RemoteLogListener.java 2009-05-30 21:09:53 UTC (rev 89576)
@@ -23,17 +23,25 @@
//$Id$
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.ObjectOutputStream;
+import java.io.OutputStream;
+import java.net.InetAddress;
+import java.net.Socket;
import java.util.Properties;
+import org.jboss.osgi.common.log.LogServiceTracker;
+import org.jboss.osgi.service.remotelog.internal.RemoteLogEntry;
import org.jboss.osgi.service.remotelog.internal.RemoteLogServiceActivator;
-import org.jboss.osgi.service.remotelog.internal.RemoteLogEntry;
-import org.jboss.remoting.Client;
-import org.jboss.remoting.InvokerLocator;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceReference;
import org.osgi.service.log.LogEntry;
import org.osgi.service.log.LogListener;
import org.osgi.service.log.LogReaderService;
+import org.osgi.service.log.LogService;
import org.osgi.util.tracker.ServiceTracker;
/**
@@ -44,30 +52,22 @@
*/
public class RemoteLogListener implements LogListener
{
+ private LogService log;
+
private BundleContext context;
private ServiceTracker tracker;
private String host;
private Integer port;
- private Client remotingClient;
-
public RemoteLogListener(BundleContext context, Properties props)
{
+ this.log = new LogServiceTracker(context);
this.context = context;
+
this.host = props.getProperty(RemoteLogServiceActivator.REMOTE_LOG_HOST);
this.port = new Integer(props.getProperty(RemoteLogServiceActivator.REMOTE_LOG_PORT));
- // Get the remoting client
- try
- {
- String locatorURI = "socket://" + host + ":" + port;
- InvokerLocator locator = new InvokerLocator(locatorURI);
- remotingClient = new Client(locator);
- }
- catch (Exception ex)
- {
- ex.printStackTrace();
- }
+ log.log(LogService.LOG_DEBUG, "RemoteLogListener: [host=" + host + ",port=" + port + "]");
}
public void start()
@@ -88,9 +88,6 @@
public void stop()
{
- System.out.println("remotingClient.disconnect");
- remotingClient.disconnect();
-
LogReaderService logReader = (LogReaderService)tracker.getService();
if (logReader != null)
logReader.removeLogListener(this);
@@ -101,18 +98,32 @@
RemoteLogEntry remoteEntry = new RemoteLogEntry(entry);
try
{
- if (remotingClient.isConnected() == false)
- {
- System.out.println("remotingClient.connect");
- remotingClient.connect();
- }
-
- System.out.println("invoke: " + remoteEntry);
- remotingClient.invoke(remoteEntry);
+ Socket socket = new Socket(InetAddress.getByName(host), new Integer(port));
+
+ ByteArrayOutputStream baos = new ByteArrayOutputStream();
+ ObjectOutputStream oos = new ObjectOutputStream(baos);
+ oos.writeObject(remoteEntry);
+ oos.close();
+
+ InputStream reqBytes = new ByteArrayInputStream(baos.toByteArray());
+ OutputStream socketOut = socket.getOutputStream();
+ copyStream(reqBytes, socketOut);
+ socketOut.close();
}
- catch (Throwable ex)
+ catch (Exception ex)
{
- ex.printStackTrace();
+ System.err.println(ex);
}
}
+
+ public static void copyStream(InputStream in, OutputStream out) throws IOException
+ {
+ byte[] bytes = new byte[1024];
+ int read = in.read(bytes);
+ while (read > 0)
+ {
+ out.write(bytes, 0, read);
+ read = in.read(bytes);
+ }
+ }
}
\ No newline at end of file
Modified: projects/jboss-osgi/trunk/bundles/remotelog/src/main/java/org/jboss/osgi/service/remotelog/internal/RemoteLogReaderServiceImpl.java
===================================================================
--- projects/jboss-osgi/trunk/bundles/remotelog/src/main/java/org/jboss/osgi/service/remotelog/internal/RemoteLogReaderServiceImpl.java 2009-05-30 20:48:33 UTC (rev 89575)
+++ projects/jboss-osgi/trunk/bundles/remotelog/src/main/java/org/jboss/osgi/service/remotelog/internal/RemoteLogReaderServiceImpl.java 2009-05-30 21:09:53 UTC (rev 89576)
@@ -23,24 +23,24 @@
//$Id$
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.ObjectInputStream;
+import java.net.InetSocketAddress;
+import java.net.ServerSocket;
+import java.net.Socket;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
import java.util.Properties;
-import javax.management.MBeanServer;
-
+import org.jboss.osgi.common.log.LogServiceTracker;
import org.jboss.osgi.spi.NotImplementedException;
import org.jboss.osgi.spi.logging.RemoteLogReaderService;
-import org.jboss.remoting.InvocationRequest;
-import org.jboss.remoting.InvokerLocator;
-import org.jboss.remoting.ServerInvocationHandler;
-import org.jboss.remoting.ServerInvoker;
-import org.jboss.remoting.callback.InvokerCallbackHandler;
-import org.jboss.remoting.transport.Connector;
import org.osgi.framework.BundleContext;
import org.osgi.service.log.LogEntry;
import org.osgi.service.log.LogListener;
+import org.osgi.service.log.LogService;
/**
* [TODO]
@@ -50,26 +50,29 @@
*/
public class RemoteLogReaderServiceImpl implements RemoteLogReaderService
{
+ private LogService log;
+
private String host;
private Integer port;
- private Connector connector;
-
- private List<LogListener> listeners = new ArrayList<LogListener>();
+ private RemoteLogReaderThread listenerThread;
+ private List<LogListener> logListeners = new ArrayList<LogListener>();
+
public RemoteLogReaderServiceImpl(BundleContext context, Properties props)
{
+ this.log = new LogServiceTracker(context);
this.host = props.getProperty(RemoteLogServiceActivator.REMOTE_LOG_HOST);
this.port = new Integer(props.getProperty(RemoteLogServiceActivator.REMOTE_LOG_PORT));
}
public void addLogListener(LogListener listener)
{
- listeners.add(listener);
+ logListeners.add(listener);
}
public void removeLogListener(LogListener listener)
{
- listeners.remove(listener);
+ logListeners.remove(listener);
}
public Enumeration<LogEntry> getLog()
@@ -79,77 +82,95 @@
public void start()
{
- try
- {
- String locatorURI = "socket://" + host + ":" + port;
- InvokerLocator locator = new InvokerLocator(locatorURI);
- connector = new Connector(locator);
- connector.create();
-
- LogEntryInvocationHandler invocationHandler = new LogEntryInvocationHandler();
- connector.addInvocationHandler("remote-log", invocationHandler);
- connector.start(true);
- }
- catch (Throwable ex)
- {
- ex.printStackTrace();
- }
+ listenerThread = new RemoteLogReaderThread(host, new Integer(port));
+ listenerThread.start();
}
public void stop()
{
- try
+ if (listenerThread != null)
+ listenerThread.stopListener();
+ }
+
+ private class RemoteLogReaderThread extends Thread
+ {
+ private ServerSocket serverSocket;
+
+ public RemoteLogReaderThread(String host, int port)
{
- if (connector != null)
- connector.stop();
+ super("RemoteLogReaderListenerThread");
+ try
+ {
+ log.log(LogService.LOG_DEBUG, "RemoteLogReader: [host=" + host + ",port=" + port + "]");
+ serverSocket = new ServerSocket();
+ serverSocket.bind(new InetSocketAddress(host, port));
+ }
+ catch (IOException ex)
+ {
+ throw new IllegalStateException("Cannot create server socket", ex);
+ }
}
- catch (Throwable ex)
+
+ public void stopListener()
{
- ex.printStackTrace();
+ try
+ {
+ log.log(LogService.LOG_DEBUG, "Stop RemoteLogReaderListener");
+ serverSocket.close();
+ }
+ catch (IOException ex)
+ {
+ // ignore
+ }
}
- }
- /**
- * Simple invocation handler implementation.
- * This is the code that will be called with the invocation payload from the client.
- */
- class LogEntryInvocationHandler implements ServerInvocationHandler
- {
- public Object invoke(InvocationRequest invocation) throws Throwable
+ @Override
+ public void run()
{
- RemoteLogEntry remoteEntry = (RemoteLogEntry)invocation.getParameter();
- for (LogListener listener : listeners)
+ while (serverSocket.isClosed() == false)
{
+ Socket socket = null;
try
{
- listener.logged(remoteEntry);
+ socket = serverSocket.accept();
}
- catch (RuntimeException rte)
+ catch (IOException ex)
{
- System.out.println(rte.toString());
+ if (serverSocket.isClosed())
+ break;
}
+
+ if (socket != null)
+ {
+ try
+ {
+ InputStream socketIn = socket.getInputStream();
+ ObjectInputStream ois = new ObjectInputStream(socketIn);
+ RemoteLogEntry remoteEntry = (RemoteLogEntry)ois.readObject();
+ socketIn.close();
+
+ log.log(LogService.LOG_DEBUG, "Received: " + remoteEntry);
+
+ for (LogListener listener : logListeners)
+ {
+ try
+ {
+ listener.logged(remoteEntry);
+ }
+ catch (RuntimeException rte)
+ {
+ log.log(LogService.LOG_ERROR, rte.toString());
+ }
+ }
+
+ socket.close();
+ }
+ catch (Exception ex)
+ {
+ log.log(LogService.LOG_ERROR, "Cannot process request: " + ex);
+ }
+ }
}
- return null;
}
-
- public void addListener(InvokerCallbackHandler callbackHandler)
- {
- // NOOP as do not handling callback listeners
- }
-
- public void removeListener(InvokerCallbackHandler callbackHandler)
- {
- // NOOP as do not handling callback listeners
- }
-
- public void setMBeanServer(MBeanServer server)
- {
- // NOOP as do not need reference to MBeanServer for this handler
- }
-
- public void setInvoker(ServerInvoker invoker)
- {
- // NOOP as do not need reference back to the server invoker
- }
}
}
\ No newline at end of file
Modified: projects/jboss-osgi/trunk/bundles/remotelog/src/main/java/org/jboss/osgi/service/remotelog/internal/RemoteLogServiceActivator.java
===================================================================
--- projects/jboss-osgi/trunk/bundles/remotelog/src/main/java/org/jboss/osgi/service/remotelog/internal/RemoteLogServiceActivator.java 2009-05-30 20:48:33 UTC (rev 89575)
+++ projects/jboss-osgi/trunk/bundles/remotelog/src/main/java/org/jboss/osgi/service/remotelog/internal/RemoteLogServiceActivator.java 2009-05-30 21:09:53 UTC (rev 89576)
@@ -62,8 +62,8 @@
if (senderProp != null)
isSender = Boolean.valueOf(senderProp);
- String host = hostProp != null ? hostProp : "localhost";
- String port = portProp != null ? portProp : "5400";
+ String host = (hostProp != null ? hostProp : "localhost");
+ String port = (portProp != null ? portProp : "5400");
Properties props = new Properties();
props.put(REMOTE_LOG_HOST, host);
Modified: projects/jboss-osgi/trunk/runtime/felix/src/main/resources/osgi-deployers-jboss-beans.xml
===================================================================
--- projects/jboss-osgi/trunk/runtime/felix/src/main/resources/osgi-deployers-jboss-beans.xml 2009-05-30 20:48:33 UTC (rev 89575)
+++ projects/jboss-osgi/trunk/runtime/felix/src/main/resources/osgi-deployers-jboss-beans.xml 2009-05-30 21:09:53 UTC (rev 89576)
@@ -46,13 +46,6 @@
org.osgi.service.http;version=1.2,
org.osgi.service.log;version=1.3,
org.osgi.util.xml;version=1.0,
-
- <!-- needed by jboss-remoting -->
- org.apache.log4j,
- org.jboss.util,
- org.jboss.util.id,
- org.jboss.util.threadpool,
- org.jboss.util.propertyeditor,
</value>
</entry>
<!--
Modified: projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/capability/RemoteLogCapability.java
===================================================================
--- projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/capability/RemoteLogCapability.java 2009-05-30 20:48:33 UTC (rev 89575)
+++ projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/capability/RemoteLogCapability.java 2009-05-30 21:09:53 UTC (rev 89576)
@@ -42,7 +42,7 @@
Properties props = getProperties();
props.setProperty("org.jboss.osgi.service.remote.log.reader", "true");
- props.setProperty("rg.jboss.osgi.service.remote.log.host", System.getProperty("jboss.bind.address", "localhost"));
+ props.setProperty("org.jboss.osgi.service.remote.log.host", System.getProperty("jboss.bind.address", "localhost"));
props.setProperty("org.jboss.osgi.service.remote.log.port", "5400");
addBundle("bundles/jboss-osgi-remotelog.jar");
Modified: projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/internal/OSGiRuntimeImpl.java
===================================================================
--- projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/internal/OSGiRuntimeImpl.java 2009-05-30 20:48:33 UTC (rev 89575)
+++ projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/internal/OSGiRuntimeImpl.java 2009-05-30 21:09:53 UTC (rev 89576)
@@ -22,7 +22,6 @@
package org.jboss.osgi.spi.testing.internal;
import java.io.File;
-import java.io.FileInputStream;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
@@ -31,7 +30,8 @@
import java.util.List;
import java.util.Map;
import java.util.jar.Attributes;
-import java.util.jar.JarInputStream;
+import java.util.jar.JarFile;
+import java.util.jar.Manifest;
import javax.management.ObjectName;
import javax.naming.InitialContext;
@@ -235,10 +235,12 @@
try
{
File archiveFile = getTestHelper().getTestArchiveFile(location);
- JarInputStream jarInputStream = new JarInputStream(new FileInputStream(archiveFile));
- Attributes attribs = jarInputStream.getManifest().getMainAttributes();
+ JarFile jarFile = new JarFile(archiveFile);
+ Manifest manifest = jarFile.getManifest();
+ jarFile.close();
+
+ Attributes attribs = manifest.getMainAttributes();
symbolicName = attribs.getValue(Constants.BUNDLE_SYMBOLICNAME);
- jarInputStream.close();
}
catch (IOException ex)
{
Modified: projects/jboss-osgi/trunk/testsuite/example/src/test/java/org/jboss/test/osgi/example/http/HttpServiceTestCase.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/example/src/test/java/org/jboss/test/osgi/example/http/HttpServiceTestCase.java 2009-05-30 20:48:33 UTC (rev 89575)
+++ projects/jboss-osgi/trunk/testsuite/example/src/test/java/org/jboss/test/osgi/example/http/HttpServiceTestCase.java 2009-05-30 21:09:53 UTC (rev 89576)
@@ -57,7 +57,7 @@
runtime.addCapability(new ConfigAdminCapability());
runtime.addCapability(new HttpCapability());
- Thread.sleep(10000);
+ Thread.sleep(5000);
testBundle = runtime.installBundle("example-http.jar");
testBundle.start();
14 years, 11 months
JBoss-OSGI SVN: r89562 - in projects/jboss-osgi/trunk: runtime/felix/src/main/resources and 2 other directories.
by jboss-osgi-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2009-05-30 15:51:27 -0400 (Sat, 30 May 2009)
New Revision: 89562
Modified:
projects/jboss-osgi/trunk/runtime/equinox/src/main/resources/osgi-deployers-jboss-beans.xml
projects/jboss-osgi/trunk/runtime/felix/src/main/resources/osgi-deployers-jboss-beans.xml
projects/jboss-osgi/trunk/runtime/knopflerfish/src/main/resources/osgi-deployers-jboss-beans.xml
projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/capability/RemoteLogCapability.java
Log:
Fix RemoteLogCapability props
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-30 18:56:09 UTC (rev 89561)
+++ projects/jboss-osgi/trunk/runtime/equinox/src/main/resources/osgi-deployers-jboss-beans.xml 2009-05-30 19:51:27 UTC (rev 89562)
@@ -47,6 +47,7 @@
org.osgi.service.event;version=1.1,
org.osgi.service.http;version=1.2,
org.osgi.service.log;version=1.3,
+ org.osgi.util.xml;version=1.0,
<!-- core -->
org.osgi.framework;version=1.4,
Modified: projects/jboss-osgi/trunk/runtime/felix/src/main/resources/osgi-deployers-jboss-beans.xml
===================================================================
--- projects/jboss-osgi/trunk/runtime/felix/src/main/resources/osgi-deployers-jboss-beans.xml 2009-05-30 18:56:09 UTC (rev 89561)
+++ projects/jboss-osgi/trunk/runtime/felix/src/main/resources/osgi-deployers-jboss-beans.xml 2009-05-30 19:51:27 UTC (rev 89562)
@@ -45,7 +45,8 @@
org.osgi.service.event;version=1.1,
org.osgi.service.http;version=1.2,
org.osgi.service.log;version=1.3,
-
+ org.osgi.util.xml;version=1.0,
+
<!-- needed by jboss-remoting -->
org.apache.log4j,
org.jboss.util,
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-30 18:56:09 UTC (rev 89561)
+++ projects/jboss-osgi/trunk/runtime/knopflerfish/src/main/resources/osgi-deployers-jboss-beans.xml 2009-05-30 19:51:27 UTC (rev 89562)
@@ -46,6 +46,7 @@
org.osgi.service.event;version=1.1,
org.osgi.service.http;version=1.2,
org.osgi.service.log;version=1.3,
+ org.osgi.util.xml;version=1.0,
<!-- core -->
org.osgi.framework;version=1.4,
Modified: projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/capability/RemoteLogCapability.java
===================================================================
--- projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/capability/RemoteLogCapability.java 2009-05-30 18:56:09 UTC (rev 89561)
+++ projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/capability/RemoteLogCapability.java 2009-05-30 19:51:27 UTC (rev 89562)
@@ -42,8 +42,8 @@
Properties props = getProperties();
props.setProperty("org.jboss.osgi.service.remote.log.reader", "true");
- props.setProperty("org.jboss.osgi.remote.log.host", System.getProperty("jboss.bind.address", "localhost"));
- props.setProperty("org.jboss.osgi.remote.log.port", "5400");
+ props.setProperty("rg.jboss.osgi.service.remote.log.host", System.getProperty("jboss.bind.address", "localhost"));
+ props.setProperty("org.jboss.osgi.service.remote.log.port", "5400");
addBundle("bundles/jboss-osgi-remotelog.jar");
}
14 years, 11 months
JBoss-OSGI SVN: r89561 - in projects/jboss-osgi/trunk: runtime/equinox/src/main/resources and 4 other directories.
by jboss-osgi-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2009-05-30 14:56:09 -0400 (Sat, 30 May 2009)
New Revision: 89561
Modified:
projects/jboss-osgi/trunk/integration/jbossas/src/main/java/org/jboss/osgi/jbossas/integration/ManagementServiceBean.java
projects/jboss-osgi/trunk/runtime/equinox/src/main/resources/osgi-deployers-jboss-beans.xml
projects/jboss-osgi/trunk/runtime/felix/src/main/resources/osgi-deployers-jboss-beans.xml
projects/jboss-osgi/trunk/runtime/knopflerfish/src/main/resources/osgi-deployers-jboss-beans.xml
projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/capability/Capability.java
projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/capability/HuskyCapability.java
projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/capability/JAXBCapability.java
projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/capability/MicrocontainerCapability.java
projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/capability/XMLBindingCapability.java
projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/internal/OSGiRuntimeImpl.java
Log:
Support nested capabilities
Modified: projects/jboss-osgi/trunk/integration/jbossas/src/main/java/org/jboss/osgi/jbossas/integration/ManagementServiceBean.java
===================================================================
--- projects/jboss-osgi/trunk/integration/jbossas/src/main/java/org/jboss/osgi/jbossas/integration/ManagementServiceBean.java 2009-05-30 18:19:34 UTC (rev 89560)
+++ projects/jboss-osgi/trunk/integration/jbossas/src/main/java/org/jboss/osgi/jbossas/integration/ManagementServiceBean.java 2009-05-30 18:56:09 UTC (rev 89561)
@@ -25,6 +25,7 @@
import javax.management.MBeanServer;
+import org.jboss.logging.Logger;
import org.osgi.framework.BundleContext;
/**
@@ -35,6 +36,8 @@
*/
public class ManagementServiceBean
{
+ private static Logger log = Logger.getLogger(ManagementServiceBean.class);
+
private MBeanServer mbeanServer;
private BundleContext context;
@@ -50,6 +53,8 @@
public void start()
{
+ // Register the MBeanServer
context.registerService(MBeanServer.class.getName(), mbeanServer, null);
+ log.debug("MBeanServer registered");
}
}
\ 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-30 18:19:34 UTC (rev 89560)
+++ projects/jboss-osgi/trunk/runtime/equinox/src/main/resources/osgi-deployers-jboss-beans.xml 2009-05-30 18:56:09 UTC (rev 89561)
@@ -32,6 +32,7 @@
org.xml.sax,
<!-- jboss -->
+ org.jboss.osgi.common.log;version=1.0,
org.jboss.osgi.common.service;version=1.0,
org.jboss.osgi.jbossas.integration,
org.jboss.osgi.spi;version=1.0,
Modified: projects/jboss-osgi/trunk/runtime/felix/src/main/resources/osgi-deployers-jboss-beans.xml
===================================================================
--- projects/jboss-osgi/trunk/runtime/felix/src/main/resources/osgi-deployers-jboss-beans.xml 2009-05-30 18:19:34 UTC (rev 89560)
+++ projects/jboss-osgi/trunk/runtime/felix/src/main/resources/osgi-deployers-jboss-beans.xml 2009-05-30 18:56:09 UTC (rev 89561)
@@ -30,6 +30,7 @@
org.jboss.logging,
<!-- jboss -->
+ org.jboss.osgi.common.log;version=1.0,
org.jboss.osgi.common.service;version=1.0,
org.jboss.osgi.jbossas.integration,
org.jboss.osgi.spi;version=1.0,
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-30 18:19:34 UTC (rev 89560)
+++ projects/jboss-osgi/trunk/runtime/knopflerfish/src/main/resources/osgi-deployers-jboss-beans.xml 2009-05-30 18:56:09 UTC (rev 89561)
@@ -31,6 +31,7 @@
org.xml.sax,
<!-- jboss -->
+ org.jboss.osgi.common.log;version=1.0,
org.jboss.osgi.common.service;version=1.0,
org.jboss.osgi.jbossas.integration,
org.jboss.osgi.spi;version=1.0,
Modified: projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/capability/Capability.java
===================================================================
--- projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/capability/Capability.java 2009-05-30 18:19:34 UTC (rev 89560)
+++ projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/capability/Capability.java 2009-05-30 18:56:09 UTC (rev 89561)
@@ -39,6 +39,8 @@
{
private String serviceName;
private Properties props = new Properties();
+
+ private Set<Capability> dependencies = new LinkedHashSet<Capability>();
private Set<String> bundles = new LinkedHashSet<String>();
public Capability(String serviceName)
@@ -61,14 +63,16 @@
bundles.add(bundle);
}
- protected void addBundles(List<String> bundles)
+ protected void addDependency(Capability dependency)
{
- for (String bundle : bundles)
- {
- addBundle(bundle);
- }
+ dependencies.add(dependency);
}
+ public List<Capability> getDependencies()
+ {
+ return new ArrayList<Capability>(dependencies);
+ }
+
public List<String> getBundles()
{
return new ArrayList<String>(bundles);
Modified: projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/capability/HuskyCapability.java
===================================================================
--- projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/capability/HuskyCapability.java 2009-05-30 18:19:34 UTC (rev 89560)
+++ projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/capability/HuskyCapability.java 2009-05-30 18:56:09 UTC (rev 89561)
@@ -38,7 +38,7 @@
// [TODO] make this a reference
super("org.jboss.osgi.husky.runtime.Connector");
- addBundles(new JMXCapability().getBundles());
+ addDependency(new JMXCapability());
addBundle("bundles/jboss-osgi-husky.jar");
}
}
\ No newline at end of file
Modified: projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/capability/JAXBCapability.java
===================================================================
--- projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/capability/JAXBCapability.java 2009-05-30 18:19:34 UTC (rev 89560)
+++ projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/capability/JAXBCapability.java 2009-05-30 18:56:09 UTC (rev 89561)
@@ -37,7 +37,7 @@
// [TODO] make this a reference
super("org.jboss.osgi.common.service.JAXBService");
- addBundles(new XMLParserCapability().getBundles());
+ addDependency(new XMLParserCapability());
addBundle("bundles/jboss-osgi-jaxb.jar");
}
}
\ No newline at end of file
Modified: projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/capability/MicrocontainerCapability.java
===================================================================
--- projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/capability/MicrocontainerCapability.java 2009-05-30 18:19:34 UTC (rev 89560)
+++ projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/capability/MicrocontainerCapability.java 2009-05-30 18:56:09 UTC (rev 89561)
@@ -38,8 +38,8 @@
// [TODO] make this a reference
super("org.jboss.osgi.common.service.MicrocontainerService");
- addBundles(new JMXCapability().getBundles());
- addBundles(new XMLBindingCapability().getBundles());
+ addDependency(new JMXCapability());
+ addDependency(new XMLBindingCapability());
addBundle("bundles/jboss-osgi-microcontainer.jar");
}
}
\ No newline at end of file
Modified: projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/capability/XMLBindingCapability.java
===================================================================
--- projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/capability/XMLBindingCapability.java 2009-05-30 18:19:34 UTC (rev 89560)
+++ projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/capability/XMLBindingCapability.java 2009-05-30 18:56:09 UTC (rev 89561)
@@ -38,7 +38,7 @@
// [TODO] make this a reference
super ("org.jboss.osgi.common.service.XMLBindingService");
- addBundles(new JAXBCapability().getBundles());
+ addDependency(new JAXBCapability());
addBundle("bundles/jboss-osgi-common-core.jar");
addBundle("bundles/jboss-osgi-xml-binding.jar");
}
Modified: projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/internal/OSGiRuntimeImpl.java
===================================================================
--- projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/internal/OSGiRuntimeImpl.java 2009-05-30 18:19:34 UTC (rev 89560)
+++ projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/testing/internal/OSGiRuntimeImpl.java 2009-05-30 18:56:09 UTC (rev 89561)
@@ -88,6 +88,11 @@
public void addCapability(Capability capability) throws BundleException
{
+ // Add dependent capabilies
+ for (Capability dependency : capability.getDependencies())
+ addCapability(dependency);
+
+ // Check if the service provided by the capability exists already
OSGiServiceReference sref = getServiceReference(capability.getServiceName());
if (sref == null)
{
@@ -140,6 +145,13 @@
}
}
}
+
+ List<Capability> dependencies = capability.getDependencies();
+ Collections.reverse(dependencies);
+
+ // Remove dependent capabilities
+ for (Capability dependency : dependencies)
+ removeCapability(dependency);
}
public void startLogEntryTracking(LogEntryCache logEntryCache)
14 years, 11 months
JBoss-OSGI SVN: r89560 - in projects/jboss-osgi/trunk/runtime: felix/src/main/resources and 1 other directories.
by jboss-osgi-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2009-05-30 14:19:34 -0400 (Sat, 30 May 2009)
New Revision: 89560
Modified:
projects/jboss-osgi/trunk/runtime/equinox/src/main/resources/osgi-deployers-jboss-beans.xml
projects/jboss-osgi/trunk/runtime/felix/src/main/resources/osgi-deployers-jboss-beans.xml
projects/jboss-osgi/trunk/runtime/knopflerfish/src/main/resources/osgi-deployers-jboss-beans.xml
Log:
compendium is now system
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-30 15:46:31 UTC (rev 89559)
+++ projects/jboss-osgi/trunk/runtime/equinox/src/main/resources/osgi-deployers-jboss-beans.xml 2009-05-30 18:19:34 UTC (rev 89560)
@@ -70,7 +70,12 @@
<entry><key>org.jboss.osgi.husky.runtime.connector.host</key><value>${jboss.bind.address}</value></entry>
<entry><key>org.jboss.osgi.husky.runtime.connector.port</key><value>5401</value></entry>
</map>
+ <property name="autoStart">
+ <list elementClass="java.net.URL">
+ <value>${jboss.server.home.url}/deploy/osgi/org.apache.felix.log.jar</value>
+ </list>
</property>
+ </property>
</bean>
<!-- The Framework Management -->
Modified: projects/jboss-osgi/trunk/runtime/felix/src/main/resources/osgi-deployers-jboss-beans.xml
===================================================================
--- projects/jboss-osgi/trunk/runtime/felix/src/main/resources/osgi-deployers-jboss-beans.xml 2009-05-30 15:46:31 UTC (rev 89559)
+++ projects/jboss-osgi/trunk/runtime/felix/src/main/resources/osgi-deployers-jboss-beans.xml 2009-05-30 18:19:34 UTC (rev 89560)
@@ -71,11 +71,6 @@
<entry><key>org.jboss.osgi.husky.runtime.connector.port</key><value>5401</value></entry>
</map>
</property>
- <property name="autoInstall">
- <list elementClass="java.net.URL">
- <value>${jboss.server.home.url}/deploy/osgi/org.osgi.compendium.jar</value>
- </list>
- </property>
<property name="autoStart">
<list elementClass="java.net.URL">
<value>${jboss.server.home.url}/deploy/osgi/org.apache.felix.log.jar</value>
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-30 15:46:31 UTC (rev 89559)
+++ projects/jboss-osgi/trunk/runtime/knopflerfish/src/main/resources/osgi-deployers-jboss-beans.xml 2009-05-30 18:19:34 UTC (rev 89560)
@@ -71,7 +71,12 @@
<entry><key>org.jboss.osgi.husky.runtime.connector.host</key><value>${jboss.bind.address}</value></entry>
<entry><key>org.jboss.osgi.husky.runtime.connector.port</key><value>5401</value></entry>
</map>
+ <property name="autoStart">
+ <list elementClass="java.net.URL">
+ <value>${jboss.server.home.url}/deploy/osgi/org.apache.felix.log.jar</value>
+ </list>
</property>
+ </property>
</bean>
<!-- The Framework Management -->
14 years, 11 months
JBoss-OSGI SVN: r89559 - projects/jboss-osgi/trunk/runtime/knopflerfish/src/main/resources.
by jboss-osgi-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2009-05-30 11:46:31 -0400 (Sat, 30 May 2009)
New Revision: 89559
Modified:
projects/jboss-osgi/trunk/runtime/knopflerfish/src/main/resources/osgi-deployers-jboss-beans.xml
Log:
no trailing ',' for knopflerfish
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-30 15:40:00 UTC (rev 89558)
+++ projects/jboss-osgi/trunk/runtime/knopflerfish/src/main/resources/osgi-deployers-jboss-beans.xml 2009-05-30 15:46:31 UTC (rev 89559)
@@ -49,7 +49,9 @@
<!-- core -->
org.osgi.framework;version=1.4,
org.osgi.service.packageadmin;version=1.2,
- org.osgi.service.startlevel;version=1.1,
+ org.osgi.service.startlevel;version=1.1
+
+ <!-- no trailing ',' -->
</value>
</entry>
<!--
14 years, 11 months
JBoss-OSGI SVN: r89558 - in projects/jboss-osgi/trunk/runtime: knopflerfish/src/main/resources and 1 other directory.
by jboss-osgi-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2009-05-30 11:40:00 -0400 (Sat, 30 May 2009)
New Revision: 89558
Modified:
projects/jboss-osgi/trunk/runtime/equinox/src/main/resources/osgi-deployers-jboss-beans.xml
projects/jboss-osgi/trunk/runtime/knopflerfish/src/main/resources/osgi-deployers-jboss-beans.xml
Log:
fix typos
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-30 15:35:00 UTC (rev 89557)
+++ projects/jboss-osgi/trunk/runtime/equinox/src/main/resources/osgi-deployers-jboss-beans.xml 2009-05-30 15:40:00 UTC (rev 89558)
@@ -29,7 +29,7 @@
<!-- system -->
javax.management,
javax.xml.parsers,
- org.xml.sax
+ org.xml.sax,
<!-- jboss -->
org.jboss.osgi.common.service;version=1.0,
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-30 15:35:00 UTC (rev 89557)
+++ projects/jboss-osgi/trunk/runtime/knopflerfish/src/main/resources/osgi-deployers-jboss-beans.xml 2009-05-30 15:40:00 UTC (rev 89558)
@@ -28,7 +28,7 @@
<!-- system -->
javax.management,
javax.xml.parsers,
- org.xml.sax
+ org.xml.sax,
<!-- jboss -->
org.jboss.osgi.common.service;version=1.0,
14 years, 11 months
JBoss-OSGI SVN: r89557 - projects/jboss-osgi/trunk/husky/testsuite.
by jboss-osgi-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2009-05-30 11:35:00 -0400 (Sat, 30 May 2009)
New Revision: 89557
Modified:
projects/jboss-osgi/trunk/husky/testsuite/pom.xml
Log:
Disable husky testing on equinox
Modified: projects/jboss-osgi/trunk/husky/testsuite/pom.xml
===================================================================
--- projects/jboss-osgi/trunk/husky/testsuite/pom.xml 2009-05-30 15:25:23 UTC (rev 89556)
+++ projects/jboss-osgi/trunk/husky/testsuite/pom.xml 2009-05-30 15:35:00 UTC (rev 89557)
@@ -123,6 +123,30 @@
<profiles>
<!--
+ Name: framework-equinox
+ Descr: Setup for Equinox framework integration testing
+ -->
+ <profile>
+ <id>framework-equinox</id>
+ <activation>
+ <property>
+ <name>framework</name>
+ <value>equinox</value>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <skipTests>true</skipTests>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ <!--
Name: framework-knopflerfish
Descr: Setup for Knopflerfish framework integration testing
-->
14 years, 11 months
JBoss-OSGI SVN: r89556 - projects/jboss-osgi/trunk/distribution/src/main/resources/installer.
by jboss-osgi-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2009-05-30 11:25:23 -0400 (Sat, 30 May 2009)
New Revision: 89556
Modified:
projects/jboss-osgi/trunk/distribution/src/main/resources/installer/install-definition.xml
Log:
Remove empty fileset definition. It installs all files
Modified: projects/jboss-osgi/trunk/distribution/src/main/resources/installer/install-definition.xml
===================================================================
--- projects/jboss-osgi/trunk/distribution/src/main/resources/installer/install-definition.xml 2009-05-30 15:19:38 UTC (rev 89555)
+++ projects/jboss-osgi/trunk/distribution/src/main/resources/installer/install-definition.xml 2009-05-30 15:25:23 UTC (rev 89556)
@@ -298,8 +298,6 @@
<fileset condition="isFelix" dir="@{deploy.artifacts.dir}/resources/jboss-osgi-runtime-felix" targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deployers/osgi.deployer/META-INF" override="true">
<include name="osgi-deployers-jboss-beans.xml" />
</fileset>
- <fileset condition="isFelix" dir="@{deploy.artifacts.dir}/lib" targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deploy/osgi" override="true">
- </fileset>
<!-- Equinox Integration -->
@@ -312,8 +310,6 @@
<fileset condition="isEquinox" dir="@{deploy.artifacts.dir}/resources/jboss-osgi-runtime-equinox" targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deployers/osgi.deployer/META-INF" override="true">
<include name="osgi-deployers-jboss-beans.xml" />
</fileset>
- <fileset condition="isEquinox" dir="@{deploy.artifacts.dir}/lib" targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deploy/osgi" override="true">
- </fileset>
<!-- Knopflerfish Integration -->
@@ -325,8 +321,6 @@
<fileset condition="isKnopflerfish" dir="@{deploy.artifacts.dir}/resources/jboss-osgi-runtime-knopflerfish" targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deployers/osgi.deployer/META-INF" override="true">
<include name="osgi-deployers-jboss-beans.xml" />
</fileset>
- <fileset condition="isKnopflerfish" dir="@{deploy.artifacts.dir}/lib" targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deploy/osgi" override="true">
- </fileset>
</pack>
14 years, 11 months