Author: mstruk
Date: 2011-05-19 10:52:08 -0400 (Thu, 19 May 2011)
New Revision: 6496
Added:
sandbox/as7_support/pc/portal/src/assemble/simple-portal-ear-jboss7.xml
sandbox/as7_support/pc/portal/src/assemble/simple-portal-jboss7-ear.xml
sandbox/as7_support/pc/portal/src/assemble/simple-portal-jboss7.xml
sandbox/as7_support/pc/portal/src/assemble/simple-portal-war-jboss7.xml
sandbox/as7_support/pc/portal/src/main/java/org/gatein/pc/portal/SimplePortalInitializer.java
sandbox/as7_support/pc/portal/src/main/resources/jboss7/
sandbox/as7_support/pc/portal/src/main/resources/jboss7/META-INF/
sandbox/as7_support/pc/portal/src/main/resources/jboss7/META-INF/MANIFEST.MF
sandbox/as7_support/pc/portal/src/main/resources/jboss7/META-INF/application.xml
sandbox/as7_support/pc/portal/src/main/resources/jboss7/simple-portal.war/
sandbox/as7_support/pc/portal/src/main/resources/jboss7/simple-portal.war/WEB-INF/
sandbox/as7_support/pc/portal/src/main/resources/jboss7/simple-portal.war/WEB-INF/jboss-web.xml
sandbox/as7_support/pc/portal/src/main/resources/jboss7/simple-portal.war/WEB-INF/web.xml
Modified:
sandbox/as7_support/pc/portal/pom.xml
Log:
JBoss AS7 .ear and .war packaging for simple-portal
Modified: sandbox/as7_support/pc/portal/pom.xml
===================================================================
--- sandbox/as7_support/pc/portal/pom.xml 2011-05-19 14:50:17 UTC (rev 6495)
+++ sandbox/as7_support/pc/portal/pom.xml 2011-05-19 14:52:08 UTC (rev 6496)
@@ -124,6 +124,66 @@
<artifactId>slf4j-log4j12</artifactId>
<version>1.5.6</version>
</dependency>
+
+ <dependency>
+ <groupId>org.gatein.wci</groupId>
+ <artifactId>wci-jboss7</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.gatein.pc</groupId>
+ <artifactId>pc-samples</artifactId>
+ <version>${project.version}</version>
+ <type>war</type>
+ <classifier>basic-portlet</classifier>
+ </dependency>
+
+ <dependency>
+ <groupId>org.gatein.pc</groupId>
+ <artifactId>pc-samples</artifactId>
+ <version>${project.version}</version>
+ <type>war</type>
+ <classifier>eventdebug-portlet</classifier>
+ </dependency>
+
+ <dependency>
+ <groupId>org.gatein.pc</groupId>
+ <artifactId>pc-samples</artifactId>
+ <version>${project.version}</version>
+ <type>war</type>
+ <classifier>google-portlet</classifier>
+ </dependency>
+
+ <dependency>
+ <groupId>org.gatein.pc</groupId>
+ <artifactId>pc-samples</artifactId>
+ <version>${project.version}</version>
+ <type>war</type>
+ <classifier>jsp-portlet</classifier>
+ </dependency>
+
+ <dependency>
+ <groupId>org.gatein.pc</groupId>
+ <artifactId>pc-samples</artifactId>
+ <version>${project.version}</version>
+ <type>war</type>
+ <classifier>remotecontroller-portlet</classifier>
+ </dependency>
+
+ <dependency>
+ <groupId>org.gatein.pc</groupId>
+ <artifactId>pc-samples</artifactId>
+ <version>${project.version}</version>
+ <type>war</type>
+ <classifier>shoppingcart-portlet</classifier>
+ </dependency>
+
+ <dependency>
+ <groupId>org.gatein.pc</groupId>
+ <artifactId>pc-samples</artifactId>
+ <version>${project.version}</version>
+ <classifier>shoppingcart-event</classifier>
+ </dependency>
</dependencies>
<build>
@@ -138,6 +198,8 @@
<descriptor>src/assemble/simple-portal-tomcat60.xml</descriptor>
<descriptor>src/assemble/simple-portal-tomcat70.xml</descriptor>
<descriptor>src/assemble/simple-portal-jboss51.xml</descriptor>
+
<descriptor>src/assemble/simple-portal-jboss7.xml</descriptor>
+
<descriptor>src/assemble/simple-portal-jboss7-ear.xml</descriptor>
</descriptors>
</configuration>
<executions>
Added: sandbox/as7_support/pc/portal/src/assemble/simple-portal-ear-jboss7.xml
===================================================================
--- sandbox/as7_support/pc/portal/src/assemble/simple-portal-ear-jboss7.xml
(rev 0)
+++ sandbox/as7_support/pc/portal/src/assemble/simple-portal-ear-jboss7.xml 2011-05-19
14:52:08 UTC (rev 6496)
@@ -0,0 +1,28 @@
+<component>
+
+ <fileSets>
+
+ <fileSet>
+ <directory>src/main/resources/jboss7</directory>
+ <outputDirectory></outputDirectory>
+ </fileSet>
+
+ <fileSet>
+ <directory>src/main/resources/simple-portal-war</directory>
+ <outputDirectory>simple-portal.war</outputDirectory>
+ <useStrictFiltering>true</useStrictFiltering>
+ <excludes>
+ <exclude>**/jboss-web.xml</exclude>
+ <exclude>**/context.xml</exclude>
+ <exclude>**/jboss-portal-beans.xml</exclude>
+ </excludes>
+ </fileSet>
+
+ <fileSet>
+ <directory>target/classes</directory>
+
<outputDirectory>simple-portal.war/WEB-INF/classes</outputDirectory>
+ </fileSet>
+
+ </fileSets>
+
+</component>
Added: sandbox/as7_support/pc/portal/src/assemble/simple-portal-jboss7-ear.xml
===================================================================
--- sandbox/as7_support/pc/portal/src/assemble/simple-portal-jboss7-ear.xml
(rev 0)
+++ sandbox/as7_support/pc/portal/src/assemble/simple-portal-jboss7-ear.xml 2011-05-19
14:52:08 UTC (rev 6496)
@@ -0,0 +1,59 @@
+<assembly>
+ <id>jboss7-ear</id>
+ <formats>
+ <format>dir</format>
+ </formats>
+ <baseDirectory>simple-portal.ear</baseDirectory>
+
+ <componentDescriptors>
+
<componentDescriptor>src/assemble/simple-portal-ear-jboss7.xml</componentDescriptor>
+ </componentDescriptors>
+
+ <dependencySets>
+ <dependencySet>
+ <outputDirectory></outputDirectory>
+
<outputFileNameMapping>samples${dashClassifier?}.${artifact.extension}</outputFileNameMapping>
+ <includes>
+ <include>org.gatein.pc:pc-samples:war:*:basic-portlet</include>
+
<include>org.gatein.pc:pc-samples:war:*:eventdebug-portlet</include>
+ <include>org.gatein.pc:pc-samples:war:*:google-portlet</include>
+ <include>org.gatein.pc:pc-samples:war:*:jsp-portlet</include>
+
<include>org.gatein.pc:pc-samples:war:*:remotecontroller-portlet</include>
+
<include>org.gatein.pc:pc-samples:war:*:shoppingcart-portlet</include>
+
<include>org.gatein.pc:pc-samples:jar:*:shoppingcart-event</include>
+ </includes>
+ </dependencySet>
+
+ <!--dependencySet>
+ <outputDirectory>lib</outputDirectory>
+ <includes>
+ <include>org.gatein.common:common-common</include>
+ <include>org.gatein.common:common-logging</include>
+ <include>javax.portlet:portlet-api</include>
+ <include>org.gatein.wci:wci-wci</include>
+ <include>org.gatein.wci:wci-jboss6</include>
+
+ <include>org.gatein.pc:pc-portlet</include>
+ <include>org.gatein.pc:pc-api</include>
+ <include>javax.ccpp:ccpp</include>
+ </includes>
+ </dependencySet-->
+ <dependencySet>
+ <outputDirectory>simple-portal.war/WEB-INF/lib</outputDirectory>
+ <includes>
+
+ <include>org.gatein.common:common-mc</include>
+ <include>org.gatein.pc:pc-controller</include>
+ <include>org.gatein.pc:pc-mc</include>
+
+ <include>org.jboss:jboss-common-core</include>
+ <include>org.jboss.microcontainer:jboss-dependency</include>
+ <include>org.jboss:jboss-reflect</include>
+ <include>org.jboss:jboss-mdr</include>
+ <include>org.jboss:jbossxb</include>
+
+ </includes>
+ </dependencySet>
+ </dependencySets>
+
+</assembly>
Added: sandbox/as7_support/pc/portal/src/assemble/simple-portal-jboss7.xml
===================================================================
--- sandbox/as7_support/pc/portal/src/assemble/simple-portal-jboss7.xml
(rev 0)
+++ sandbox/as7_support/pc/portal/src/assemble/simple-portal-jboss7.xml 2011-05-19
14:52:08 UTC (rev 6496)
@@ -0,0 +1,70 @@
+<assembly>
+ <id>jboss7</id>
+ <formats>
+ <format>dir</format>
+ </formats>
+ <baseDirectory></baseDirectory>
+
+ <componentDescriptors>
+
<componentDescriptor>src/assemble/simple-portal-war-jboss7.xml</componentDescriptor>
+
<componentDescriptor>src/assemble/simple-portal-war.xml</componentDescriptor>
+ </componentDescriptors>
+
+ <dependencySets>
+ <dependencySet>
+ <outputDirectory>simple-portal.war/WEB-INF/lib</outputDirectory>
+ <includes>
+
+ <include>org.gatein.common:common-mc</include>
+ <include>org.gatein.pc:pc-controller</include>
+ <include>org.gatein.pc:pc-mc</include>
+
+ <include>org.jboss:jboss-common-core</include>
+ <include>org.jboss.microcontainer:jboss-dependency</include>
+ <include>org.jboss:jboss-reflect</include>
+ <include>org.jboss:jboss-mdr</include>
+ <include>org.jboss:jbossxb</include>
+
+ </includes>
+ </dependencySet>
+
+
+ <!-- modules -->
+ <!--dependencySet>
+ <outputDirectory>modules/javax/ccpp/main</outputDirectory>
+ <includes>
+ <include>javax.ccpp:ccpp</include>
+ </includes>
+ </dependencySet>
+ <dependencySet>
+ <outputDirectory>modules/javax/portlet/main</outputDirectory>
+ <includes>
+ <include>javax.portlet:portlet-api</include>
+ </includes>
+ </dependencySet>
+ <dependencySet>
+ <outputDirectory>modules/org/gatein/main</outputDirectory>
+ <includes>
+ <include>org.gatein:gatein-jboss-as7</include>
+ </includes>
+ </dependencySet>
+ <dependencySet>
+ <outputDirectory>modules/org/gatein/wci/main</outputDirectory>
+ <includes>
+ <include>org.gatein.wci:wci-wci</include>
+ <include>org.gatein.wci:wci-jboss6</include>
+ <include>org.gatein.common:common-common</include>
+ <include>org.gatein.common:common-logging</include>
+ </includes>
+ </dependencySet>
+ <dependencySet>
+ <outputDirectory>modules/org/gatein/pc/main</outputDirectory>
+ <includes>
+ <include>org.gatein.pc:pc-api</include>
+ <include>org.gatein.pc:pc-portlet</include>
+ </includes>
+ </dependencySet-->
+
+ </dependencySets>
+
+</assembly>
Added: sandbox/as7_support/pc/portal/src/assemble/simple-portal-war-jboss7.xml
===================================================================
--- sandbox/as7_support/pc/portal/src/assemble/simple-portal-war-jboss7.xml
(rev 0)
+++ sandbox/as7_support/pc/portal/src/assemble/simple-portal-war-jboss7.xml 2011-05-19
14:52:08 UTC (rev 6496)
@@ -0,0 +1,12 @@
+<component>
+
+ <fileSets>
+
+ <fileSet>
+ <directory>src/main/resources/jboss7/simple-portal.war</directory>
+ <outputDirectory>simple-portal.war</outputDirectory>
+ </fileSet>
+
+ </fileSets>
+
+</component>
Added:
sandbox/as7_support/pc/portal/src/main/java/org/gatein/pc/portal/SimplePortalInitializer.java
===================================================================
---
sandbox/as7_support/pc/portal/src/main/java/org/gatein/pc/portal/SimplePortalInitializer.java
(rev 0)
+++
sandbox/as7_support/pc/portal/src/main/java/org/gatein/pc/portal/SimplePortalInitializer.java 2011-05-19
14:52:08 UTC (rev 6496)
@@ -0,0 +1,133 @@
+package org.gatein.pc.portal;
+
+import org.gatein.pc.mc.PortletApplicationDeployer;
+import org.gatein.pc.portlet.PortletInvokerInterceptor;
+import org.gatein.pc.portlet.aspects.CCPPInterceptor;
+import org.gatein.pc.portlet.aspects.ConsumerCacheInterceptor;
+import org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor;
+import org.gatein.pc.portlet.aspects.EventPayloadInterceptor;
+import org.gatein.pc.portlet.aspects.PortletCustomizationInterceptor;
+import org.gatein.pc.portlet.aspects.ProducerCacheInterceptor;
+import org.gatein.pc.portlet.aspects.RequestAttributeConversationInterceptor;
+import org.gatein.pc.portlet.aspects.SecureTransportInterceptor;
+import org.gatein.pc.portlet.aspects.ValveInterceptor;
+import org.gatein.pc.portlet.container.ContainerPortletDispatcher;
+import org.gatein.pc.portlet.container.ContainerPortletInvoker;
+import org.gatein.pc.portlet.impl.state.StateConverterV0;
+import org.gatein.pc.portlet.impl.state.StateManagementPolicyService;
+import org.gatein.pc.portlet.impl.state.producer.PortletStatePersistenceManagerService;
+import org.gatein.pc.portlet.state.producer.ProducerPortletInvoker;
+import org.gatein.wci.ServletContainer;
+import org.gatein.wci.ServletContainerFactory;
+import org.gatein.wci.impl.DefaultServletContainerFactory;
+
+import javax.servlet.ServletContext;
+import javax.servlet.ServletContextEvent;
+import javax.servlet.ServletContextListener;
+
+/**
+ * @author <a href="mailto:mstrukel@redhat.com">Marko Strukelj</a>
+ */
+public class SimplePortalInitializer implements ServletContextListener
+{
+ private static final String APPLICATION_DEPLOYER_KEY =
"jboss.portal:service=PortletApplicationDeployer";
+
+ public SimplePortalInitializer()
+ {}
+
+ public void doInit(ServletContext ctx)
+ {
+ PortletApplicationDeployer deployer = new PortletApplicationDeployer();
+ ctx.setAttribute(APPLICATION_DEPLOYER_KEY, deployer);
+
+ ServletContainerFactory containerFactory =
DefaultServletContainerFactory.getInstance();
+ deployer.setServletContainerFactory(containerFactory);
+ ctx.setAttribute("jboss.portal:service=ServletContainerFactory",
containerFactory);
+
+ ServletContainer container = containerFactory.getServletContainer();
+ ctx.setAttribute("jboss.portal:service=ServletContainer", container);
+
+ PortletStatePersistenceManagerService persistence = new
PortletStatePersistenceManagerService();
+ ctx.setAttribute("jboss.portal:service=ProducerPersistenceManager",
persistence);
+
+ StateManagementPolicyService state = new StateManagementPolicyService();
+ state.setPersistLocally(true);
+ ctx.setAttribute("jboss.portal:service=ProducerStateManagementPolicy",
state);
+
+ StateConverterV0 stateConverter = new StateConverterV0();
+ ctx.setAttribute("jboss.portal:service=ProducerStateConverter",
stateConverter);
+
+ PortletInvokerInterceptor portletIcpt = new PortletInvokerInterceptor();
+ ctx.setAttribute("jboss.portal:service=ConsumerPortletInvoker",
portletIcpt);
+
+ ConsumerCacheInterceptor cacheIcpt = new ConsumerCacheInterceptor();
+ portletIcpt.setNext(cacheIcpt);
+ ctx.setAttribute("jboss.portal:service=ConsumerCacheInterceptor",
cacheIcpt);
+
+ PortletCustomizationInterceptor customizeIcpt = new
PortletCustomizationInterceptor();
+ cacheIcpt.setNext(customizeIcpt);
+ ctx.setAttribute("jboss.portal:service=PortletCustomizationInterceptor",
customizeIcpt);
+
+ ProducerPortletInvoker ppi = new ProducerPortletInvoker();
+ ppi.setPersistenceManager(persistence);
+ ppi.setStateManagementPolicy(state);
+ ppi.setStateConverter(stateConverter);
+ customizeIcpt.setNext(ppi);
+ ctx.setAttribute("jboss.portal:service=ProducerPortletInvoker", ppi);
+
+ ContainerPortletInvoker cpi = new ContainerPortletInvoker();
+ ppi.setNext(cpi);
+ deployer.setContainerPortletInvoker(cpi);
+ ctx.setAttribute("jboss.portal:service=ContainerPortletInvoker", cpi);
+
+ ValveInterceptor vi = new ValveInterceptor();
+ vi.setPortletApplicationRegistry(deployer);
+ cpi.setNext(vi);
+ ctx.setAttribute("jboss.portal:service=ValveInterceptor", vi);
+
+ SecureTransportInterceptor sti = new SecureTransportInterceptor();
+ vi.setNext(sti);
+ ctx.setAttribute("jboss.portal:service=SecureTransportInterceptor",
sti);
+
+ ContextDispatcherInterceptor ci = new ContextDispatcherInterceptor();
+ ci.setServletContainerFactory(containerFactory);
+ sti.setNext(ci);
+ ctx.setAttribute("jboss.portal:service=ContextDispatcherInterceptor",
ci);
+
+ ProducerCacheInterceptor pci = new ProducerCacheInterceptor();
+ ci.setNext(pci);
+ ctx.setAttribute("jboss.portal:service=ProducerCacheInterceptor", pci);
+
+ CCPPInterceptor ccppi = new CCPPInterceptor();
+ pci.setNext(ccppi);
+ ctx.setAttribute("jboss.portal:service=CCPPInterceptor", ccppi);
+
+ RequestAttributeConversationInterceptor raci = new
RequestAttributeConversationInterceptor();
+ ccppi.setNext(raci);
+
ctx.setAttribute("jboss.portal:service=RequestAttributeConversationInterceptor",
raci);
+
+ EventPayloadInterceptor epi = new EventPayloadInterceptor();
+ raci.setNext(epi);
+ ctx.setAttribute("jboss.portal:service=EventPayloadInterceptor", epi);
+
+ ContainerPortletDispatcher dispatcher = new ContainerPortletDispatcher();
+ epi.setNext(dispatcher);
+ ctx.setAttribute("jboss.portal:service=PortletContainerDispatcher",
dispatcher);
+
+ // don't forget to start the deployer - MC automatically calls start() method,
here we do it manually
+ deployer.start();
+ }
+
+ public void contextInitialized(ServletContextEvent servletContextEvent)
+ {
+ doInit(servletContextEvent.getServletContext());
+ }
+
+ public void contextDestroyed(ServletContextEvent servletContextEvent)
+ {
+ PortletApplicationDeployer deployer = (PortletApplicationDeployer)
+
servletContextEvent.getServletContext().getAttribute(APPLICATION_DEPLOYER_KEY);
+ if (deployer != null)
+ deployer.stop();
+ }
+}
Added: sandbox/as7_support/pc/portal/src/main/resources/jboss7/META-INF/MANIFEST.MF
===================================================================
--- sandbox/as7_support/pc/portal/src/main/resources/jboss7/META-INF/MANIFEST.MF
(rev 0)
+++
sandbox/as7_support/pc/portal/src/main/resources/jboss7/META-INF/MANIFEST.MF 2011-05-19
14:52:08 UTC (rev 6496)
@@ -0,0 +1,2 @@
+Manifest-Version: 1.0
+Dependencies: org.jboss.as.web,org.slf4j
Added: sandbox/as7_support/pc/portal/src/main/resources/jboss7/META-INF/application.xml
===================================================================
--- sandbox/as7_support/pc/portal/src/main/resources/jboss7/META-INF/application.xml
(rev 0)
+++
sandbox/as7_support/pc/portal/src/main/resources/jboss7/META-INF/application.xml 2011-05-19
14:52:08 UTC (rev 6496)
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<application
xmlns="http://java.sun.com/xml/ns/javaee"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
+
http://java.sun.com/xml/ns/javaee/application_6.xsd"
+ version="6">
+ <application-name>Simple Portal</application-name>
+ <description>Simple Portal</description>
+
+ <module>
+ <web>
+ <web-uri>simple-portal.war</web-uri>
+ <context-root>/simple-portal</context-root>
+ </web>
+ </module>
+ <module>
+ <web>
+ <web-uri>samples-basic-portlet.war</web-uri>
+ <context-root>/samples-basic-portlet</context-root>
+ </web>
+ </module>
+ <module>
+ <web>
+ <web-uri>samples-jsp-portlet.war</web-uri>
+ <context-root>/samples-jsp-portlet</context-root>
+ </web>
+ </module>
+ <module>
+ <web>
+ <web-uri>samples-google-portlet.war</web-uri>
+ <context-root>/samples-google-portlet</context-root>
+ </web>
+ </module>
+ <module>
+ <web>
+ <web-uri>samples-eventdebug-portlet.war</web-uri>
+ <context-root>/samples-eventdebug-portlet</context-root>
+ </web>
+ </module>
+ <module>
+ <web>
+ <web-uri>samples-remotecontroller-portlet.war</web-uri>
+ <context-root>/samples-remotecontroller-portlet</context-root>
+ </web>
+ </module>
+ <module>
+ <web>
+ <web-uri>samples-shoppingcart-portlet.war</web-uri>
+ <context-root>/samples-shoppingcart-portlet</context-root>
+ </web>
+ </module>
+ <module>
+ <ejb>samples-shoppingcart-event.jar</ejb>
+ </module>
+</application>
\ No newline at end of file
Added:
sandbox/as7_support/pc/portal/src/main/resources/jboss7/simple-portal.war/WEB-INF/jboss-web.xml
===================================================================
---
sandbox/as7_support/pc/portal/src/main/resources/jboss7/simple-portal.war/WEB-INF/jboss-web.xml
(rev 0)
+++
sandbox/as7_support/pc/portal/src/main/resources/jboss7/simple-portal.war/WEB-INF/jboss-web.xml 2011-05-19
14:52:08 UTC (rev 6496)
@@ -0,0 +1,73 @@
+<?xml version="1.0"?>
+<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ ~ JBoss, a division of Red Hat ~
+ ~ Copyright 2011, Red Hat Middleware, LLC, and individual ~
+ ~ contributors as indicated by the @authors tag. See the ~
+ ~ copyright.txt in the distribution for a full listing of ~
+ ~ individual contributors. ~
+ ~ ~
+ ~ This is free software; you can redistribute it and/or modify it ~
+ ~ under the terms of the GNU Lesser General Public License as ~
+ ~ published by the Free Software Foundation; either version 2.1 of ~
+ ~ the License, or (at your option) any later version. ~
+ ~ ~
+ ~ This software is distributed in the hope that it will be useful, ~
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of ~
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ~
+ ~ Lesser General Public License for more details. ~
+ ~ ~
+ ~ You should have received a copy of the GNU Lesser General Public ~
+ ~ License along with this software; if not, write to the Free ~
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA ~
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org. ~
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
+
+<jboss-web
xmlns="http://www.jboss.com/xml/ns/javaee"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee
http://www.jboss.org/j2ee/schema/jboss-web_6_0.xsd"
+ version="6.0">
+<!--
+xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee
http://www.jboss.org/j2ee/schema/jboss-web_7_0.xsd"
+ version="7.0"
+ -->
+ <!--listener>
+
<class-name>org.gatein.pc.portal.JBossWebContainerListener</class-name>
+ <listener-type>CONTAINER</listener-type>
+ <param>
+ <description>Debug level (DEBUG, INFO, WARN, ERROR)</description>
+ <param-name>debugLevel</param-name>
+ <param-value>debug</param-value>
+ </param>
+ </listener-->
+ <!--listener>
+ <class-name>org.gatein.wci.jboss.JB6WebLifecycleListener</class-name>
+ <listener-type>LIFECYCLE</listener-type>
+ <param>
+ <description>Perform cross-context logout? (true by
default)</description>
+ <param-name>crossContextLogout</param-name>
+ <param-value>true</param-value>
+ </param>
+ </listener-->
+
+ <!--listener>
+
<class-name>org.gatein.pc.portal.JBossWebLifecycleListener</class-name>
+ <listener-type>LIFECYCLE</listener-type>
+ <param>
+ <description>Perform cross-context logout? (true by
default)</description>
+ <param-name>crossContextLogout</param-name>
+ <param-value>true</param-value>
+ </param>
+ </listener-->
+ <!--listener>
+
<class-name>org.gatein.pc.portal.JBossWebServletInstanceListener</class-name>
+ <listener-type>SERVLET_INSTANCE</listener-type>
+ </listener>
+ <listener>
+
<class-name>org.gatein.pc.portal.JBossWebServletContainerListener</class-name>
+ <listener-type>SERVLET_CONTAINER</listener-type>
+ </listener>
+ <listener>
+
<class-name>org.gatein.pc.portal.JBossWebServletLifecycleListener</class-name>
+ <listener-type>SERVLET_LIFECYCLE</listener-type>
+ </listener-->
+</jboss-web>
\ No newline at end of file
Added:
sandbox/as7_support/pc/portal/src/main/resources/jboss7/simple-portal.war/WEB-INF/web.xml
===================================================================
---
sandbox/as7_support/pc/portal/src/main/resources/jboss7/simple-portal.war/WEB-INF/web.xml
(rev 0)
+++
sandbox/as7_support/pc/portal/src/main/resources/jboss7/simple-portal.war/WEB-INF/web.xml 2011-05-19
14:52:08 UTC (rev 6496)
@@ -0,0 +1,54 @@
+<?xml version="1.0"?>
+<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ ~ JBoss, a division of Red Hat ~
+ ~ Copyright 2008, Red Hat Middleware, LLC, and individual ~
+ ~ contributors as indicated by the @authors tag. See the ~
+ ~ copyright.txt in the distribution for a full listing of ~
+ ~ individual contributors. ~
+ ~ ~
+ ~ This is free software; you can redistribute it and/or modify it ~
+ ~ under the terms of the GNU Lesser General Public License as ~
+ ~ published by the Free Software Foundation; either version 2.1 of ~
+ ~ the License, or (at your option) any later version. ~
+ ~ ~
+ ~ This software is distributed in the hope that it will be useful, ~
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of ~
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ~
+ ~ Lesser General Public License for more details. ~
+ ~ ~
+ ~ You should have received a copy of the GNU Lesser General Public ~
+ ~ License along with this software; if not, write to the Free ~
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA ~
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org. ~
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
+
+<web-app
xmlns="http://java.sun.com/xml/ns/javaee"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+ version="2.5">
+
+ <filter>
+ <filter-name>ErrorHandlingFilter</filter-name>
+ <filter-class>org.gatein.pc.portal.ErrorHandlingFilter</filter-class>
+ </filter>
+ <filter>
+ <filter-name>ControllerFilter</filter-name>
+ <filter-class>org.gatein.pc.portal.jsp.ControllerFilter</filter-class>
+ </filter>
+ <filter-mapping>
+ <filter-name>ErrorHandlingFilter</filter-name>
+ <url-pattern>*.jsp</url-pattern>
+ </filter-mapping>
+ <filter-mapping>
+ <filter-name>ControllerFilter</filter-name>
+ <url-pattern>*.jsp</url-pattern>
+ </filter-mapping>
+ <listener>
+
<listener-class>org.gatein.pc.portal.SimplePortalInitializer</listener-class>
+ </listener>
+ <servlet>
+ <servlet-name>ContainerServlet</servlet-name>
+
<servlet-class>org.gatein.wci.jboss.JB7ContainerServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+</web-app>