[jboss-cvs] JBossAS SVN: r86356 - in projects/reloaded/trunk: vdf-bootstrap and 20 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Mar 25 11:39:34 EDT 2009
Author: wolfc
Date: 2009-03-25 11:39:33 -0400 (Wed, 25 Mar 2009)
New Revision: 86356
Added:
projects/reloaded/trunk/vdf-bootstrap/
projects/reloaded/trunk/vdf-bootstrap/.classpath
projects/reloaded/trunk/vdf-bootstrap/.project
projects/reloaded/trunk/vdf-bootstrap/.settings/
projects/reloaded/trunk/vdf-bootstrap/.settings/org.eclipse.jdt.core.prefs
projects/reloaded/trunk/vdf-bootstrap/.settings/org.maven.ide.eclipse.prefs
projects/reloaded/trunk/vdf-bootstrap/pom.xml
projects/reloaded/trunk/vdf-bootstrap/src/
projects/reloaded/trunk/vdf-bootstrap/src/main/
projects/reloaded/trunk/vdf-bootstrap/src/main/config/
projects/reloaded/trunk/vdf-bootstrap/src/main/resources/
projects/reloaded/trunk/vdf-bootstrap/src/main/resources/lib/
projects/reloaded/trunk/vdf-bootstrap/src/main/resources/lib/jboss-system.jar
projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/
projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/
projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/
projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap.xml
projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/
projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/aop.xml
projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/bindings.xml
projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/classloader.xml
projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/deployers.xml
projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/jmx-jdk.xml
projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/jmx.xml
projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/logging.xml
projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/profile.xml
projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/vfs.xml
projects/reloaded/trunk/vdf-bootstrap/src/test/
projects/reloaded/trunk/vdf-bootstrap/src/test/java/
projects/reloaded/trunk/vdf-bootstrap/src/test/java/org/
projects/reloaded/trunk/vdf-bootstrap/src/test/java/org/jboss/
projects/reloaded/trunk/vdf-bootstrap/src/test/java/org/jboss/reloaded/
projects/reloaded/trunk/vdf-bootstrap/src/test/java/org/jboss/reloaded/vdf/
projects/reloaded/trunk/vdf-bootstrap/src/test/java/org/jboss/reloaded/vdf/bootstrap/
projects/reloaded/trunk/vdf-bootstrap/src/test/java/org/jboss/reloaded/vdf/bootstrap/test/
projects/reloaded/trunk/vdf-bootstrap/src/test/java/org/jboss/reloaded/vdf/bootstrap/test/maindeployer/
projects/reloaded/trunk/vdf-bootstrap/src/test/java/org/jboss/reloaded/vdf/bootstrap/test/maindeployer/unit/
projects/reloaded/trunk/vdf-bootstrap/src/test/java/org/jboss/reloaded/vdf/bootstrap/test/maindeployer/unit/MainDeployerTestCase.java
projects/reloaded/trunk/vdf-bootstrap/src/test/resources/
projects/reloaded/trunk/vdf-bootstrap/src/test/resources/log4j.xml
Log:
JBAS-6675: initial setup of vdf-bootstrap ( http://www.jboss.org/community/docs/DOC-13453 )
Property changes on: projects/reloaded/trunk/vdf-bootstrap
___________________________________________________________________
Name: svn:ignore
+ target
eclipse-target
Added: projects/reloaded/trunk/vdf-bootstrap/.classpath
===================================================================
--- projects/reloaded/trunk/vdf-bootstrap/.classpath (rev 0)
+++ projects/reloaded/trunk/vdf-bootstrap/.classpath 2009-03-25 15:39:33 UTC (rev 86356)
@@ -0,0 +1,8 @@
+<classpath>
+ <classpathentry kind="src" path="src/main/resources" excluding="**/*.java"/>
+ <classpathentry kind="src" path="src/test/java" output="eclipse-target/test-classes"/>
+ <classpathentry kind="src" path="src/test/resources" output="eclipse-target/test-classes" excluding="**/*.java"/>
+ <classpathentry kind="output" path="eclipse-target/classes"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
+</classpath>
\ No newline at end of file
Added: projects/reloaded/trunk/vdf-bootstrap/.project
===================================================================
--- projects/reloaded/trunk/vdf-bootstrap/.project (rev 0)
+++ projects/reloaded/trunk/vdf-bootstrap/.project 2009-03-25 15:39:33 UTC (rev 86356)
@@ -0,0 +1,17 @@
+<projectDescription>
+ <name>jboss-reloaded-vdf-bootstrap</name>
+ <comment></comment>
+ <projects/>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ </buildCommand>
+ <buildCommand>
+ <name>org.maven.ide.eclipse.maven2Builder</name>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.maven.ide.eclipse.maven2Nature</nature>
+ </natures>
+</projectDescription>
\ No newline at end of file
Added: projects/reloaded/trunk/vdf-bootstrap/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- projects/reloaded/trunk/vdf-bootstrap/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ projects/reloaded/trunk/vdf-bootstrap/.settings/org.eclipse.jdt.core.prefs 2009-03-25 15:39:33 UTC (rev 86356)
@@ -0,0 +1,5 @@
+#Wed Mar 25 11:48:20 CET 2009
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.source=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
Added: projects/reloaded/trunk/vdf-bootstrap/.settings/org.maven.ide.eclipse.prefs
===================================================================
--- projects/reloaded/trunk/vdf-bootstrap/.settings/org.maven.ide.eclipse.prefs (rev 0)
+++ projects/reloaded/trunk/vdf-bootstrap/.settings/org.maven.ide.eclipse.prefs 2009-03-25 15:39:33 UTC (rev 86356)
@@ -0,0 +1,8 @@
+#Wed Mar 25 12:44:40 CET 2009
+activeProfiles=eclipse
+eclipse.preferences.version=1
+fullBuildGoals=process-test-resources
+includeModules=false
+resolveWorkspaceProjects=false
+resourceFilterGoals=process-resources resources\:testResources
+version=1
Added: projects/reloaded/trunk/vdf-bootstrap/pom.xml
===================================================================
--- projects/reloaded/trunk/vdf-bootstrap/pom.xml (rev 0)
+++ projects/reloaded/trunk/vdf-bootstrap/pom.xml 2009-03-25 15:39:33 UTC (rev 86356)
@@ -0,0 +1,211 @@
+<!--
+ vi:ts=2:sw=2:expandtab
+-->
+<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">
+ <parent>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-parent</artifactId>
+ <version>4</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>jboss-reloaded-vdf-bootstrap</artifactId>
+ <version>0.1.0-SNAPSHOT</version>
+ <packaging>jar</packaging>
+ <name>JBoss Reloaded VDF Bootstrap</name>
+ <url>http://www.jboss.org</url>
+ <description>
+ </description>
+
+ <properties>
+ <version.org.jboss.aop>2.1.0.CR1</version.org.jboss.aop>
+ <version.org.jboss.mx>6.0.0-SNAPSHOT</version.org.jboss.mx>
+ </properties>
+
+ <build>
+ <outputDirectory>${outputDirectory}</outputDirectory>
+ <testOutputDirectory>${testOutputDirectory}</testOutputDirectory>
+ <plugins>
+ <plugin>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>copy-dependencies</id>
+ <!--
+ <phase>package</phase>
+ -->
+ <goals>
+ <goal>copy-dependencies</goal>
+ </goals>
+ <configuration>
+ <includeScope>runtime</includeScope>
+ <outputDirectory>${project.build.directory}/dist/lib</outputDirectory>
+ <stripVersion>true</stripVersion>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.3</version>
+ <executions>
+ <execution>
+ <id>copy-resources</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${project.build.directory}/dist</outputDirectory>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.4</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.woodstox</groupId>
+ <artifactId>wstx-lgpl</artifactId>
+ <version>3.2.6</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-vfs</artifactId>
+ <version>2.1.0.GA</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.aop</groupId>
+ <artifactId>jboss-aop-asintegration-core</artifactId>
+ <version>${version.org.jboss.aop}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.jboss.jbossas</groupId>
+ <artifactId>jboss-as-system-jmx</artifactId>
+ </exclusion>
+ </exclusions>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.aop</groupId>
+ <artifactId>jboss-aop-asintegration-jmx</artifactId>
+ <version>${version.org.jboss.aop}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.jboss.jbossas</groupId>
+ <artifactId>jboss-as-j2se</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.jboss.jbossas</groupId>
+ <artifactId>jboss-as-jmx</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.jboss.jbossas</groupId>
+ <artifactId>jboss-as-system-jmx</artifactId>
+ </exclusion>
+ </exclusions>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.aop</groupId>
+ <artifactId>jboss-aop-asintegration-mc</artifactId>
+ <version>${version.org.jboss.aop}</version>
+ <scope>runtime</scope>
+ </dependency>
+ <!-- TODO: see EJBTHREE-1734 -->
+ <dependency>
+ <groupId>org.jboss.ejb3</groupId>
+ <artifactId>jboss-ejb3-aop-deployers</artifactId>
+ <version>0.1.0-SNAPSHOT</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.bootstrap</groupId>
+ <artifactId>jboss-bootstrap</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.deployers</groupId>
+ <artifactId>jboss-deployers-vfs</artifactId>
+ <version>2.0.5.GA</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.logging</groupId>
+ <artifactId>jboss-logging-spi</artifactId>
+ <version>2.0.5.GA</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.mx</groupId>
+ <artifactId>jboss-j2se</artifactId>
+ <version>${version.org.jboss.mx}</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.mx</groupId>
+ <artifactId>jboss-jmx</artifactId>
+ <version>${version.org.jboss.mx}</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.mx</groupId>
+ <artifactId>jboss-mbeans</artifactId>
+ <version>${version.org.jboss.mx}</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.logbridge</groupId>
+ <artifactId>jboss-logbridge</artifactId>
+ <version>1.0.0.CR3</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <!-- jboss-logbridge has a dependency on org.jboss.logging.log4j.JDKLevel, but doesn't declare it -->
+ <groupId>org.jboss.logging</groupId>
+ <artifactId>jboss-logging-log4j</artifactId>
+ <version>2.0.6.GA</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>sun-jaxb</groupId>
+ <artifactId>jaxb-impl</artifactId>
+ <version>2.1.9</version>
+ </dependency>
+ </dependencies>
+
+ <profiles>
+ <profile>
+ <id>default</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <properties>
+ <outputDirectory>target/classes</outputDirectory>
+ <testOutputDirectory>target/test-classes</testOutputDirectory>
+ </properties>
+ </profile>
+
+ <profile>
+ <id>eclipse</id>
+ <properties>
+ <outputDirectory>eclipse-target/classes</outputDirectory>
+ <testOutputDirectory>eclipse-target/test-classes</testOutputDirectory>
+ </properties>
+ </profile>
+ </profiles>
+</project>
Added: projects/reloaded/trunk/vdf-bootstrap/src/main/resources/lib/jboss-system.jar
===================================================================
(Binary files differ)
Property changes on: projects/reloaded/trunk/vdf-bootstrap/src/main/resources/lib/jboss-system.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Property changes on: projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf
___________________________________________________________________
Name: svn:mergeinfo
+
Added: projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/aop.xml
===================================================================
--- projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/aop.xml (rev 0)
+++ projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/aop.xml 2009-03-25 15:39:33 UTC (rev 86356)
@@ -0,0 +1,103 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ AOP configuration
+-->
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+ <classloader><inject bean="aop-classloader:0.0.0"/></classloader>
+
+ <classloader name="aop-classloader" xmlns="urn:jboss:classloader:1.0" export-all="NON_EMPTY" import-all="true">
+ <root>${jboss.lib.url}jboss-aop-asintegration-core.jar</root>
+ <root>${jboss.lib.url}jboss-aop-asintegration-jmx.jar</root>
+ <root>${jboss.lib.url}jboss-aop-asintegration-mc.jar</root>
+ <!-- TODO: see EJBTHREE-1734
+ <root>${jboss.lib.url}jboss-aop-jboss5.jar</root>
+ -->
+ <root>${jboss.lib.url}jboss-ejb3-aop-deployers.jar</root>
+ </classloader>
+
+ <!-- Integration -->
+ <bean name="AOPClassLoaderScopingPolicy" class="org.jboss.aop.asintegration.jboss5.VFSClassLoaderScopingPolicy"/>
+
+ <bean name="AOPClassPoolFactory" class="org.jboss.aop.classpool.jbosscl.JBossClDelegatingClassPoolFactory">
+ <constructor>
+ <parameter><inject bean="AOPClassLoaderScopingPolicy" property="registry"/></parameter>
+ <parameter><inject bean="AOPRegisterModuleCallback"/></parameter>
+ </constructor>
+ </bean>
+
+ <bean name="AOPJBossIntegration" class="org.jboss.aop.asintegration.jboss5.JBoss5Integration">
+ <property name="classPoolFactory"><inject bean="AOPClassPoolFactory"/></property>
+ <property name="aopClassLoaderScopingPolicy"><inject bean="AOPClassLoaderScopingPolicy"/></property>
+ </bean>
+
+ <bean name="DefaultAspectManager" class="org.jboss.aop.microcontainer.beans.metadata.DefaultAspectManager">
+ <property name="managerBean">AspectManager</property>
+ <property name="managerProperty">aspectManager</property>
+ </bean>
+
+ <!-- bean name="AOPBootstrap" class="org.jboss.aop.asintegration.jboss5.AOPBootstrap" -->
+ <!-- This one lives in AS 5 source tree -->
+ <!-- property name="policy"><inject bean="AOPClassLoaderScopingPolicy"/></property>
+ <property name="manager"><inject bean="AspectManager" property="aspectManager"/></property>
+ </bean-->
+
+ <bean name="AOPRegisterModuleCallback" class="org.jboss.aop.asintegration.jboss5.RegisterModuleCallback">
+ <!-- classloader><null/></classloader -->
+ <incallback method="addModule" state="Installed"/>
+ <uncallback method="removeModule" state="Installed"/>
+ </bean>
+ <!--
+ Valid values for the AspectManager bean for use with enableTransformer=true are:
+ * org.jboss.aop.deployers.AspectManagerJDK5 - works with the -javaagent:pluggable-instrumentor.jar switch
+ * org.jboss.aop.deployers.AspectManagerJRockit - works with JRockit and the -Xmanagement:class=org.jboss.aop.hook.JRockitPluggableClassPreProcessor switch
+ -->
+ <bean name="AspectManager" class="org.jboss.aop.deployers.AspectManagerJDK5">
+ <constructor>
+ <parameter><![CDATA[
+ <aop>
+ <aspect name="mainDeployer" class="org.jboss.profileservice.aop.MainDeployerAspect"/>
+ <bind pointcut="execution(* $instanceof{org.jboss.deployers.spi.deployment.MainDeployer}->process(..))">
+ <advice name="process" aspect="mainDeployer"/>
+ </bind>
+ <aspect name="persist" class="org.jboss.profileservice.aop.PersistAspect"/>
+ <bind pointcut="execution(* $instanceof{org.jboss.managed.api.ManagedProperty}->setValue(..))">
+ <advice name="setValue" aspect="persist"/>
+ </bind>
+ </aop>]]>
+ </parameter>
+ </constructor>
+
+ <property name="jbossIntegration"><inject bean="AOPJBossIntegration"/></property>
+
+ <property name="enableLoadtimeWeaving">false</property>
+ <!-- only relevant when EnableLoadtimeWeaving is true.
+ When transformer is on, every loaded class gets
+ transformed. If AOP can't find the class, then it
+ throws an exception. Sometimes, classes may not have
+ all the classes they reference. So, the Suppressing
+ is needed. (i.e. Jboss cache in the default configuration -->
+ <property name="suppressTransformationErrors">true</property>
+ <property name="prune">true</property>
+ <property name="include">org.jboss.test., org.jboss.injbossaop.</property>
+ <property name="exclude">org.jboss.</property>
+ <!-- This avoids instrumentation of hibernate cglib enhanced proxies
+ <property name="ignore">*$$EnhancerByCGLIB$$*</property> -->
+ <property name="optimized">true</property>
+ <property name="verbose">false</property>
+ <!--
+ Available choices for this attribute are:
+ org.jboss.aop.instrument.ClassicInstrumentor (default)
+ org.jboss.aop.instrument.GeneratedAdvisorInstrumentor
+ <property name="instrumentor">org.jboss.aop.instrument.ClassicInstrumentor</property>
+ -->
+ <!--
+ By default the deployment of the aspects contained in
+ ../deployers/jboss-aop-jboss5.deployer/base-aspects.xml
+ are not deployed. To turn on deployment uncomment this property
+ <property name="useBaseXml">true</property>
+ -->
+ </bean>
+
+</deployment>
Added: projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/bindings.xml
===================================================================
--- projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/bindings.xml (rev 0)
+++ projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/bindings.xml 2009-03-25 15:39:33 UTC (rev 86356)
@@ -0,0 +1,396 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+ <classloader><inject bean="bindings-classloader:0.0.0"/></classloader>
+
+ <classloader name="bindings-classloader" xmlns="urn:jboss:classloader:1.0" export-all="NON_EMPTY" import-all="true">
+ <root>${jboss.common.lib.url}jboss-bindingservice.jar</root>
+ </classloader>
+
+ <bean name="ServiceBindingManager" class="org.jboss.services.binding.ServiceBindingManager">
+
+ <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss.system:service=ServiceBindingManager", exposedInterface=org.jboss.services.binding.ServiceBindingManagerMBean.class, registerDirectly=true)</annotation>
+
+ <constructor>
+ <!-- The name of the set of bindings to use for this server -->
+ <parameter>${jboss.service.binding.set:ports-default}</parameter>
+
+ <!-- The named sets of bindings -->
+ <parameter>
+ <bean name="ServiceBindingStore" class="org.jboss.services.binding.impl.PojoServiceBindingStore">
+
+ <!-- Base bindings that are used to create bindings for each set -->
+ <property name="standardBindings"><inject bean="StandardBindings"/></property>
+
+ <!-- The sets of bindings -->
+ <property name="serviceBindingSets">
+ <set>
+ <inject bean="PortsDefaultBindings"/>
+ <inject bean="Ports01Bindings"/>
+ <inject bean="Ports02Bindings"/>
+ <inject bean="Ports03Bindings"/>
+ </set>
+ </property>
+ </bean>
+ </parameter>
+ </constructor>
+
+ </bean>
+
+ <!-- The ports-default bindings are obtained by taking the base bindings and adding 0 to each port value -->
+ <bean name="PortsDefaultBindings" class="org.jboss.services.binding.impl.ServiceBindingSet">
+ <constructor>
+ <!-- The name of the set -->
+ <parameter>ports-default</parameter>
+ <!-- Default host name -->
+ <parameter>${jboss.bind.address}</parameter>
+ <!-- The port offset -->
+ <parameter>0</parameter>
+ <!-- Set of bindings to which the "offset by X" approach can't be applied -->
+ <parameter><null/></parameter>
+ </constructor>
+ </bean>
+
+ <!-- The ports-01 bindings are obtained by taking the base bindings and adding 100 to each port value -->
+ <bean name="Ports01Bindings" class="org.jboss.services.binding.impl.ServiceBindingSet">
+ <constructor>
+ <!-- The name of the set -->
+ <parameter>ports-01</parameter>
+ <!-- Default host name -->
+ <parameter>${jboss.bind.address}</parameter>
+ <!-- The port offset -->
+ <parameter>100</parameter>
+ <!-- Set of bindings to which the "offset by X" approach can't be applied -->
+ <parameter><null/></parameter>
+ </constructor>
+ </bean>
+
+ <!-- The ports-02 bindings are obtained by taking ports-default and adding 200 to each port value -->
+ <bean name="Ports02Bindings" class="org.jboss.services.binding.impl.ServiceBindingSet">
+ <constructor>
+ <!-- The name of the set -->
+ <parameter>ports-02</parameter>
+ <!-- Default host name -->
+ <parameter>${jboss.bind.address}</parameter>
+ <!-- The port offset -->
+ <parameter>200</parameter>
+ <!-- Set of bindings to which the "offset by X" approach can't be applied -->
+ <parameter><null/></parameter>
+ </constructor>
+ </bean>
+
+ <!-- The ports-03 bindings are obtained by taking ports-default and adding 300 to each port value -->
+ <bean name="Ports03Bindings" class="org.jboss.services.binding.impl.ServiceBindingSet">
+ <constructor>
+ <!-- The name of the set -->
+ <parameter>ports-03</parameter>
+ <!-- Default host name -->
+ <parameter>${jboss.bind.address}</parameter>
+ <!-- The port offset -->
+ <parameter>300</parameter>
+ <!-- Set of bindings to which the "offset by X" approach can't be applied -->
+ <parameter><null/></parameter>
+ </constructor>
+ </bean>
+
+ <!-- Base binding metadata that ServiceBindingStore uses to create bindings for each set -->
+ <bean name="StandardBindings" class="java.util.HashSet">
+ <constructor>
+ <parameter class="java.util.Collection">
+ <set elementClass="org.jboss.services.binding.ServiceBindingMetadata">
+ <!-- ********************* conf/jboss-service.xml ****************** -->
+
+ <!-- Naming Service -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=Naming</property>
+ <property name="bindingName">Port</property>
+ <property name="port">1099</property>
+ </bean>
+
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=Naming</property>
+ <property name="bindingName">RmiPort</property>
+ <property name="port">1098</property>
+ </bean>
+
+ <!-- Remote classloading service -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=WebService</property>
+ <property name="port">8083</property>
+ </bean>
+
+ <!-- Remoting Connector -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">UnifiedInvokerConnector</property>
+ <property name="port">4446</property>
+ </bean>
+
+ <!-- Used to create a multihome Remoting server. See -->
+ <!-- deploy/remoting-jboss-beans.xml for more details. -->
+ <!--bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">UnifiedInvokerConnector:bindingHome1</property>
+ <parameter>192.168.2.2</property>
+ <property name="port">7777</property>
+ </bean-->
+
+ <!-- Used to create a multihome Remoting server. See -->
+ <!-- deploy/remoting-jboss-beans.xml for more details. -->
+ <!--bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">UnifiedInvokerConnector:bindingHome2</property>
+ <parameter>10.11.12.238</property>
+ <property name="port">8888</property>
+ </bean-->
+
+ <!-- ********************* deploy/legacy-invokers-service.xml ****************** -->
+
+ <!-- RMI/JRMP invoker -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=invoker,type=jrmp</property>
+ <property name="port">4444</property>
+ </bean>
+
+ <!-- Pooled invoker -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=invoker,type=pooled</property>
+ <property name="port">4445</property>
+ </bean>
+
+ <!-- ********************* deploy/cluster/hajndi-service.xml ****************** -->
+
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=HAJNDI</property>
+ <property name="bindingName">Port</property>
+ <property name="port">1100</property>
+ </bean>
+
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=HAJNDI</property>
+ <property name="bindingName">RmiPort</property>
+ <property name="port">1101</property>
+ </bean>
+
+ <!-- ********************* deploy/cluster/ha-legacy-service.xml ****************** -->
+
+ <!-- HA RMI/JRMP invoker -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=invoker,type=jrmpha</property>
+ <property name="port">4447</property>
+ </bean>
+
+ <!-- HA Pooled invoker -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=invoker,type=pooledha</property>
+ <property name="port">4448</property>
+ </bean>
+
+ <!-- ********************* deploy/iiop-service.xml ****************** -->
+
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=CorbaORB</property>
+ <property name="port">3528</property>
+ </bean>
+
+ <!-- ********************* deploy/snmp-adaptor.sar **************** -->
+
+ <!-- Trap receiver that acts as an SNMP Manager -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss.jmx:name=SnmpAgent,service=trapd,type=logger</property>
+ <property name="port">1162</property>
+ </bean>
+
+ <!-- The SNMP adaptor MBean -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss.jmx:name=SnmpAgent,service=snmp,type=adaptor</property>
+ <property name="port">1161</property>
+ </bean>
+
+ <!-- ********************* deploy/jmx-remoting.sar **************** -->
+
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss.remoting:service=JMXConnectorServer,protocol=rmi</property>
+ <property name="port">1090</property>
+ </bean>
+
+ <!-- ********************* deploy/ejb3-connectors-service.xml **************** -->
+
+ <!-- EJB3 wants to have the service create its own ServiceBinding object
+ dynamically. See the value-factory usage in deploy/ejb3-connectors-service.xml -->
+
+
+ <!-- ********************* deploy/jbossweb.sar **************** -->
+ <!-- ********************* deploy/httpha-invoker.sar **************** -->
+
+ <!--
+ JBoss Web server.xml configuration.
+
+ Same binding config can be used by the following services, or really
+ anything else that needs to point to the JBoss Web HTTP connector
+ but doesn't need an XSL Transform
+
+ jboss:service=invoker,type=http
+ jboss:service=invoker,type=http,target=Naming
+ jboss:service=invoker,type=http,target=Naming,readonly=true
+ jboss:service=invoker,type=httpHA
+ jboss:service=invoker,type=http,target=HAJNDI
+ jboss.ws:service=ServiceEndpointManager
+ -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss.web:service=WebServer</property>
+ <property name="port">8080</property>
+
+ <!--
+ Inject a XSLT transform configuration (see below) that describes
+ how to transform server.xml
+ If the binding value request doesn't require an XSL Transform, this config
+ will be ignored.
+ -->
+ <property name="serviceBindingValueSourceConfig"><inject bean="JBossWebConnectorXSLTConfig"/></property>
+ </bean>
+
+ <!-- For services like those listed above that need to know the
+ port of the HTTPS connector -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss.web:service=WebServer</property>
+ <property name="bindingName">HttpsConnector</property>
+ <property name="port">8443</property>
+ </bean>
+
+ <!-- ********************* deploy/messaging/remoting-bisocket-service.xml ********************** -->
+
+ <!-- Standard JBM bisocket connector -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss.messaging:service=Connector,transport=bisocket</property>
+ <property name="port">4457</property>
+ </bean>
+
+ <!-- ********************* deploy/transaction-jboss-beans.xml ********************** -->
+
+ <!-- JBossTS Recovery Manager -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">TransactionManager</property>
+ <property name="bindingName">recoveryManager</property>
+ <property name="port">4712</property>
+ </bean>
+
+ <!-- JBossTS Transaction Status Manager -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">TransactionManager</property>
+ <property name="bindingName">transactionStatusManager</property>
+ <property name="port">4713</property>
+ </bean>
+
+ <!-- JBossTS SocketProcessId. The address part is ignored,
+ it will always use localhost/127.0.0.1. -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">TransactionManager</property>
+ <property name="bindingName">socketProcessId</property>
+ <property name="port">4714</property>
+ </bean>
+
+
+ <!-- ********************* deploy/hsqldb-ds.xml **************** -->
+
+ <!-- Commented out as tcp/ip access to Hypersonic is not enabled by default -->
+ <!--
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=Hypersonic</property>
+ <property name="port">1701</property>
+ </bean>
+ -->
+
+ <!-- ********************* JBoss MQ **************** -->
+
+ <!-- Commented out as JBoss MQ is not installed by default
+ If you uncomment this and also use jboss.mq:service=InvocationLayer,type=HTTP,
+ configure the http invocation layer using the jboss.web:service=WebServer binding above
+ -->
+ <!--
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss.mq:service=InvocationLayer,type=UIL2</property>
+ <property name="port">8093</property>
+ </bean>
+ -->
+ </set>
+ </parameter>
+ </constructor>
+ </bean>
+
+ <!-- Conversion of selected bindings into system properties -->
+ <bean name="SystemPropertyBinder" class="org.jboss.services.binding.SystemPropertyBinder">
+
+ <constructor>
+ <parameter>
+ <set>
+ <!-- JBM's remoting connector -->
+ <bean class="org.jboss.services.binding.SystemPropertyBinding">
+ <constructor>
+ <parameter>jboss.messaging.connector.bisocket.port</parameter>
+ <parameter class="int">
+ <value-factory bean="ServiceBindingManager" method="getIntBinding"
+ parameter="jboss.messaging:service=Connector,transport=bisocket"/>
+ </parameter>
+ </constructor>
+ </bean>
+ </set>
+ </parameter>
+ </constructor>
+
+ </bean>
+
+ <!-- XSL Transform to apply to server.xml -->
+ <bean name="JBossWebConnectorXSLTConfig"
+ class="org.jboss.services.binding.impl.XSLTServiceBindingValueSourceConfig">
+
+ <constructor>
+ <parameter><![CDATA[
+ <xsl:stylesheet
+ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
+
+ <xsl:output method="xml" />
+ <xsl:param name="port"/>
+
+ <xsl:variable name="portAJP" select="$port - 71"/>
+ <xsl:variable name="portHttps" select="$port + 363"/>
+
+ <xsl:template match="/">
+ <xsl:apply-templates/>
+ </xsl:template>
+
+ <xsl:template match = "Connector">
+ <Connector>
+ <xsl:for-each select="@*">
+ <xsl:choose>
+ <xsl:when test="(name() = 'port' and . = '8080')">
+ <xsl:attribute name="port"><xsl:value-of select="$port" /></xsl:attribute>
+ </xsl:when>
+ <xsl:when test="(name() = 'port' and . = '8009')">
+ <xsl:attribute name="port"><xsl:value-of select="$portAJP" /></xsl:attribute>
+ </xsl:when>
+ <xsl:when test="(name() = 'redirectPort')">
+ <xsl:attribute name="redirectPort"><xsl:value-of select="$portHttps" /></xsl:attribute>
+ </xsl:when>
+ <xsl:when test="(name() = 'port' and . = '8443')">
+ <xsl:attribute name="port"><xsl:value-of select="$portHttps" /></xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="{name()}"><xsl:value-of select="." /></xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ <xsl:apply-templates/>
+ </Connector>
+ </xsl:template>
+
+ <xsl:template match="*|@*">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+ </xsl:stylesheet>
+ ]]>
+ </parameter>
+ </constructor>
+ </bean>
+
+</deployment>
Added: projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/classloader.xml
===================================================================
--- projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/classloader.xml (rev 0)
+++ projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/classloader.xml 2009-03-25 15:39:33 UTC (rev 86356)
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ The core classloading system
+-->
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+ <classloader><inject bean="bootstrap-classloader:0.0.0"/></classloader>
+
+ <!--
+ The classloader implementation
+ -->
+ <bean name="ClassLoaderSystem" class="org.jboss.classloader.spi.ClassLoaderSystem">
+ <classloader><null/></classloader>
+ <constructor factoryClass="org.jboss.classloader.spi.ClassLoaderSystem" factoryMethod="getInstance"/>
+ </bean>
+
+ <!--
+ ClassLoader management and resolution
+ -->
+ <bean name="ClassLoading" class="org.jboss.classloading.spi.dependency.ClassLoading">
+ <classloader><null/></classloader>
+ <incallback method="addModule" state="Configured"/>
+ <uncallback method="removeModule" state="Configured"/>
+ </bean>
+
+ <classloader name="bootstrap-classloader" xmlns="urn:jboss:classloader:1.0" export-all="NON_EMPTY" import-all="true">
+ <!-- System -->
+ <root>${jboss.lib.url}jboss-system.jar</root>
+ </classloader>
+
+</deployment>
Added: projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/deployers.xml
===================================================================
--- projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/deployers.xml (rev 0)
+++ projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/deployers.xml 2009-03-25 15:39:33 UTC (rev 86356)
@@ -0,0 +1,273 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ The base deployers
+-->
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+ <classloader><inject bean="deployers-classloader:0.0.0"/></classloader>
+
+ <classloader name="deployers-classloader" xmlns="urn:jboss:classloader:1.0" export-all="NON_EMPTY" import-all="true">
+ <root>${jboss.lib.url}jboss-deployers-core-spi.jar</root>
+ <root>${jboss.lib.url}jboss-deployers-core.jar</root>
+ <root>${jboss.lib.url}jboss-deployers-client-spi.jar</root>
+ <root>${jboss.lib.url}jboss-deployers-client.jar</root>
+ <root>${jboss.lib.url}jboss-deployers-structure-spi.jar</root>
+ <root>${jboss.lib.url}jboss-deployers-spi.jar</root>
+ <root>${jboss.lib.url}jboss-deployers-impl.jar</root>
+ <root>${jboss.lib.url}jboss-deployers-vfs-spi.jar</root>
+ <root>${jboss.lib.url}jboss-deployers-vfs.jar</root>
+ <!-- Bean annotation handling -->
+ <root>${jboss.lib.url}jboss-dependency.jar</root>
+ <root>${jboss.lib.url}jboss-kernel.jar</root>
+
+ <!-- JAXB impl here, api is in endorsed -->
+ <root>${jboss.lib.url}jaxb-impl.jar</root>
+ <!-- STAX2 impl here, api is in endorsed -->
+ <root>${jboss.lib.url}wstx-lgpl.jar</root>
+ </classloader>
+
+ <!-- use legacy ordering -->
+ <!-- TODO: not in Reloaded
+ <bean name="topContextComparator">
+ <constructor factoryClass="org.jboss.system.deployers.LegacyDeploymentContextComparator" factoryMethod="getInstance"/>
+ </bean>
+ -->
+
+ <!-- MetaValueFactory -->
+ <bean name="MetaValueFactory" >
+ <constructor factoryClass="org.jboss.metatype.api.values.MetaValueFactory" factoryMethod="getInstance"/>
+ </bean>
+ <!-- The ManagedObjectFactory -->
+ <bean name="ManagedObjectFactory">
+ <constructor factoryClass="org.jboss.managed.api.factory.ManagedObjectFactory" factoryMethod="getInstance"/>
+ <!-- Accept any implementor of InstanceClassFactory -->
+ <incallback method="addInstanceClassFactory"/>
+ <uncallback method="removeInstanceClassFactory"/>
+ <!-- Accept any ManagedObjectDefinition -->
+ <incallback method="addManagedObjectDefinition"/>
+ <uncallback method="removeManagedObjectDefinition"/>
+ <property name="metaValueFactory"><inject bean="MetaValueFactory"/></property>
+ </bean>
+ <!-- The ManagedObjectCreator implementation -->
+ <bean name="ManagedObjectCreator" class="org.jboss.deployers.spi.deployer.helpers.DefaultManagedObjectCreator">
+ <property name="mof"><inject bean="ManagedObjectFactory"/></property>
+ </bean>
+
+ <!-- The MainDeployer -->
+ <bean name="MainDeployer" class="org.jboss.deployers.plugins.main.MainDeployerImpl">
+ <property name="structuralDeployers"><inject bean="StructuralDeployers"/></property>
+ <property name="deployers"><inject bean="Deployers"/></property>
+ <!-- TODO: optional injecting isn't working properly
+ <property name="mgtDeploymentCreator"><inject option="optional" bean="ManagedDeploymentCreator"/></property>
+ <property name="comparator"><inject option="optional" bean="topContextComparator"/></property>
+ -->
+ </bean>
+
+ <!-- The ManagedDeploymentCreator implementation that supports mapping
+ attachment types to ManagedDeployment#getTypes
+ -->
+ <!-- TODO: not in Reloaded
+ <bean name="ManagedDeploymentCreator" class="org.jboss.deployers.plugins.managed.TypedManagedDeploymentCreator" />
+ -->
+
+ <!-- ModificationType structure processor -->
+ <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">
+ <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss.deployment:service=DeployersImpl", exposedInterface=org.jboss.deployers.plugins.deployers.DeployersImplMBean.class, registerDirectly=true)</annotation>
+ <constructor><parameter><inject bean="jboss.kernel:service=KernelController"/></parameter></constructor>
+ <!-- Accept any implementor of deployer -->
+ <incallback method="addDeployer"/>
+ <uncallback method="removeDeployer"/>
+ <property name="mgtObjectCreator"><inject bean="ManagedObjectCreator"/></property>
+ </bean>
+
+ <!-- A declared structure descriptor deployer -->
+ <bean name="DeclaredStructure" class="org.jboss.deployers.vfs.plugins.structure.explicit.DeclaredStructure"/>
+
+ <!-- JAR Structure -->
+ <bean name="JARStructure" class="org.jboss.deployers.vfs.plugins.structure.jar.JARStructure">
+ <!-- Unless specified the default list of suffixes is .zip, .ear, .jar, ,.rar, .war, .sar, .har, .aop -->
+ <constructor>
+ <parameter>
+ <set elementClass="java.lang.String">
+ <value>.zip</value>
+ <value>.ear</value>
+ <value>.jar</value>
+ <value>.rar</value>
+ <value>.war</value>
+ <value>.sar</value>
+ <value>.har</value>
+ <value>.aop</value>
+ <value>.deployer</value>
+ <value>.beans</value>
+ </set>
+ </parameter>
+ </constructor>
+ <property name="candidateStructureVisitorFactory">
+ <!-- Any file that is not an ordinary directory is a candidate -->
+ <bean name="JARStructureCandidates" class="org.jboss.deployers.vfs.spi.structure.helpers.DefaultCandidateStructureVisitorFactory">
+ <!-- A filter to exclude some obvious non-subdeployments -->
+ <property name="filter">
+ <bean name="JARFilter" class="org.jboss.virtual.plugins.vfs.helpers.SuffixesExcludeFilter">
+ <constructor><parameter>
+ <list elementClass="java.lang.String">
+ <!-- Exclude class files as subdeployments -->
+ <value>.class</value>
+ </list>
+ </parameter></constructor>
+ </bean>
+ </property>
+ </bean>
+ </property>
+ </bean>
+
+ <!-- File Structure -->
+ <bean name="FileStructure" class="org.jboss.deployers.vfs.plugins.structure.file.FileStructure">
+ <!-- Unless specified the default list of suffixes is -service.xml, -beans.xml, -ds.xml, -aop.xml -->
+ <constructor>
+ <parameter>
+ <set elementClass="java.lang.String">
+ <value>-service.xml</value>
+ <value>-beans.xml</value>
+ <value>-ds.xml</value>
+ <value>-aop.xml</value>
+ </set>
+ </parameter>
+ </constructor>
+ </bean>
+
+ <!-- Old AOP deployment
+ <bean name="AspectAppParsingDeployer" class="org.jboss.aop.asintegration.jboss5.AspectAppParsingDeployer"/>
+ <bean name="AspectDeployer" class="org.jboss.aop.asintegration.jboss5.AspectDeployer">
+ <property name="aspectManager"><inject bean="AspectManager" property="aspectManager"/></property>
+ </bean>
+ -->
+
+ <bean name="AOPXMLMetaDataParserDeployer" class="org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer">
+ <constructor>
+ <parameter>org.jboss.aop.microcontainer.beans.metadata.AOPDeployment</parameter>
+ </constructor>
+ <property name="suffix">-aop.xml</property>
+ </bean>
+ <bean name="AOPAnnotationMetaDataParserDeployer" class="org.jboss.aop.asintegration.jboss5.AOPAnnotationMetaDataParserDeployer">
+ <constructor>
+ <parameter><inject bean="AOPXMLMetaDataParserDeployer" property="relativeOrder"/></parameter>
+ </constructor>
+ </bean>
+ <bean name="AOPClassLoaderDeployer" class="org.jboss.aop.asintegration.jboss5.AOPClassLoaderDeployer">
+ <property name="aspectManager"><inject bean="AspectManager" property="aspectManager"/></property>
+ </bean>
+ <bean name="AOPDeploymentAopMetaDataDeployer" class="org.jboss.aop.asintegration.jboss5.AOPDeploymentAopMetaDataDeployer">
+ <property name="kernel"><inject bean="jboss.kernel:service=Kernel"/></property>
+ <property name="aspectManager"><inject bean="AspectManager" property="aspectManager"/></property>
+ </bean>
+ <bean name="BeansDeploymentAopMetaDataDeployer" class="org.jboss.aop.asintegration.jboss5.BeansDeploymentAopMetaDataDeployer">
+ <property name="kernel"><inject bean="jboss.kernel:service=Kernel"/></property>
+ <property name="aspectManager"><inject bean="AspectManager" property="aspectManager"/></property>
+ </bean>
+
+ <!-- POJO Deployment -->
+
+ <bean name="CoreBeanAnnotationAdapterFactory">
+ <constructor factoryClass="org.jboss.kernel.plugins.annotations.BeanAnnotationAdapterFactory" factoryMethod="getInstance"/>
+ </bean>
+
+ <bean name="CoreBeanAnnotationAdapter">
+ <constructor factoryMethod="getBeanAnnotationAdapter">
+ <factory bean="CoreBeanAnnotationAdapterFactory"/>
+ </constructor>
+ <incallback method="addAnnotationPlugin"/>
+ <uncallback method="removeAnnotationPlugin"/>
+ </bean>
+
+ <!-- TODO: not in Reloaded
+ <bean name="BeanMetaDataICF" class="org.jboss.deployers.plugins.managed.BeanMetaDataICF">
+ <property name="controller"><inject bean="jboss.kernel:service=KernelController"/></property>
+ <property name="delegateICF"><inject bean="ManagedObjectFactory" property="defaultInstanceFactory"/></property>
+ </bean>
+ <bean name="KernelDeploymentManagedObjectCreator" class="org.jboss.deployers.plugins.managed.KernelDeploymentManagedObjectCreator">
+ <constructor><parameter><inject bean="ManagedObjectFactory"/></parameter></constructor>
+ </bean>
+ -->
+ <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">
+ <!-- TODO: not available in Reloaded and can't make it optional
+ <install bean="ManagedDeploymentCreator" method="addAttachmentType">
+ <parameter>
+ <value>org.jboss.kernel.spi.deployment.KernelDeployment</value>
+ </parameter>
+ <parameter>
+ <value>beans</value>
+ </parameter>
+ </install>
+ <uninstall bean="ManagedDeploymentCreator" method="removeAttachmentType">
+ <parameter>
+ <value>org.jboss.kernel.spi.deployment.KernelDeployment</value>
+ </parameter>
+ </uninstall>
+ -->
+ <!-- TODO: optional injecting isn't working properly
+ <property name="mgtObjectCreator"><inject option="optional" bean="KernelDeploymentManagedObjectCreator"/></property>
+ -->
+ </bean>
+ <bean name="BeanMetaDataDeployer" class="org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer">
+ <constructor><parameter class="org.jboss.kernel.Kernel"><inject bean="jboss.kernel:service=Kernel"/></parameter></constructor>
+ </bean>
+
+ <!-- JMX Deployment -->
+ <!-- FIXME: needs to be separated from AS
+ <bean name="ServiceMetaDataICF" class="org.jboss.system.deployers.managed.ServiceMetaDataICF">
+ <property name="mbeanServer"><inject bean="JMXKernel" property="mbeanServer"/></property>
+ </bean>
+ <bean name="SARDeployer" class="org.jboss.system.deployers.SARDeployer"/>
+ <bean name="ServiceClassLoaderDeployer" class="org.jboss.system.deployers.ServiceClassLoaderDeployer"/>
+ <bean name="ServiceDeploymentDeployer" class="org.jboss.system.deployers.ServiceDeploymentDeployer"/>
+ <bean name="ServiceDeployer" class="org.jboss.system.deployers.ServiceDeployer">
+ <constructor><parameter><inject bean="JMXKernel" property="serviceController"/></parameter></constructor>
+ </bean>
+ -->
+
+ <bean name="ClassLoadingMetaDataParser" class="org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer">
+ <constructor>
+ <parameter>org.jboss.classloading.spi.metadata.ClassLoadingMetaData</parameter>
+ </constructor>
+ <property name="name">jboss-classloading.xml</property>
+ <property name="buildManagedObject">true</property>
+ </bean>
+ <bean name="ClassLoadingDefaultDeployer" class="org.jboss.deployers.plugins.classloading.ClassLoadingDefaultDeployer">
+ <property name="defaultMetaData">
+ <classloading xmlns="urn:jboss:classloading:1.0" export-all="NON_EMPTY" import-all="true"/>
+ </property>
+ </bean>
+ <bean name="InMemoryClassesDeployer" class="org.jboss.deployers.vfs.plugins.classloader.InMemoryClassesDeployer"/>
+ <bean name="ClassLoaderClassPathDeployer" class="org.jboss.deployers.vfs.plugins.classloader.VFSClassLoaderClassPathDeployer"/>
+ <bean name="ClassLoaderDescribeDeployer" class="org.jboss.deployers.vfs.plugins.classloader.VFSClassLoaderDescribeDeployer">
+ <property name="classLoading"><inject bean="ClassLoading"/></property>
+ </bean>
+ <bean name="ClassLoaderDeployer" class="org.jboss.deployers.plugins.classloading.AbstractLevelClassLoaderSystemDeployer">
+ <property name="classLoading"><inject bean="ClassLoading"/></property>
+ <property name="system"><inject bean="ClassLoaderSystem"/></property>
+ </bean>
+
+</deployment>
Added: projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/jmx-jdk.xml
===================================================================
--- projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/jmx-jdk.xml (rev 0)
+++ projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/jmx-jdk.xml 2009-03-25 15:39:33 UTC (rev 86356)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+ <bean name="MBeanServer" class="javax.management.MBeanServer">
+ <constructor factoryClass="javax.management.MBeanServerFactory" factoryMethod="newMBeanServer"/>
+ </bean>
+</deployment>
\ No newline at end of file
Added: projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/jmx.xml
===================================================================
--- projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/jmx.xml (rev 0)
+++ projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/jmx.xml 2009-03-25 15:39:33 UTC (rev 86356)
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ The JMX Subsystem
+-->
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+ <classloader><inject bean="jmx-classloader:0.0.0"/></classloader>
+
+ <classloader name="jmx-classloader" xmlns="urn:jboss:classloader:1.0" export-all="NON_EMPTY" import-all="true">
+ <root>${jboss.lib.url}jboss-j2se.jar</root>
+ <root>${jboss.lib.url}jboss-mbeans.jar</root>
+ <root>${jboss.lib.url}jboss-jmx.jar</root>
+ <!-- TODO: fix me
+ <root>${jboss.lib.url}jboss-system-jmx.jar</root>
+ -->
+ <root>${jboss.lib.url}dom4j.jar</root>
+ </classloader>
+
+ <!-- TODO: in jboss-system-jmx.jar
+ <bean name="ServerInfo" class="org.jboss.system.server.ServerInfo">
+ <alias>jboss.system:type=ServerInfo</alias>
+ </bean>
+ -->
+
+ <!-- The legacy JMX kernel -->
+ <!-- TODO: in jboss-system-jmx.jar
+ <bean name="JMXKernel" class="org.jboss.system.server.jmx.JMXKernel">
+ <property name="kernel"><inject bean="jboss.kernel:service=Kernel"/></property>
+ <property name="serverImpl"><inject bean="JBossServer"/></property>
+ <property name="serverInfo"><inject bean="ServerInfo"/></property>
+ </bean>
+ -->
+
+ <!-- Support for @JMX -->
+ <!-- TODO: in jboss-system-jmx.jar
+ <lifecycle-configure xmlns="urn:jboss:aop-beans:1.0"
+ name="JMXRegistrationAdvice"
+ class="org.jboss.system.microcontainer.jmx.ServiceControllerRegistrationLifecycleCallback"
+ classes="@org.jboss.aop.microcontainer.aspects.jmx.JMX"
+ manager-bean="AspectManager"
+ manager-property="aspectManager">
+ <property name="serviceController"><inject bean="JMXKernel" property="serviceController"/></property>
+ </lifecycle-configure>
+ <lifecycle-create xmlns="urn:jboss:aop-beans:1.0"
+ name="JMXCreateDestroyAdvice"
+ class="org.jboss.system.microcontainer.jmx.ServiceControllerCreateDestroyLifecycleCallback"
+ classes="@org.jboss.aop.microcontainer.aspects.jmx.JMX"
+ manager-bean="AspectManager"
+ manager-property="aspectManager">
+ <property name="serviceController"><inject bean="JMXKernel" property="serviceController"/></property>
+ </lifecycle-create>
+ <lifecycle-install xmlns="urn:jboss:aop-beans:1.0"
+ name="JMXStartStopAdvice"
+ class="org.jboss.system.microcontainer.jmx.ServiceControllerStartStopLifecycleCallback"
+ classes="@org.jboss.aop.microcontainer.aspects.jmx.JMX"
+ manager-bean="AspectManager"
+ manager-property="aspectManager">
+ <property name="serviceController"><inject bean="JMXKernel" property="serviceController"/></property>
+ </lifecycle-install>
+ -->
+
+ <!-- MBean for making sure that the underlying AspectManagerService gets registered in JMX -->
+ <!-- TODO: depends on ServiceMBean, which is in jboss-system-jmx.jar
+ <bean name="AspectManagerJMXRegistrar" class="org.jboss.aop.deployers.AspectManagerJMXRegistrar">
+ <property name="mbeanServer"><inject bean="JMXKernel" property="mbeanServer"/></property>
+ <property name="aspectManager"><inject bean="AspectManager" property="delegate"/></property>
+ </bean>
+ -->
+
+</deployment>
Added: projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/logging.xml
===================================================================
--- projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/logging.xml (rev 0)
+++ projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/logging.xml 2009-03-25 15:39:33 UTC (rev 86356)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ The Logging Subsystem
+-->
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+ <bean name="LogBridgeHandler" class="org.jboss.logbridge.LogBridgeHandler"/>
+
+</deployment>
\ No newline at end of file
Added: projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/profile.xml
===================================================================
--- projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/profile.xml (rev 0)
+++ projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/profile.xml 2009-03-25 15:39:33 UTC (rev 86356)
@@ -0,0 +1,122 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ The profile service
+ $Id: profile.xml 86174 2009-03-21 15:18:12Z emuckenhuber $
+-->
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+ <classloader><inject bean="profile-classloader:0.0.0" /></classloader>
+
+ <classloader name="profile-classloader" xmlns="urn:jboss:classloader:1.0" export-all="NON_EMPTY" import-all="true">
+ <root>${jboss.lib.url}jboss-profileservice-spi.jar</root>
+ </classloader>
+
+ <!--
+ The profile configuration
+ This contains required properties:
+ The uri to jboss-service.xml.
+ The uri to the deployers folder.
+ A list of uris to deploy folders. -->
+ <bean name="BootstrapProfileFactory" class="org.jboss.system.server.profileservice.repository.StaticProfileFactory">
+ <property name="bootstrapURI">${jboss.server.home.url}conf/jboss-service.xml</property>
+ <property name="deployersURI">${jboss.server.home.url}deployers</property>
+ <property name="applicationURIs">
+ <list elementClass="java.net.URI">
+ <value>${jboss.server.home.url}deploy</value>
+ </list>
+ </property>
+ <property name="attachmentStoreRoot">${jboss.server.data.dir}/attachments</property>
+ <property name="profileFactory"><inject bean="ProfileFactory" /></property>
+ </bean>
+
+ <!-- The default profile key -->
+ <bean name="DefaultProfileKey" class="org.jboss.profileservice.spi.ProfileKey">
+ <constructor><parameter>${jboss.server.name}</parameter></constructor>
+ </bean>
+
+ <!-- The ProfileService -->
+ <bean name="ProfileService" class="org.jboss.system.server.profileservice.repository.AbstractProfileService">
+ <constructor><parameter><inject bean="jboss.kernel:service=KernelController" /></parameter></constructor>
+ <property name="deployer"><inject bean="ProfileServiceDeployer" /></property>
+ <property name="defaultProfile"><inject bean="DefaultProfileKey" /></property>
+ </bean>
+
+ <!-- The Bootstrap implementation that loads the Profile from the ProfileService -->
+ <bean name="ProfileServiceBootstrap" class="org.jboss.system.server.profileservice.ProfileServiceBootstrap">
+ <property name="profileKey"><inject bean="DefaultProfileKey" /></property>
+ <property name="mainDeployer"><inject bean="MainDeployer" /></property>
+ <property name="profileService"><inject bean="ProfileService" /></property>
+ <property name="mof"><inject bean="ManagedObjectFactory" /></property>
+ <property name="mgtDeploymentCreator"><inject bean="ManagedDeploymentCreator" /></property>
+ <property name="bootstrapProfileFactory"><inject bean="BootstrapProfileFactory" /></property>
+ </bean>
+
+ <!-- The profile factory -->
+ <bean name="ProfileFactory" class="org.jboss.system.server.profileservice.repository.TypedProfileFactory">
+ <!-- Accept any AbstractprofileFactory -->
+ <incallback method="addProfileFactory" />
+ <uncallback method="removeProfileFactory" />
+ </bean>
+
+ <!-- The profile repository factory -->
+ <bean name="ProfileRepositoryFactory" class="org.jboss.system.server.profileservice.repository.TypedProfileRepository">
+ <!-- Accept any DeploymentRepositoryFactory -->
+ <incallback method="addRepositoryFactory" />
+ <uncallback method="removeRepositoryFactory" />
+ </bean>
+
+ <!-- The structure modification cache and checker -->
+ <bean name="StructureModCache" class="org.jboss.deployers.vfs.spi.structure.modified.DefaultStructureCache">
+ <destroy method="flush"/>
+ </bean>
+
+ <bean name="StructureModificationChecker" class="org.jboss.deployers.vfs.spi.structure.modified.MetaDataStructureModificationChecker">
+ <constructor>
+ <parameter><inject bean="MainDeployer" /></parameter>
+ </constructor>
+ <property name="cache"><inject bean="StructureModCache" /></property>
+ <property name="filter"><bean class="org.jboss.system.server.profile.basic.XmlIncludeVirtualFileFilter" /></property>
+ </bean>
+
+ <bean name="BasicProfileFactory" class="org.jboss.system.server.profileservice.repository.BasicProfileFactory">
+ <property name="profileRepository"><inject bean="ProfileRepositoryFactory" /></property>
+ </bean>
+ <bean name="FilteredProfileFactory" class="org.jboss.system.server.profileservice.repository.FilteredProfileFactory"/>
+
+ <!-- The default deployment repository factory -->
+ <bean name="DefaultDeploymentRepositoryFactory" class="org.jboss.system.server.profileservice.repository.DefaultDeploymentRepositoryFactory">
+ <property name="deploymentFilter"><inject bean="DeploymentFilter" /></property>
+ <property name="checker"><inject bean="StructureModificationChecker" /></property>
+ </bean>
+
+ <!-- The attachment store -->
+ <bean name="AttachmentStore" class="org.jboss.system.server.profileservice.repository.AbstractAttachmentStore">
+ <constructor><parameter><inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" /></parameter></constructor>
+ <property name="mainDeployer"><inject bean="MainDeployer" /></property>
+ <property name="serializer"><inject bean="AttachmentsSerializer" /></property>
+ <property name="metaDataFilter"><bean class="org.jboss.system.server.profile.basic.XmlIncludeVirtualFileFilter" /></property>
+ </bean>
+
+ <bean name="AttachmentsSerializer" class="org.jboss.system.server.profileservice.repository.JAXBAttachmentSerializer">
+ <constructor><parameter><inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" /></parameter></constructor>
+ </bean>
+
+ <bean name="ProfileServiceDeployer" class="org.jboss.system.server.profileservice.repository.MainDeployerAdapter">
+ <property name="mainDeployer"><inject bean="MainDeployer" /></property>
+ <property name="attachmentStore"><inject bean="AttachmentStore" /></property>
+ </bean>
+
+ <bean name="ProfileServicePersistenceDeployer" class="org.jboss.system.server.profileservice.persistence.deployer.ProfileServicePersistenceDeployer" />
+
+ <!-- A filter for excluding files from the scanner -->
+ <bean name="DeploymentFilter" class="org.jboss.virtual.plugins.vfs.helpers.ExtensibleFilter">
+ <!-- Files starting with theses strings are ignored -->
+ <property name="prefixes">#,%,\,,.,_$</property>
+ <!-- Files ending with theses strings are ignored -->
+ <property name="suffixes">#,$,%,~,\,v,.BAK,.bak,.old,.orig,.tmp,.rej,.sh</property>
+ <!-- Files matching with theses strings are ignored -->
+ <property name="matches">.make.state,.nse_depinfo,CVS,CVS.admin,RCS,RCSLOG,SCCS,TAGS,core,tags</property>
+ </bean>
+
+</deployment>
\ No newline at end of file
Added: projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/vfs.xml
===================================================================
--- projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/vfs.xml (rev 0)
+++ projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap/vfs.xml 2009-03-25 15:39:33 UTC (rev 86356)
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ The JBossVFS initializer configuration.
+-->
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+ <bean name="VFSCache">
+ <constructor factoryClass="org.jboss.virtual.spi.cache.VFSCacheFactory" factoryMethod="getInstance">
+ <!-- Use the CombinedVFSCache implementation -->
+ <parameter>org.jboss.virtual.plugins.cache.CombinedVFSCache</parameter>
+ </constructor>
+ <start ignored="true"/>
+ <property name="permanentRoots">
+ <map keyClass="java.net.URL" valueClass="org.jboss.virtual.spi.ExceptionHandler">
+ <entry>
+ <key>${jboss.lib.url}</key>
+ <value><null/></value>
+ </entry>
+ <entry>
+ <key>${jboss.common.lib.url}</key>
+ <value><inject bean="VfsNamesExceptionHandler"/></value>
+ </entry>
+ <entry>
+ <key>${jboss.server.lib.url}</key>
+ <value><inject bean="VfsNamesExceptionHandler"/></value>
+ </entry>
+ <entry>
+ <key>${jboss.server.home.url}deploy</key>
+ <value><inject bean="VfsNamesExceptionHandler"/></value>
+ </entry>
+ </map>
+ </property>
+ <property name="realCache">
+ <bean class="org.jboss.virtual.plugins.cache.IterableTimedVFSCache"/>
+ </property>
+ </bean>
+
+ <bean name="VfsNamesExceptionHandler" class="org.jboss.virtual.plugins.context.helpers.NamesExceptionHandler">
+ <constructor>
+ <parameter class="java.lang.String">sqljdbc.jar</parameter>
+ </constructor>
+ </bean>
+
+</deployment>
Added: projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap.xml
===================================================================
--- projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap.xml (rev 0)
+++ projects/reloaded/trunk/vdf-bootstrap/src/main/resources/server/default/conf/bootstrap.xml 2009-03-25 15:39:33 UTC (rev 86356)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ The list of URLs for mc beans to load during bootstrap.
+-->
+<bootstrap xmlns="urn:jboss:bootstrap:1.0">
+
+ <url>bootstrap/logging.xml</url>
+ <url>bootstrap/vfs.xml</url>
+ <url>bootstrap/classloader.xml</url>
+ <url>bootstrap/aop.xml</url>
+ <url>bootstrap/jmx-jdk.xml</url>
+ <!-- TODO: needs jboss-system-jmx.jar -->
+ <url>bootstrap/jmx.xml</url>
+ <url>bootstrap/deployers.xml</url>
+ <!-- TODO: why is this here?
+ <url>bootstrap/bindings.xml</url>
+ -->
+ <!-- TODO: not yet available
+ <url>bootstrap/profile.xml</url>
+ -->
+</bootstrap>
Added: projects/reloaded/trunk/vdf-bootstrap/src/test/java/org/jboss/reloaded/vdf/bootstrap/test/maindeployer/unit/MainDeployerTestCase.java
===================================================================
--- projects/reloaded/trunk/vdf-bootstrap/src/test/java/org/jboss/reloaded/vdf/bootstrap/test/maindeployer/unit/MainDeployerTestCase.java (rev 0)
+++ projects/reloaded/trunk/vdf-bootstrap/src/test/java/org/jboss/reloaded/vdf/bootstrap/test/maindeployer/unit/MainDeployerTestCase.java 2009-03-25 15:39:33 UTC (rev 86356)
@@ -0,0 +1,87 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.reloaded.vdf.bootstrap.test.maindeployer.unit;
+
+import static org.junit.Assert.assertNotNull;
+
+import java.io.File;
+import java.net.MalformedURLException;
+import java.net.URISyntaxException;
+import java.net.URL;
+import java.util.Properties;
+
+import org.jboss.bootstrap.microcontainer.ServerImpl;
+import org.jboss.bootstrap.spi.ServerConfig;
+import org.jboss.bootstrap.spi.microcontainer.MCServer;
+import org.jboss.deployers.client.spi.main.MainDeployer;
+import org.junit.AfterClass;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+/**
+ * Test the MainDeployer.
+ *
+ * @author <a href="mailto:cdewolf at redhat.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+public class MainDeployerTestCase
+{
+ private static MCServer server;
+ private static Object mainDeployer;
+
+ @AfterClass
+ public static void afterClass()
+ {
+ if(server != null && server.isStarted())
+ server.shutdown();
+ }
+
+ @BeforeClass
+ public static void beforeClass() throws Exception
+ {
+ server = new ServerImpl();
+ Properties props = new Properties();
+ // either target or eclipse-target
+ props.put(ServerConfig.HOME_DIR, findDirContainingResource("server"));
+ props.put(ServerConfig.LIBRARY_URL, new File("target/dist/lib").toURI().toURL().toString());
+ server.init(props);
+ server.start();
+
+ mainDeployer = server.getKernel().getController().getInstantiatedContexts(MainDeployer.class);
+ }
+
+ private static String findDirContainingResource(String name) throws URISyntaxException, MalformedURLException
+ {
+ URL url = Thread.currentThread().getContextClassLoader().getResource(name);
+ if(url == null)
+ throw new IllegalArgumentException("can't find resource '" + name + "'");
+ String spec = url.toString();
+ URL realURL = new URL(spec.substring(0, spec.length() - name.length()));
+ return new File(realURL.toURI()).getAbsolutePath();
+ }
+
+ @Test
+ public void testMainDeployerIsThere()
+ {
+ assertNotNull(mainDeployer);
+ }
+}
Added: projects/reloaded/trunk/vdf-bootstrap/src/test/resources/log4j.xml
===================================================================
--- projects/reloaded/trunk/vdf-bootstrap/src/test/resources/log4j.xml (rev 0)
+++ projects/reloaded/trunk/vdf-bootstrap/src/test/resources/log4j.xml 2009-03-25 15:39:33 UTC (rev 86356)
@@ -0,0 +1,119 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<!-- ===================================================================== -->
+<!-- -->
+<!-- Log4j Configuration -->
+<!-- -->
+<!-- ===================================================================== -->
+
+<!-- $Id: log4j.xml 68671 2008-01-08 10:04:25Z wolfc $ -->
+
+<!--
+ | For more configuration infromation and examples see the Jakarta Log4j
+ | owebsite: http://jakarta.apache.org/log4j
+ -->
+
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
+
+ <!-- ================================= -->
+ <!-- Preserve messages in a local file -->
+ <!-- ================================= -->
+
+ <!-- A time/date based rolling appender -->
+ <appender name="FILE" class="org.jboss.logging.appender.DailyRollingFileAppender">
+ <param name="File" value="target/test.log"/>
+ <param name="Append" value="false"/>
+
+ <!-- Rollover at midnight each day -->
+ <param name="DatePattern" value="'.'yyyy-MM-dd"/>
+
+ <!-- Rollover at the top of each hour
+ <param name="DatePattern" value="'.'yyyy-MM-dd-HH"/>
+ -->
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The default pattern: Date Priority [Category] Message\n -->
+ <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
+
+ <!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n
+ <param name="ConversionPattern" value="%d %-5r %-5p [%c] (%t:%x) %m%n"/>
+ -->
+ </layout>
+ </appender>
+
+ <!-- A size based file rolling appender
+ <appender name="FILE" class="org.jboss.logging.appender.RollingFileAppender">
+ <param name="File" value="${jboss.server.home.dir}/log/server.log"/>
+ <param name="Append" value="false"/>
+ <param name="MaxFileSize" value="500KB"/>
+ <param name="MaxBackupIndex" value="1"/>
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
+ </layout>
+ </appender>
+ -->
+
+ <!-- ============================== -->
+ <!-- Append messages to the console -->
+ <!-- ============================== -->
+
+ <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
+ <param name="Target" value="System.out"/>
+ <param name="Threshold" value="ALL"/>
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The default pattern: Date Priority [Category] Message\n -->
+ <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
+ </layout>
+ </appender>
+
+
+ <!-- ================ -->
+ <!-- Limit categories -->
+ <!-- ================ -->
+
+ <!-- Limit JBoss categories to INFO
+ <category name="org.jboss">
+ <priority value="INFO" class="org.jboss.logging.XLevel"/>
+ </category>
+ -->
+
+ <!-- Increase the priority threshold for the DefaultDS category
+ <category name="DefaultDS">
+ <priority value="FATAL"/>
+ </category>
+ -->
+
+ <!-- Decrease the priority threshold for the org.jboss.varia category
+ <category name="org.jboss.varia">
+ <priority value="DEBUG"/>
+ </category>
+ -->
+
+ <!--
+ | An example of enabling the custom TRACE level priority that is used
+ | by the JBoss internals to diagnose low level details. This example
+ | turns on TRACE level msgs for the org.jboss.ejb.plugins package and its
+ | subpackages. This will produce A LOT of logging output.
+ <category name="org.jboss.system">
+ <priority value="TRACE" class="org.jboss.logging.XLevel"/>
+ </category>
+ -->
+
+ <category name="org.jboss">
+ <priority value="INFO"/>
+ </category>
+
+ <!-- ======================= -->
+ <!-- Setup the Root category -->
+ <!-- ======================= -->
+
+ <root>
+ <priority value="WARN" />
+ <appender-ref ref="CONSOLE"/>
+ <appender-ref ref="FILE"/>
+ </root>
+
+</log4j:configuration>
More information about the jboss-cvs-commits
mailing list