Author: thomas.diesler(a)jboss.com
Date: 2009-04-30 09:12:46 -0400 (Thu, 30 Apr 2009)
New Revision: 88067
Removed:
projects/jboss-osgi/trunk/bundle/blueprint/src/test/java/org/jboss/test/osgi/blueprint/deployment/
projects/jboss-osgi/trunk/bundle/deployment/
Modified:
projects/jboss-osgi/trunk/bundle/blueprint/pom.xml
projects/jboss-osgi/trunk/bundle/blueprint/scripts/assembly-bundles.xml
projects/jboss-osgi/trunk/bundle/blueprint/src/test/java/org/jboss/test/osgi/blueprint/mcservice/MicrocontainerServiceTestCase.java
projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/basic-felix-framework.properties
projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/jboss-osgi-framework.properties
projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/log4j.xml
projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/mcservice/mcservice-bundle.bnd
projects/jboss-osgi/trunk/bundle/microcontainer/pom.xml
projects/jboss-osgi/trunk/bundle/microcontainer/src/main/java/org/jboss/osgi/microcontainer/internal/MicrocontainerServiceImpl.java
projects/jboss-osgi/trunk/bundle/microcontainer/src/main/resources/META-INF/base-deployers-beans.xml
projects/jboss-osgi/trunk/bundle/pom.xml
projects/jboss-osgi/trunk/pom.xml
projects/jboss-osgi/trunk/runtime/deployer/src/main/java/org/jboss/osgi/deployer/BundleRealDeployer.java
projects/jboss-osgi/trunk/runtime/equinox/src/test/resources/log4j.xml
projects/jboss-osgi/trunk/runtime/felix/src/test/resources/log4j.xml
projects/jboss-osgi/trunk/runtime/knopflerfish/src/test/resources/log4j.xml
projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/junit/IntegrationTestHelper.java
projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/junit/OSGiTestHelper.java
projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/junit/OSGiTestSetup.java
projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/management/ManagedFramework.java
projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/management/ManagedFrameworkMBean.java
projects/jboss-osgi/trunk/testsuite/example/src/test/resources/log4j.xml
projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/log4j.xml
Log:
Bundle deployment through MC service - ok
Modified: projects/jboss-osgi/trunk/bundle/blueprint/pom.xml
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/pom.xml 2009-04-30 12:37:24 UTC (rev
88066)
+++ projects/jboss-osgi/trunk/bundle/blueprint/pom.xml 2009-04-30 13:12:46 UTC (rev
88067)
@@ -1,7 +1,7 @@
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
- <name>JBossOSGi - Bundle Blueprint Service</name>
+ <name>JBossOSGi - Bundle Blueprint</name>
<groupId>org.jboss.osgi.bundles</groupId>
<artifactId>jboss-osgi-blueprint</artifactId>
@@ -60,12 +60,6 @@
</dependency>
<dependency>
<groupId>org.jboss.osgi.bundles</groupId>
- <artifactId>jboss-osgi-deployment</artifactId>
- <version>${version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.osgi.bundles</groupId>
<artifactId>jboss-osgi-jmx</artifactId>
<version>${version}</version>
<scope>provided</scope>
Modified: projects/jboss-osgi/trunk/bundle/blueprint/scripts/assembly-bundles.xml
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/scripts/assembly-bundles.xml 2009-04-30
12:37:24 UTC (rev 88066)
+++ projects/jboss-osgi/trunk/bundle/blueprint/scripts/assembly-bundles.xml 2009-04-30
13:12:46 UTC (rev 88067)
@@ -20,7 +20,6 @@
<include>*:org.osgi.compendium:jar</include>
<include>*:jaxb-bundle:jar</include>
<include>*:jboss-osgi-common:jar</include>
- <include>*:jboss-osgi-deployment:jar</include>
<include>*:jboss-osgi-logging:jar</include>
<include>*:jboss-osgi-microcontainer:jar</include>
<include>*:jboss-osgi-jmx:jar</include>
Modified:
projects/jboss-osgi/trunk/bundle/blueprint/src/test/java/org/jboss/test/osgi/blueprint/mcservice/MicrocontainerServiceTestCase.java
===================================================================
---
projects/jboss-osgi/trunk/bundle/blueprint/src/test/java/org/jboss/test/osgi/blueprint/mcservice/MicrocontainerServiceTestCase.java 2009-04-30
12:37:24 UTC (rev 88066)
+++
projects/jboss-osgi/trunk/bundle/blueprint/src/test/java/org/jboss/test/osgi/blueprint/mcservice/MicrocontainerServiceTestCase.java 2009-04-30
13:12:46 UTC (rev 88067)
@@ -23,20 +23,26 @@
//$Id$
+import static org.jboss.osgi.microcontainer.MicrocontainerService.BEAN_KERNEL;
+import static org.jboss.osgi.microcontainer.MicrocontainerService.BEAN_MAIN_DEPLOYER;
+import static org.jboss.osgi.microcontainer.MicrocontainerService.BEAN_MBEAN_SERVER;
+import static
org.jboss.osgi.microcontainer.MicrocontainerService.BEAN_SYSTEM_BUNDLE_CONTEXT;
import static
org.jboss.osgi.microcontainer.MicrocontainerServiceMBean.MBEAN_MICROCONTAINER_SERVICE;
-import static
org.jboss.osgi.microcontainer.MicrocontainerService.BEAN_SYSTEM_BUNDLE_CONTEXT;
-import static org.jboss.osgi.microcontainer.MicrocontainerService.BEAN_MBEAN_SERVER;
-import static org.jboss.osgi.microcontainer.MicrocontainerService.BEAN_MAIN_DEPLOYER;
-import static org.jboss.osgi.microcontainer.MicrocontainerService.BEAN_KERNEL;
+import static
org.jboss.osgi.spi.management.ManagedFrameworkMBean.MBEAN_MANAGED_FRAMEWORK;
import java.util.List;
+import java.util.Set;
+import javax.management.ObjectName;
+
+import junit.framework.Test;
+
import org.jboss.osgi.microcontainer.MicrocontainerServiceMBean;
import org.jboss.osgi.spi.framework.OSGiFramework;
+import org.jboss.osgi.spi.junit.OSGiTestSetup;
import org.jboss.osgi.spi.management.MBeanProxy;
+import org.jboss.osgi.spi.management.ManagedFrameworkMBean;
import org.jboss.test.osgi.blueprint.BlueprintTest;
-import org.osgi.framework.Bundle;
-import org.osgi.framework.BundleContext;
/**
* A test that checks whether the MicrocontainerService can be accessed
@@ -46,32 +52,58 @@
*/
public class MicrocontainerServiceTestCase extends BlueprintTest
{
- public void testServiceAccess() throws Exception
+ private static OSGiFramework framework;
+
+ public static Test suite()
{
- OSGiFramework framework = getBootstrapProvider().getFramework();
- try
+ OSGiTestSetup setup = new OSGiTestSetup(MicrocontainerServiceTestCase.class)
{
- BundleContext sysContext = framework.getSystemBundleContext();
-
- Bundle bundle = installBundle(sysContext, "mcservice-bundle.jar",
true);
- assertEquals("Test bundle ACTIVE", Bundle.ACTIVE, bundle.getState());
-
- MicrocontainerServiceMBean mcService =
MBeanProxy.get(MicrocontainerServiceMBean.class, MBEAN_MICROCONTAINER_SERVICE,
getMBeanServer());
- List<String> registeredBeans = mcService.getRegisteredBeans();
- assertTrue("MicrocontainerService registered with MC",
registeredBeans.contains(BEAN_SYSTEM_BUNDLE_CONTEXT));
- assertTrue("MainDeployer registered with MC",
registeredBeans.contains(BEAN_MAIN_DEPLOYER));
- assertTrue("MBeanServer registered with MC",
registeredBeans.contains(BEAN_MBEAN_SERVER));
- assertTrue("Kernel registered with MC",
registeredBeans.contains(BEAN_KERNEL));
- }
- finally
- {
- framework.stop();
- }
+ @Override
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+ framework = getBootstrapProvider().getFramework();
+ framework.start();
+ }
+
+ @Override
+ protected void tearDown() throws Exception
+ {
+ framework.stop();
+ super.tearDown();
+ }
+ };
+ return setup;
}
-
+
+ public void testServiceAccess() throws Exception
+ {
+ MicrocontainerServiceMBean mcService =
MBeanProxy.get(MicrocontainerServiceMBean.class, MBEAN_MICROCONTAINER_SERVICE,
getMBeanServer());
+ List<String> registeredBeans = mcService.getRegisteredBeans();
+ assertTrue("MicrocontainerService registered with MC",
registeredBeans.contains(BEAN_SYSTEM_BUNDLE_CONTEXT));
+ assertTrue("MainDeployer registered with MC",
registeredBeans.contains(BEAN_MAIN_DEPLOYER));
+ assertTrue("MBeanServer registered with MC",
registeredBeans.contains(BEAN_MBEAN_SERVER));
+ assertTrue("Kernel registered with MC",
registeredBeans.contains(BEAN_KERNEL));
+ }
+
+ /**
+ * Test whether the bundle can be deployed through the MicrocontainerServiceMBean
+ */
+ public void testBundleDeployment() throws Exception
+ {
+ MicrocontainerServiceMBean mcService =
MBeanProxy.get(MicrocontainerServiceMBean.class, MBEAN_MICROCONTAINER_SERVICE,
getMBeanServer());
+ mcService.deploy(getTestArchiveURL("mcservice-bundle.jar"));
+
+ ManagedFrameworkMBean frameworkMBean = MBeanProxy.get(ManagedFrameworkMBean.class,
MBEAN_MANAGED_FRAMEWORK, getMBeanServer());
+ Set<ObjectName> bundles = frameworkMBean.getBundles();
+ assertTrue("Managed bundle registered",
bundles.toString().indexOf("jboss.osgi:bundle=mcservice-bundle") > 0);
+
+ mcService.undeploy(getTestArchiveURL("mcservice-bundle.jar"));
+}
+
public void testBeansDeployment() throws Exception
{
- //MicrocontainerServiceMBean mcService =
MBeanProxy.get(MicrocontainerServiceMBean.class, MBEAN_MICROCONTAINER_SERVICE,
getMBeanServer());
- //mcService.deploy(getTestArchiveURL("mcservice-beans.jar"));
+ // MicrocontainerServiceMBean mcService =
MBeanProxy.get(MicrocontainerServiceMBean.class, MBEAN_MICROCONTAINER_SERVICE,
getMBeanServer());
+ // mcService.deploy(getTestArchiveURL("mcservice-beans.jar"));
}
}
\ No newline at end of file
Modified:
projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/basic-felix-framework.properties
===================================================================
---
projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/basic-felix-framework.properties 2009-04-30
12:37:24 UTC (rev 88066)
+++
projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/basic-felix-framework.properties 2009-04-30
13:12:46 UTC (rev 88067)
@@ -21,5 +21,6 @@
framework.autoStart=\
file://${test.archive.directory}/bundles/org.apache.felix.log.jar \
file://${test.archive.directory}/bundles/jboss-osgi-common.jar \
- file://${test.archive.directory}/bundles/jboss-osgi-logging.jar
+ file://${test.archive.directory}/bundles/jboss-osgi-logging.jar \
+ file://${test.archive.directory}/bundles/jboss-osgi-jmx.jar
\ No newline at end of file
Modified:
projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/jboss-osgi-framework.properties
===================================================================
---
projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/jboss-osgi-framework.properties 2009-04-30
12:37:24 UTC (rev 88066)
+++
projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/jboss-osgi-framework.properties 2009-04-30
13:12:46 UTC (rev 88067)
@@ -13,7 +13,13 @@
framework.prop.org.osgi.framework.system.packages.extra=\
org.jboss.logging, \
org.jboss.osgi.spi, \
- org.jboss.osgi.spi.management
+ org.jboss.osgi.spi.management, \
+ org.jboss.virtual, \
+ org.jboss.virtual.plugins.registry, \
+ org.jboss.virtual.plugins.context.jar, \
+ org.jboss.virtual.plugins.vfs.helpers, \
+ org.jboss.net.protocol, \
+ org.jboss.virtual.protocol
# Bundles that need to be installed with the Framework automatically
framework.autoInstall=\
@@ -28,6 +34,6 @@
file://${test.archive.directory}/bundles/jbossxb-bundle.jar \
file://${test.archive.directory}/bundles/jboss-osgi-common.jar \
file://${test.archive.directory}/bundles/jboss-osgi-logging.jar \
- file://${test.archive.directory}/bundles/jboss-osgi-microcontainer.jar \
- file://${test.archive.directory}/bundles/jboss-osgi-jmx.jar
+ file://${test.archive.directory}/bundles/jboss-osgi-jmx.jar \
+ file://${test.archive.directory}/bundles/jboss-osgi-microcontainer.jar
\ No newline at end of file
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/log4j.xml
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/log4j.xml 2009-04-30
12:37:24 UTC (rev 88066)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/log4j.xml 2009-04-30
13:12:46 UTC (rev 88067)
@@ -32,37 +32,11 @@
<!-- Limit categories -->
<!-- ================ -->
- <category name="org.hibernate">
- <priority value="INFO" />
- </category>
-
- <!-- hide optimistic locking failures
- <category
name="org.hibernate.event.def.AbstractFlushingEventListener">
- <priority value="FATAL" />
- </category>
- -->
-
- <!-- hide proxy narrowing warns -->
- <category
name="org.hibernate.engine.StatefulPersistenceContext.ProxyWarnLog">
- <priority value="ERROR" />
- </category>
-
- <!-- show SQL DML statements as they are executed -->
- <category name="org.hibernate.SQL">
- <priority value="DEBUG" />
- </category>
-
- <!-- show JDBC parameters
- <category name="org.hibernate.type">
+ <!-- Show jboss deployer tracesraces -->
+ <category name="org.jboss.deployers">
<priority value="TRACE" />
</category>
- -->
- <!-- hide httpclient wire dumps -->
- <category name="httpclient.wire.header">
- <priority value="INFO" />
- </category>
-
<!-- ======================= -->
<!-- Setup the Root category -->
<!-- ======================= -->
Modified:
projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/mcservice/mcservice-bundle.bnd
===================================================================
---
projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/mcservice/mcservice-bundle.bnd 2009-04-30
12:37:24 UTC (rev 88066)
+++
projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/mcservice/mcservice-bundle.bnd 2009-04-30
13:12:46 UTC (rev 88067)
@@ -1,6 +1,6 @@
# bnd build -classpath target/test-classes -output target/test-libs/mcservice-bundle.jar
src/test/resources/mcservice/mcservice-bundle.bnd
-Bundle-SymbolicName: mcservice-test
+Bundle-SymbolicName: mcservice-bundle
Bundle-Activator: org.jboss.test.osgi.blueprint.mcservice.bundle.ServiceActivator
Export-Package: org.jboss.test.osgi.blueprint.mcservice.bundle
Import-Package: org.jboss.osgi.microcontainer, org.osgi.framework
Modified: projects/jboss-osgi/trunk/bundle/microcontainer/pom.xml
===================================================================
--- projects/jboss-osgi/trunk/bundle/microcontainer/pom.xml 2009-04-30 12:37:24 UTC (rev
88066)
+++ projects/jboss-osgi/trunk/bundle/microcontainer/pom.xml 2009-04-30 13:12:46 UTC (rev
88067)
@@ -22,6 +22,11 @@
<artifactId>jboss-osgi-spi</artifactId>
<version>${version}</version>
</dependency>
+ <dependency>
+ <groupId>org.jboss.osgi</groupId>
+ <artifactId>jboss-osgi-runtime-deployer</artifactId>
+ <version>${version}</version>
+ </dependency>
<dependency>
<groupId>org.jboss.microcontainer</groupId>
@@ -111,6 +116,7 @@
org.jboss.osgi.spi,
org.jboss.reflect.*,
org.jboss.util.*,
+ org.jboss.virtual*,
org.jboss.xb.*,
<!-- optional -->
@@ -139,11 +145,10 @@
jboss-managed;inline=false,
jboss-metatype;inline=false,
jboss-mdr;inline=false,
+ jboss-osgi-runtime-deployer;inline=false,
jboss-kernel;inline=false,
- jboss-vfs;inline=false,
</Embed-Dependency>
<_exportcontents>
- org.jboss.virtual*,
org.jboss.dependency*,
org.jboss.deployers*,
</_exportcontents>
Modified:
projects/jboss-osgi/trunk/bundle/microcontainer/src/main/java/org/jboss/osgi/microcontainer/internal/MicrocontainerServiceImpl.java
===================================================================
---
projects/jboss-osgi/trunk/bundle/microcontainer/src/main/java/org/jboss/osgi/microcontainer/internal/MicrocontainerServiceImpl.java 2009-04-30
12:37:24 UTC (rev 88066)
+++
projects/jboss-osgi/trunk/bundle/microcontainer/src/main/java/org/jboss/osgi/microcontainer/internal/MicrocontainerServiceImpl.java 2009-04-30
13:12:46 UTC (rev 88067)
@@ -56,7 +56,6 @@
import org.osgi.framework.ServiceReference;
import org.osgi.framework.ServiceRegistration;
import org.osgi.service.log.LogService;
-import org.osgi.util.tracker.ServiceTracker;
/**
* An OSGi Service the gives access to the Kernel.
@@ -68,7 +67,6 @@
{
private BundleContext context;
private EmbeddedBeansDeployer deployer;
- private MBeanServerTracker mbeanServerTracker;
private ServiceRegistration registration;
private LogService log;
@@ -80,6 +78,8 @@
this.context = context;
this.log = new LogServiceTracker(context);
+ VFS.init();
+
deployer = new EmbeddedBeansDeployer(context);
}
@@ -155,6 +155,9 @@
void start()
{
+ // Get the required MBeanServer
+ MBeanServer mbeanServer = getMBeanServer();
+
// Preregister some beans
try
{
@@ -164,6 +167,7 @@
controller.install(new AbstractControllerContext(BEAN_SYSTEM_BUNDLE_CONTEXT,
actions, null, context));
controller.install(new AbstractControllerContext(BEAN_KERNEL_CONTROLLER,
actions, null, controller));
controller.install(new AbstractControllerContext(BEAN_KERNEL, actions, null,
kernel));
+ controller.install(new AbstractControllerContext(BEAN_MBEAN_SERVER, actions,
null, mbeanServer));
URL deployersURL =
context.getBundle().getResource("META-INF/base-deployers-beans.xml");
deployer.deploy(deployersURL);
@@ -179,10 +183,9 @@
log.log(LogService.LOG_DEBUG, "Register MicrocontainerService");
registration = context.registerService(MicrocontainerService.class.getName(), this,
null);
-
- // Track the MBeanServer to register the MicrocontainerServiceMBean
- mbeanServerTracker = new MBeanServerTracker(context, this);
- mbeanServerTracker.open();
+
+ // Register the MicrocontainerServiceMBean
+ registerMicrocontainerServiceMBean(mbeanServer);
}
void stop()
@@ -190,91 +193,50 @@
if (registration != null)
{
log.log(LogService.LOG_DEBUG, "Unregister MicrocontainerService");
+ unregisterMicrocontainerServiceMBean(getMBeanServer());
registration.unregister();
registration = null;
}
}
- private void unregisterMBean(MBeanServer server)
+ private MBeanServer getMBeanServer()
{
- if (server.isRegistered(MBEAN_MICROCONTAINER_SERVICE))
- {
- try
- {
- log.log(LogService.LOG_DEBUG, "Unregister
MicrocontainerServiceMBean");
- server.unregisterMBean(MBEAN_MICROCONTAINER_SERVICE);
- }
- catch (Exception ex)
- {
- log.log(LogService.LOG_ERROR, "Cannot register
MicrocontainerServiceMBean", ex);
- }
- }
+ ServiceReference sref = context.getServiceReference(MBeanServer.class.getName());
+ if (sref == null)
+ throw new IllegalStateException("No MBeanServer registered");
+
+ MBeanServer mbeanServer = (MBeanServer)context.getService(sref);
+ return mbeanServer;
}
- class MBeanServerTracker extends ServiceTracker
+ private void registerMicrocontainerServiceMBean(MBeanServer server)
{
- private MicrocontainerServiceImpl mcService;
-
- public MBeanServerTracker(BundleContext context, MicrocontainerServiceImpl
mcService)
+ // Register the MicrocontainerServiceMBean
+ try
{
- super(context, MBeanServer.class.getName(), null);
- this.mcService = mcService;
+ log.log(LogService.LOG_DEBUG, "Register MicrocontainerServiceMBean");
+ StandardMBean mbean = new StandardMBean(this,
MicrocontainerServiceMBean.class);
+ server.registerMBean(mbean, MBEAN_MICROCONTAINER_SERVICE);
}
-
- public Object addingService(ServiceReference reference)
+ catch (Exception ex)
{
- MBeanServer server = (MBeanServer)super.addingService(reference);
-
- // Register the MicrocontainerServiceMBean
- try
- {
- log.log(LogService.LOG_DEBUG, "Register
MicrocontainerServiceMBean");
- StandardMBean mbean = new StandardMBean(mcService,
MicrocontainerServiceMBean.class);
- server.registerMBean(mbean, MBEAN_MICROCONTAINER_SERVICE);
- }
- catch (Exception ex)
- {
- throw new IllegalStateException("Cannot register
MicrocontainerServiceMBean", ex);
- }
-
- // Install the MBeanServer with the Kernel
- try
- {
- ControllerContextActions actions = new AbstractControllerContextActions(new
HashMap<ControllerState, ControllerContextAction>());
- mcService.getKernel().getController().install(new
AbstractControllerContext(BEAN_MBEAN_SERVER, actions, null, server));
- }
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (Throwable ex)
- {
- throw new IllegalStateException("Cannot register MC bean", ex);
- }
-
- return server;
+ throw new IllegalStateException("Cannot register
MicrocontainerServiceMBean", ex);
}
+ }
- @Override
- public void removedService(ServiceReference reference, Object service)
+ private void unregisterMicrocontainerServiceMBean(MBeanServer server)
+ {
+ if (server.isRegistered(MBEAN_MICROCONTAINER_SERVICE))
{
- // Unregister MBean
- unregisterMBean((MBeanServer)service);
-
- // Uninstall the MBeanServer from the Kernel
try
{
- mcService.getKernel().getController().uninstall(BEAN_MBEAN_SERVER);
+ log.log(LogService.LOG_DEBUG, "Unregister
MicrocontainerServiceMBean");
+ server.unregisterMBean(MBEAN_MICROCONTAINER_SERVICE);
}
- catch (RuntimeException rte)
+ catch (Exception ex)
{
- throw rte;
+ log.log(LogService.LOG_ERROR, "Cannot unregister
MicrocontainerServiceMBean", ex);
}
- catch (Throwable ex)
- {
- throw new IllegalStateException("Cannot register MC bean", ex);
- }
- super.removedService(reference, service);
}
}
}
\ No newline at end of file
Modified:
projects/jboss-osgi/trunk/bundle/microcontainer/src/main/resources/META-INF/base-deployers-beans.xml
===================================================================
---
projects/jboss-osgi/trunk/bundle/microcontainer/src/main/resources/META-INF/base-deployers-beans.xml 2009-04-30
12:37:24 UTC (rev 88066)
+++
projects/jboss-osgi/trunk/bundle/microcontainer/src/main/resources/META-INF/base-deployers-beans.xml 2009-04-30
13:12:46 UTC (rev 88067)
@@ -12,62 +12,89 @@
<property name="structuralDeployers"><inject
bean="StructuralDeployers" /></property>
<property name="deployers"><inject bean="Deployers"
/></property>
</bean>
-
+
<!-- ModificationType structure processor -->
- <bean name="ModificationTypeStructureProcessor"
class="org.jboss.deployers.vfs.plugins.structure.modify.ModificationTypeStructureProcessor">
- <incallback method="addMatcher"/>
- <uncallback method="removeMatcher"/>
- </bean>
+ <bean name="ModificationTypeStructureProcessor"
class="org.jboss.deployers.vfs.plugins.structure.modify.ModificationTypeStructureProcessor">
+ <incallback method="addMatcher"/>
+ <uncallback method="removeMatcher"/>
+ </bean>
+
+ <!-- The holder for deployers that determine structure -->
+ <bean name="StructuralDeployers"
class="org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl">
+ <property name="structureBuilder">
+ <!-- The consolidator of the structure information -->
+ <bean name="StructureBuilder"
class="org.jboss.deployers.vfs.plugins.structure.VFSStructureBuilder">
+ <property name="structureProcessor"><inject
bean="ModificationTypeStructureProcessor"/></property>
+ </bean>
+ </property>
+ <!-- Accept any implementor of structure deployer -->
+ <incallback method="addDeployer"/>
+ <uncallback method="removeDeployer"/>
+ </bean>
+
+ <!-- The holder for deployers that do real deployment -->
+ <bean name="Deployers"
class="org.jboss.deployers.plugins.deployers.DeployersImpl">
+ <constructor><parameter><inject
bean="jboss.osgi:service=KernelController"/></parameter></constructor>
+ <!-- Accept any implementor of deployer -->
+ <incallback method="addDeployer"/>
+ <uncallback method="removeDeployer"/>
+ </bean>
+
+ <!-- JAR Structure -->
+ <bean name="JARStructure"
class="org.jboss.deployers.vfs.plugins.structure.jar.JARStructure">
+ <!-- Unless specified the default list of suffixes is .jar -->
+ <constructor>
+ <parameter>
+ <set elementClass="java.lang.String">
+ <value>.jar</value>
+ </set>
+ </parameter>
+ </constructor>
+ </bean>
+
+ <!-- File Structure -->
+ <bean name="FileStructure"
class="org.jboss.deployers.vfs.plugins.structure.file.FileStructure">
+ <!-- Unless specified the default list of suffixes is -beans.xml -->
+ <constructor>
+ <parameter>
+ <set elementClass="java.lang.String">
+ <value>-beans.xml</value>
+ </set>
+ </parameter>
+ </constructor>
+ </bean>
+
+ <!-- POJO Deployment -->
+
+ <bean name="BeanDeployer"
class="org.jboss.deployers.vfs.deployer.kernel.BeanDeployer">
+ <property name="suffix">jboss-beans.xml</property>
+ </bean>
+ <bean name="KernelDeploymentDeployer"
class="org.jboss.deployers.vfs.deployer.kernel.KernelDeploymentDeployer">
+ </bean>
+ <bean name="BeanMetaDataDeployer"
class="org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer">
+ <constructor><parameter
class="org.jboss.kernel.Kernel"><inject
bean="jboss.osgi:service=Kernel"/></parameter></constructor>
+ </bean>
+
+ <!-- OSGi Deployment -->
- <!-- The holder for deployers that determine structure -->
- <bean name="StructuralDeployers"
class="org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl">
- <property name="structureBuilder">
- <!-- The consolidator of the structure information -->
- <bean name="StructureBuilder"
class="org.jboss.deployers.vfs.plugins.structure.VFSStructureBuilder">
- <property name="structureProcessor"><inject
bean="ModificationTypeStructureProcessor"/></property>
- </bean>
- </property>
- <!-- Accept any implementor of structure deployer -->
- <incallback method="addDeployer"/>
- <uncallback method="removeDeployer"/>
- </bean>
-
- <!-- The holder for deployers that do real deployment -->
- <bean name="Deployers"
class="org.jboss.deployers.plugins.deployers.DeployersImpl">
- <constructor><parameter><inject
bean="jboss.osgi:service=KernelController"/></parameter></constructor>
- <!-- Accept any implementor of deployer -->
- <incallback method="addDeployer"/>
- <uncallback method="removeDeployer"/>
- </bean>
-
- <!-- JAR Structure -->
- <bean name="JARStructure"
class="org.jboss.deployers.vfs.plugins.structure.jar.JARStructure">
- <!-- Unless specified the default list of suffixes is .jar -->
- <constructor>
- <parameter>
- <set elementClass="java.lang.String">
- <value>.jar</value>
- </set>
- </parameter>
- </constructor>
- </bean>
-
- <!-- File Structure -->
- <bean name="FileStructure"
class="org.jboss.deployers.vfs.plugins.structure.file.FileStructure">
- <!-- Unless specified the default list of suffixes is -beans.xml -->
- <constructor>
- <parameter>
- <set elementClass="java.lang.String">
- <value>-beans.xml</value>
- </set>
- </parameter>
- </constructor>
- </bean>
-
- <!-- POJO Deployment -->
+ <!-- The Framework Management -->
+ <bean name="jboss.osgi:service=ManagedFramework"
class="org.jboss.osgi.spi.management.ManagedFramework">
+ <property name="mbeanServer"><inject
bean="jboss.osgi:service=MBeanServer"/></property>
+ </bean>
- <bean name="BeanDeployer"
class="org.jboss.deployers.vfs.deployer.kernel.BeanDeployer">
- <property name="suffix">jboss-beans.xml</property>
- </bean>
+ <bean name="BundleMetaDataDeployer"
class="org.jboss.osgi.deployer.BundleMetaDataDeployer" />
+ <bean name="BundleStructureDeployer"
class="org.jboss.osgi.deployer.BundleStructureDeployer" />
+ <bean name="BundleRealDeployer"
class="org.jboss.osgi.deployer.BundleRealDeployer">
+ <property name="systemContext"><inject
bean="jboss.osgi:service=BundleContext" /></property>
+ </bean>
+ <bean name="BundleClassLoaderDeployer"
class="org.jboss.osgi.deployer.BundleClassLoaderDeployer">
+ <property name="systemContext"><inject
bean="jboss.osgi:service=BundleContext" /></property>
+ </bean>
+ <bean name="BundleStartStopDeployer"
class="org.jboss.osgi.deployer.BundleStartStopDeployer">
+ <property name="systemContext"><inject
bean="jboss.osgi:service=BundleContext" /></property>
+ </bean>
+ <bean name="BundleManagementDeployer"
class="org.jboss.osgi.deployer.BundleManagementDeployer">
+ <property name="mbeanServer"><inject
bean="jboss.osgi:service=MBeanServer"/></property>
+ </bean>
</deployment>
\ No newline at end of file
Modified: projects/jboss-osgi/trunk/bundle/pom.xml
===================================================================
--- projects/jboss-osgi/trunk/bundle/pom.xml 2009-04-30 12:37:24 UTC (rev 88066)
+++ projects/jboss-osgi/trunk/bundle/pom.xml 2009-04-30 13:12:46 UTC (rev 88067)
@@ -15,7 +15,6 @@
<modules>
<module>blueprint</module>
<module>common</module>
- <module>deployment</module>
<module>jmx</module>
<module>logging</module>
<module>microcontainer</module>
@@ -26,7 +25,6 @@
<!--
<modules>
<module>blueprint</module>
- <module>deployment</module>
<module>microcontainer</module>
</modules>
-->
Modified: projects/jboss-osgi/trunk/pom.xml
===================================================================
--- projects/jboss-osgi/trunk/pom.xml 2009-04-30 12:37:24 UTC (rev 88066)
+++ projects/jboss-osgi/trunk/pom.xml 2009-04-30 13:12:46 UTC (rev 88067)
@@ -334,7 +334,15 @@
<name>org.apache.xerces.xni.parser.XMLParserConfiguration</name>
<value>org.apache.xerces.parsers.XIncludeAwareParserConfiguration</value>
</property>
+ <!--
+ Implement URLStreamHandlerService
+
https://jira.jboss.org/jira/browse/JBOSGI-75
+ -->
<property>
+ <name>java.protocol.handler.pkgs</name>
+
<value>org.jboss.net.protocol|org.jboss.virtual.protocol</value>
+ </property>
+ <property>
<name>test.archive.directory</name>
<value>${project.build.directory}/test-libs</value>
</property>
Modified:
projects/jboss-osgi/trunk/runtime/deployer/src/main/java/org/jboss/osgi/deployer/BundleRealDeployer.java
===================================================================
---
projects/jboss-osgi/trunk/runtime/deployer/src/main/java/org/jboss/osgi/deployer/BundleRealDeployer.java 2009-04-30
12:37:24 UTC (rev 88066)
+++
projects/jboss-osgi/trunk/runtime/deployer/src/main/java/org/jboss/osgi/deployer/BundleRealDeployer.java 2009-04-30
13:12:46 UTC (rev 88067)
@@ -24,6 +24,7 @@
//$Id$
import java.net.URL;
+import java.util.ArrayList;
import java.util.List;
import org.jboss.deployers.spi.DeploymentException;
@@ -47,7 +48,7 @@
public class BundleRealDeployer extends AbstractSimpleRealDeployer<BundleMetaData>
{
private BundleContext systemContext;
- private List<URL> skipBundles;
+ private List<URL> skipBundles = new ArrayList<URL>();
public BundleRealDeployer()
{
@@ -75,29 +76,26 @@
String bundlePath = bundleURL.getPath();
if (bundlePath.endsWith("/"))
bundlePath = bundlePath.substring(0, bundlePath.length() - 1);
-
+
try
{
- if (skipBundles != null)
+ boolean skipBundle = false;
+ for (URL skip : skipBundles)
{
- boolean skipBundle = false;
- for (URL skip : skipBundles)
+ String skipPath = skip.getPath();
+ if (skipPath.equals(bundlePath))
{
- String skipPath = skip.getPath();
- if (skipPath.equals(bundlePath))
- {
- skipBundle = true;
- break;
- }
+ skipBundle = true;
+ break;
}
- if (skipBundle == false)
- {
- Bundle bundle = systemContext.installBundle(bundleURL.toString());
- unit.addAttachment(Bundle.class, bundle);
-
- log.info("Installed: " + bundle);
- }
}
+ if (skipBundle == false)
+ {
+ Bundle bundle = systemContext.installBundle(bundleURL.toString());
+ unit.addAttachment(Bundle.class, bundle);
+
+ log.info("Installed: " + bundle);
+ }
}
catch (BundleException ex)
{
Modified: projects/jboss-osgi/trunk/runtime/equinox/src/test/resources/log4j.xml
===================================================================
--- projects/jboss-osgi/trunk/runtime/equinox/src/test/resources/log4j.xml 2009-04-30
12:37:24 UTC (rev 88066)
+++ projects/jboss-osgi/trunk/runtime/equinox/src/test/resources/log4j.xml 2009-04-30
13:12:46 UTC (rev 88067)
@@ -32,15 +32,11 @@
<!-- Limit categories -->
<!-- ================ -->
- <category name="org.hibernate">
- <priority value="INFO" />
- </category>
- <category name="org.hibernate.SQL">
- <priority value="DEBUG" />
- </category>
- <category name="org.hibernate.connection">
+ <!-- Show jboss deployer traces
+ <category name="org.jboss.deployers">
<priority value="TRACE" />
</category>
+ -->
<!-- ======================= -->
<!-- Setup the Root category -->
Modified: projects/jboss-osgi/trunk/runtime/felix/src/test/resources/log4j.xml
===================================================================
--- projects/jboss-osgi/trunk/runtime/felix/src/test/resources/log4j.xml 2009-04-30
12:37:24 UTC (rev 88066)
+++ projects/jboss-osgi/trunk/runtime/felix/src/test/resources/log4j.xml 2009-04-30
13:12:46 UTC (rev 88067)
@@ -32,15 +32,11 @@
<!-- Limit categories -->
<!-- ================ -->
- <category name="org.hibernate">
- <priority value="INFO" />
- </category>
- <category name="org.hibernate.SQL">
- <priority value="DEBUG" />
- </category>
- <category name="org.hibernate.connection">
+ <!-- Show jboss deployer traces
+ <category name="org.jboss.deployers">
<priority value="TRACE" />
</category>
+ -->
<!-- ======================= -->
<!-- Setup the Root category -->
Modified: projects/jboss-osgi/trunk/runtime/knopflerfish/src/test/resources/log4j.xml
===================================================================
--- projects/jboss-osgi/trunk/runtime/knopflerfish/src/test/resources/log4j.xml 2009-04-30
12:37:24 UTC (rev 88066)
+++ projects/jboss-osgi/trunk/runtime/knopflerfish/src/test/resources/log4j.xml 2009-04-30
13:12:46 UTC (rev 88067)
@@ -32,15 +32,11 @@
<!-- Limit categories -->
<!-- ================ -->
- <category name="org.hibernate">
- <priority value="INFO" />
- </category>
- <category name="org.hibernate.SQL">
- <priority value="DEBUG" />
- </category>
- <category name="org.hibernate.connection">
+ <!-- Show jboss deployer traces
+ <category name="org.jboss.deployers">
<priority value="TRACE" />
</category>
+ -->
<!-- ======================= -->
<!-- Setup the Root category -->
Modified:
projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/junit/IntegrationTestHelper.java
===================================================================
---
projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/junit/IntegrationTestHelper.java 2009-04-30
12:37:24 UTC (rev 88066)
+++
projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/junit/IntegrationTestHelper.java 2009-04-30
13:12:46 UTC (rev 88067)
@@ -212,7 +212,7 @@
public RemoteFramework getRemoteFramework() throws Exception
{
if (managedFramework == null)
- managedFramework = MBeanProxy.get(ManagedFrameworkMBean.class,
ManagedFrameworkMBean.OBJECT_NAME, getServer());
+ managedFramework = MBeanProxy.get(ManagedFrameworkMBean.class,
ManagedFrameworkMBean.MBEAN_MANAGED_FRAMEWORK, getServer());
return new RemoteFramework()
{
Modified:
projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/junit/OSGiTestHelper.java
===================================================================
---
projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/junit/OSGiTestHelper.java 2009-04-30
12:37:24 UTC (rev 88066)
+++
projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/junit/OSGiTestHelper.java 2009-04-30
13:12:46 UTC (rev 88067)
@@ -55,15 +55,15 @@
public OSGiBootstrapProvider createBootstrapProvider()
{
- return OSGiBootstrap.getBootstrapProvider();
+ bootProvider = OSGiBootstrap.getBootstrapProvider();
+ return bootProvider;
}
public OSGiBootstrapProvider getBootstrapProvider()
{
if (bootProvider == null)
- {
bootProvider = createBootstrapProvider();
- }
+
return bootProvider;
}
Modified:
projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/junit/OSGiTestSetup.java
===================================================================
---
projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/junit/OSGiTestSetup.java 2009-04-30
12:37:24 UTC (rev 88066)
+++
projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/junit/OSGiTestSetup.java 2009-04-30
13:12:46 UTC (rev 88067)
@@ -25,14 +25,13 @@
import java.net.MalformedURLException;
import java.net.URL;
+import junit.extensions.TestSetup;
+import junit.framework.TestSuite;
+
import org.jboss.logging.Logger;
-import org.jboss.osgi.spi.framework.OSGiBootstrap;
import org.jboss.osgi.spi.framework.OSGiBootstrapProvider;
import org.jboss.virtual.VFS;
-import junit.extensions.TestSetup;
-import junit.framework.TestSuite;
-
/**
* An OSGi Test Setup
*
@@ -41,69 +40,64 @@
*/
public class OSGiTestSetup extends TestSetup
{
- // Provide logging
- final Logger log = Logger.getLogger(OSGiTestSetup.class);
+ // Provide logging
+ final Logger log = Logger.getLogger(OSGiTestSetup.class);
- private OSGiTestHelper delegate = new OSGiTestHelper();
- private OSGiBootstrapProvider bootProvider;
-
- public OSGiTestSetup(Class<?> testCase)
- {
- super(new TestSuite(testCase));
- // Prevent unknown protocol: vfsfile
- VFS.init();
- }
+ private OSGiTestHelper delegate = new OSGiTestHelper();
- public OSGiBootstrapProvider createBootstrapProvider()
- {
- return OSGiBootstrap.getBootstrapProvider();
- }
+ public OSGiTestSetup(Class<?> testCase)
+ {
+ super(new TestSuite(testCase));
+ // Prevent unknown protocol: vfsfile
+ VFS.init();
+ }
- public OSGiBootstrapProvider getBootstrapProvider()
- {
- if (bootProvider == null)
- {
- bootProvider = createBootstrapProvider();
- }
- return bootProvider;
- }
+ public OSGiBootstrapProvider createBootstrapProvider()
+ {
+ return delegate.createBootstrapProvider();
+ }
- public void setBootstrapProvider(OSGiBootstrapProvider bootProvider)
- {
- this.bootProvider = bootProvider;
- }
+ public OSGiBootstrapProvider getBootstrapProvider()
+ {
+ return delegate.getBootstrapProvider();
+ }
- @Override
- protected void setUp() throws Exception
- {
- log.debug("### START SETUP " + getTest());
- super.setUp();
- }
+ public void setBootstrapProvider(OSGiBootstrapProvider bootProvider)
+ {
+ delegate.setBootstrapProvider(bootProvider);
+ }
- @Override
- protected void tearDown() throws Exception
- {
- super.tearDown();
- log.debug("### END SETUP " + getTest());
- }
+ @Override
+ protected void setUp() throws Exception
+ {
+ log.debug("### START SETUP " + getTest());
+ super.setUp();
+ }
- protected URL getResourceURL(String resource)
- {
- return delegate.getResourceURL(resource);
- }
+ @Override
+ protected void tearDown() throws Exception
+ {
+ super.tearDown();
+ log.debug("### END SETUP " + getTest());
+ }
- protected File getResourceFile(String resource)
- {
- return delegate.getResourceFile(resource);
- }
+ protected URL getResourceURL(String resource)
+ {
+ return delegate.getResourceURL(resource);
+ }
- public File getTestArchiveFile(String archive)
- {
- return delegate.getTestArchiveFile(archive);
- }
+ protected File getResourceFile(String resource)
+ {
+ return delegate.getResourceFile(resource);
+ }
- public URL getTestArchiveURL(String archive) throws MalformedURLException
- {
- return delegate.getTestArchiveFile(archive).toURI().toURL();
- }
+ public File getTestArchiveFile(String archive)
+ {
+ return delegate.getTestArchiveFile(archive);
+ }
+
+ public URL getTestArchiveURL(String archive) throws MalformedURLException
+ {
+ return delegate.getTestArchiveFile(archive).toURI().toURL();
+ }
}
Modified:
projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/management/ManagedFramework.java
===================================================================
---
projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/management/ManagedFramework.java 2009-04-30
12:37:24 UTC (rev 88066)
+++
projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/management/ManagedFramework.java 2009-04-30
13:12:46 UTC (rev 88067)
@@ -97,11 +97,11 @@
try
{
if (mbeanServer != null)
- mbeanServer.registerMBean(this, ManagedFrameworkMBean.OBJECT_NAME);
+ mbeanServer.registerMBean(this,
ManagedFrameworkMBean.MBEAN_MANAGED_FRAMEWORK);
}
catch (Exception ex)
{
- log.warn("Cannot register: " + ManagedFrameworkMBean.OBJECT_NAME);
+ log.warn("Cannot register: " +
ManagedFrameworkMBean.MBEAN_MANAGED_FRAMEWORK);
}
}
}
\ No newline at end of file
Modified:
projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/management/ManagedFrameworkMBean.java
===================================================================
---
projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/management/ManagedFrameworkMBean.java 2009-04-30
12:37:24 UTC (rev 88066)
+++
projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/management/ManagedFrameworkMBean.java 2009-04-30
13:12:46 UTC (rev 88067)
@@ -36,7 +36,7 @@
public interface ManagedFrameworkMBean
{
/** The default object name: jboss.osgi:service=ManagedFramework */
- static final ObjectName OBJECT_NAME =
ObjectNameFactory.create("jboss.osgi:service=ManagedFramework");
+ ObjectName MBEAN_MANAGED_FRAMEWORK =
ObjectNameFactory.create("jboss.osgi:service=ManagedFramework");
/**
* Get the list of all installed bundles
Modified: projects/jboss-osgi/trunk/testsuite/example/src/test/resources/log4j.xml
===================================================================
--- projects/jboss-osgi/trunk/testsuite/example/src/test/resources/log4j.xml 2009-04-30
12:37:24 UTC (rev 88066)
+++ projects/jboss-osgi/trunk/testsuite/example/src/test/resources/log4j.xml 2009-04-30
13:12:46 UTC (rev 88067)
@@ -32,37 +32,12 @@
<!-- Limit categories -->
<!-- ================ -->
- <category name="org.hibernate">
- <priority value="INFO" />
- </category>
-
- <!-- hide optimistic locking failures
- <category
name="org.hibernate.event.def.AbstractFlushingEventListener">
- <priority value="FATAL" />
- </category>
- -->
-
- <!-- hide proxy narrowing warns -->
- <category
name="org.hibernate.engine.StatefulPersistenceContext.ProxyWarnLog">
- <priority value="ERROR" />
- </category>
-
- <!-- show SQL DML statements as they are executed -->
- <category name="org.hibernate.SQL">
- <priority value="DEBUG" />
- </category>
-
- <!-- show JDBC parameters
- <category name="org.hibernate.type">
+ <!-- Show jboss deployer traces
+ <category name="org.jboss.deployers">
<priority value="TRACE" />
</category>
-->
- <!-- hide httpclient wire dumps -->
- <category name="httpclient.wire.header">
- <priority value="INFO" />
- </category>
-
<!-- ======================= -->
<!-- Setup the Root category -->
<!-- ======================= -->
Modified: projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/log4j.xml
===================================================================
--- projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/log4j.xml 2009-04-30
12:37:24 UTC (rev 88066)
+++ projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/log4j.xml 2009-04-30
13:12:46 UTC (rev 88067)
@@ -32,37 +32,12 @@
<!-- Limit categories -->
<!-- ================ -->
- <category name="org.hibernate">
- <priority value="INFO" />
- </category>
-
- <!-- hide optimistic locking failures
- <category
name="org.hibernate.event.def.AbstractFlushingEventListener">
- <priority value="FATAL" />
- </category>
- -->
-
- <!-- hide proxy narrowing warns -->
- <category
name="org.hibernate.engine.StatefulPersistenceContext.ProxyWarnLog">
- <priority value="ERROR" />
- </category>
-
- <!-- show SQL DML statements as they are executed -->
- <category name="org.hibernate.SQL">
- <priority value="DEBUG" />
- </category>
-
- <!-- show JDBC parameters
- <category name="org.hibernate.type">
+ <!-- Show jboss deployer traces
+ <category name="org.jboss.deployers">
<priority value="TRACE" />
</category>
-->
- <!-- hide httpclient wire dumps -->
- <category name="httpclient.wire.header">
- <priority value="INFO" />
- </category>
-
<!-- ======================= -->
<!-- Setup the Root category -->
<!-- ======================= -->