Author: ryanzhang
Date: 2010-08-11 03:09:44 -0400 (Wed, 11 Aug 2010)
New Revision: 6570
Added:
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/build.xml
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/post-patch/
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/post-patch/patch_gpd_deployer_ui.xml
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/post-patch/patch_jbpm_console_ui.xml
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/resource/
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/resource/gpd-console/
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/resource/gpd-console/jboss-web.xml
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/resource/gpd-console/web.xml
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/resource/jbpm-console/
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/resource/jbpm-console/JBossLogo.jpg
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/resource/jbpm-console/WEB-INF/
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/resource/jbpm-console/WEB-INF/jboss-web.xml
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/resource/jbpm-console/WEB-INF/web.xml
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/resource/jbpm-console/login.jsp
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/resource/jbpm-console/web.xml
Removed:
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/src/
Modified:
projects/jsf-console/branches/jsf-console-3.2-soa/console/pom.xml
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/pom.xml
Log:
Refactor soa profile, Put soa overlay into a seperate module soa-distribution
Modified: projects/jsf-console/branches/jsf-console-3.2-soa/console/pom.xml
===================================================================
--- projects/jsf-console/branches/jsf-console-3.2-soa/console/pom.xml 2010-08-11 06:42:58
UTC (rev 6569)
+++ projects/jsf-console/branches/jsf-console-3.2-soa/console/pom.xml 2010-08-11 07:09:44
UTC (rev 6570)
@@ -51,65 +51,4 @@
</dependency>
</dependencies>
- <profiles>
- <profile>
- <id>soa</id>
- <dependencies>
- <dependency>
- <groupId>org.jbpm.jbpm3</groupId>
- <artifactId>soa-webapp</artifactId>
- <version>${project.version}</version>
- <type>war</type>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-war-plugin</artifactId>
-
- <executions>
- <execution>
- <id>default-war</id>
- <goals>
- <goal>war</goal>
- </goals>
- <configuration>
- <overlays>
- <overlay>
- <groupId>org.jbpm.jbpm3</groupId>
- <artifactId>soa-webapp</artifactId>
- <skip>true</skip>
- </overlay>
- </overlays>
- </configuration>
- </execution>
-
- <execution>
- <id>soa-war</id>
- <goals>
- <goal>war</goal>
- </goals>
- <configuration>
- <classifier>soa</classifier>
- <primaryArtifact>false</primaryArtifact>
- <webappDirectory>
- ${project.build.directory}/${project.build.finalName}-soa
- </webappDirectory>
- <overlays>
- <overlay>
- <groupId>org.jbpm.jbpm3</groupId>
- <artifactId>soa-webapp</artifactId>
- </overlay>
- <!-- empty groupId/artifactId means the current build -->
- <overlay />
- </overlays>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
Added: projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/build.xml
===================================================================
--- projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/build.xml
(rev 0)
+++
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/build.xml 2010-08-11
07:09:44 UTC (rev 6570)
@@ -0,0 +1,34 @@
+<project name="SOA jbpm console builder">
+
+ <target name="build">
+ <copy todir="${module_base_dir}/target/work"
file="${module_base_dir}/../console/target/jsf-console-${project.version}.war"
/>
+ <unzip
src="${module_base_dir}/target/work/jsf-console-${project.version}.war"
dest="${module_base_dir}/target/work/console-war"/>
+ <delete file="${module_base_dir}/target/work/console-war/WEB-INF/web.xml"
/>
+ <copy todir="${module_base_dir}/target/work/console-war/" >
+ <fileset dir="${module_base_dir}/resource/jbpm-console/"
includes="**/*" excludes="web.xml" />
+ </copy>
+ <copy todir="${module_base_dir}/target/work/console-war/WEB-INF"
file="resource/jbpm-console/web.xml" />
+ <unzip src="../gpd-deployer/target/gpd-deployer-${project.version}.war"
dest="${module_base_dir}/target/work/gpd-war"/>
+ <delete file="${module_base_dir}/target/work/gpd-war/WEB-INF/web.xml"
/>
+ <copy todir="${module_base_dir}/target/work/gpd-war/WEB-INF"
file="${module_base_dir}/resource/gpd-console/web.xml" />
+
+ </target>
+ <target name="assemble">
+ <copy preservelastmodified="true"
todir="${module_base_dir}/target/dist/jbpm-console.war">
+ <fileset dir="${module_base_dir}/target/work/console-war"
includes="**/*" />
+ </copy>
+
+ <copy preservelastmodified="true"
todir="${module_base_dir}/target/dist/gpd-deployer.war">
+ <fileset dir="${module_base_dir}/target/work/gpd-war"
includes="**/*" />
+ </copy>
+
+ <war destfile="${module_base_dir}/target/${module_build_finalName}.war"
webxml="${module_base_dir}/target/dist/jbpm-console.war/WEB-INF/web.xml">
+ <fileset dir="${module_base_dir}/target/dist/jbpm-console.war"
includes="**/*" />
+ </war>
+
+ <zip destfile="${module_base_dir}/target/${module_build_finalName}.zip"
>
+ <zipfileset dir="${module_base_dir}/target/dist"
prefix="jbpm-console" includes="**/*" />
+ </zip>
+
+ </target>
+</project>
Modified: projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/pom.xml
===================================================================
--- projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/pom.xml 2010-08-11
06:42:58 UTC (rev 6569)
+++ projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/pom.xml 2010-08-11
07:09:44 UTC (rev 6570)
@@ -13,7 +13,7 @@
<name>jBPM3 - Build SOA-P distribution</name>
<groupId>org.jbpm.jbpm3</groupId>
<artifactId>jsf-console-soa</artifactId>
- <packaging>war</packaging>
+ <packaging>pom</packaging>
<!-- Parent -->
<parent>
@@ -22,4 +22,130 @@
<version>3.2.10-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
+
+ <properties>
+
<soa_common_build_src.groupId>org.jboss.jbosssoa</soa_common_build_src.groupId>
+
<soa_common_build_src.artifactId>soa-common-build-src</soa_common_build_src.artifactId>
+ <soa_common_build_src.version>1.0.0</soa_common_build_src.version>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>${soa_common_build_src.groupId}</groupId>
+ <artifactId>${soa_common_build_src.artifactId}</artifactId>
+ <version>${soa_common_build_src.version}</version>
+ <type>zip</type>
+ </dependency>
+ </dependencies>
+
+ <!-- Plugins -->
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>unpack-soa-common-build-src</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>unpack</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${project.basedir}</outputDirectory>
+ <artifactItems>
+ <artifactItem>
+ <groupId>${soa_common_build_src.groupId}</groupId>
+
<artifactId>${soa_common_build_src.artifactId}</artifactId>
+ <version>${soa_common_build_src.version}</version>
+ <type>zip</type>
+ </artifactItem>
+ </artifactItems>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.3</version>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ </configuration>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.ant</groupId>
+ <artifactId>ant</artifactId>
+ <version>1.7.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ant</groupId>
+ <artifactId>ant-nodeps</artifactId>
+ <version>1.7.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ant</groupId>
+ <artifactId>ant-launcher</artifactId>
+ <version>1.7.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ant</groupId>
+ <artifactId>ant-trax</artifactId>
+ <version>1.7.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.groovy</groupId>
+ <artifactId>groovy-all</artifactId>
+ <version>1.7.0</version>
+ </dependency>
+ </dependencies>
+
+ <executions>
+ <execution>
+ <id>SOA build process</id>
+ <phase>process-classes</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <tasks>
+ <ant antfile="build-common.xml"
target="soa.routine.build" dir="${project.basedir}"
inheritAll="false">
+ <property name="module_base_dir"
value="${project.basedir}"/>
+ <property name="module_build_finalName"
value="${project.build.finalName}"/>
+ <property name="project.version"
value="${project.version}"/>
+ <property name="groovy.path"
value="${maven.dependency.org.codehaus.groovy.groovy-all.jar.path}" />
+ </ant>
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <version>1.2</version>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>attach-artifact</goal>
+ </goals>
+ <configuration>
+ <artifacts>
+ <artifact>
+
<file>${project.build.directory}/${project.build.finalName}.zip</file>
+ <type>zip</type>
+ </artifact>
+ <artifact>
+
<file>${project.build.directory}/${project.build.finalName}.war</file>
+ <type>war</type>
+ </artifact>
+ </artifacts>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
</project>
Added:
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/post-patch/patch_gpd_deployer_ui.xml
===================================================================
---
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/post-patch/patch_gpd_deployer_ui.xml
(rev 0)
+++
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/post-patch/patch_gpd_deployer_ui.xml 2010-08-11
07:09:44 UTC (rev 6570)
@@ -0,0 +1,23 @@
+<project name="patchname" default="apply.patch">
+ <!-- change logo and make style unify with soa platform -->
+ <property name="gpd_war_dir"
location="${module_base_dir}/target/work/gpd-war" />
+
+ <target name="apply.patch">
+ <delete file="${gpd_war_dir}/jbpm.css" />
+ <replace file="${gpd_war_dir}/index.html" >
+ <replacetoken><![CDATA[jbpm.css]]></replacetoken>
+ <replacevalue><![CDATA[/css/soa.css]]></replacevalue>
+ </replace>
+ <replace file="${gpd_war_dir}/index.html" >
+ <replacetoken><![CDATA[<body>]]></replacetoken>
+ <replacevalue><![CDATA[<body><script language="javascript"
type="text/javascript" src="/css/header.js"
></script>]]></replacevalue>
+ </replace>
+ <replace file="${gpd_war_dir}/index.html" >
+ <replacetoken><![CDATA[</body>]]></replacetoken>
+ <replacevalue><![CDATA[</body><script
language="javascript" type="text/javascript"
src="/css/footer.js" ></script>]]></replacevalue>
+ </replace>
+
+ <delete file="${gpd_war_dir}/WEB-INF/jboss-web.xml" />
+ <copy todir="${gpd_war_dir}/WEB-INF"
file="${module_base_dir}/resource/gpd-console/jboss-web.xml" />
+ </target>
+</project>
Added:
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/post-patch/patch_jbpm_console_ui.xml
===================================================================
---
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/post-patch/patch_jbpm_console_ui.xml
(rev 0)
+++
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/post-patch/patch_jbpm_console_ui.xml 2010-08-11
07:09:44 UTC (rev 6570)
@@ -0,0 +1,63 @@
+<project name="patchname" default="apply.patch">
+ <!-- change logo and make style unify with soa platform -->
+ <target name="apply.patch">
+ <replace file="${module_base_dir}/target/work/console-war/login.jsp"
>
+ <replacetoken><![CDATA[<a href="/"><img
src="/console-war/JBossLogo.jpg" alt="JBoss SOA
Platform"/></a>
+]]></replacetoken>
+ <replacevalue></replacevalue>
+ </replace>
+ <replace file="${module_base_dir}/target/work/console-war/login.jsp"
>
+ <replacetoken><![CDATA[</head>]]></replacetoken>
+ <replacevalue><![CDATA[<link href="/css/soa.css"
rel="stylesheet" type="text/css"/>
+ </head>]]></replacevalue>
+ </replace>
+
+ <replace file="${module_base_dir}/target/work/console-war/login.jsp">
+ <replacetoken><![CDATA[<body>]]></replacetoken>
+ <replacevalue><![CDATA[<body><script
language="javascript" type="text/javascript"
src="/css/header.js" ></script>]]>
+ </replacevalue>
+ </replace>
+ <replace
file="${module_base_dir}/target/work/console-war/login.jsp">
+ <replacetoken><![CDATA[</body>]]></replacetoken>
+ <replacevalue><![CDATA[<script language="javascript"
type="text/javascript" src="/css/footer.js"
></script></body>]]>
+ </replacevalue>
+ </replace>
+
+ <replace file="${module_base_dir}/target/work/console-war/login.jsp">
+ <replacetoken><![CDATA[background: #ff8c00;]]></replacetoken>
+ <replacevalue><![CDATA[background: #cc0000; color:
white;]]></replacevalue>
+ </replace>
+ <replace file="${module_base_dir}/target/work/console-war/login.jsp">
+ <replacetoken><![CDATA[Invalid
Login/Password]]></replacetoken>
+ <replacevalue><![CDATA[Invalid User
Name/Password]]></replacevalue>
+ </replace>
+ <replace file="${module_base_dir}/target/work/console-war/login.jsp">
+ <replacetoken><![CDATA[background-color:
gainsboro;]]></replacetoken>
+ <replacevalue><![CDATA[background-color:
#cccccc;]]></replacevalue>
+ </replace>
+
+ <replace
file="${module_base_dir}/target/work/console-war/ua/t_base.xhtml" >
+ <replacetoken><![CDATA[</head>]]></replacetoken>
+ <replacevalue><![CDATA[<link href="/css/soa.css"
rel="stylesheet" type="text/css"/>
+ </head>]]></replacevalue>
+ </replace>
+
+ <replace file="${module_base_dir}/target/work/console-war/ua/t_base.xhtml"
>
+ <replacetoken><![CDATA[<ui:insert name="top"/>
+ <img src="../images/background.gif"
alt=""/>]]></replacetoken>
+ <replacevalue><![CDATA[<script language="javascript"
type="text/javascript" src="/css/header.js" ></script>
+ <ui:insert name="top"/>]]></replacevalue>
+ </replace>
+ <replace
file="${module_base_dir}/target/work/console-war/ua/t_base.xhtml" >
+ <replacetoken><![CDATA[<tr>
+ <td colspan="2"
class="layoutfooter"><h:outputText
value="#{msgs['title']}"/></td>
+ </tr>
+ </tbody>
+ </table>
+]]></replacetoken>
+ <replacevalue><![CDATA[</tbody>
+ </table>
+ <script language="javascript" type="text/javascript"
src="/css/footer.js" ></script>]]></replacevalue>
+ </replace>
+ </target>
+</project>
Added:
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/resource/gpd-console/jboss-web.xml
===================================================================
---
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/resource/gpd-console/jboss-web.xml
(rev 0)
+++
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/resource/gpd-console/jboss-web.xml 2010-08-11
07:09:44 UTC (rev 6570)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE jboss-web PUBLIC
+ "-//JBoss//DTD Web Application 2.4//EN"
+ "http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">
+
+<jboss-web>
+ <!--
+ Specify the security domain to use. This will be java:/jaas/<name> where
+ <name> is one of the names configured in your login-config.xml.
+ -->
+ <security-domain>java:/jaas/soa</security-domain>
+
+</jboss-web>
Added:
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/resource/gpd-console/web.xml
===================================================================
---
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/resource/gpd-console/web.xml
(rev 0)
+++
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/resource/gpd-console/web.xml 2010-08-11
07:09:44 UTC (rev 6570)
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+ <servlet>
+ <description>Server counterpart for the Graphical Process Designer
+ deployment feature.</description>
+ <servlet-name>GPD Deployer Servlet</servlet-name>
+ <servlet-class>org.jbpm.web.ProcessUploadServlet</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>GPD Deployer Servlet</servlet-name>
+ <url-pattern>/upload/*</url-pattern>
+ </servlet-mapping>
+
+ <security-role>
+ <description>This role list should be changed to include all the relevant
+ roles for your environment.</description>
+ <role-name>admin</role-name>
+ </security-role>
+
+ <security-constraint>
+ <web-resource-collection>
+ <web-resource-name>Secure Area</web-resource-name>
+ <description>If you are deploying to JBoss AS, be sure to specify the
+ security domain in jboss-web.xml.</description>
+ <url-pattern>/*</url-pattern>
+ <http-method>GET</http-method>
+ <http-method>POST</http-method>
+ </web-resource-collection>
+ <auth-constraint>
+ <description>Optionally customize the role name to require a login before
+ access is allowed to the application.</description>
+ <role-name>JBossAdmin</role-name>
+ </auth-constraint>
+ </security-constraint>
+
+ <login-config>
+ <auth-method>BASIC</auth-method>
+ <realm-name>jBPM GPD Deployer</realm-name>
+ </login-config>
+
+ <security-role>
+ <role-name>JBossAdmin</role-name>
+ </security-role>
+</web-app>
Added:
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/resource/jbpm-console/JBossLogo.jpg
===================================================================
(Binary files differ)
Property changes on:
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/resource/jbpm-console/JBossLogo.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/resource/jbpm-console/WEB-INF/jboss-web.xml
===================================================================
---
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/resource/jbpm-console/WEB-INF/jboss-web.xml
(rev 0)
+++
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/resource/jbpm-console/WEB-INF/jboss-web.xml 2010-08-11
07:09:44 UTC (rev 6570)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.4//EN"
"http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">
+
+<jboss-web>
+ <!--
+ Specify the security domain to use. This will be java:/jaas/<name> where
+ <name> is one of the names configured in your login-config.xml.
+ -->
+ <security-domain>java:/jaas/soa</security-domain>
+ <context-root>jbpm-console</context-root>
+
+ <resource-ref>
+ <res-ref-name>jdbc/JbpmDataSource</res-ref-name>
+ <jndi-name>java:/JbpmDS</jndi-name>
+ </resource-ref>
+
+ <resource-ref>
+ <res-ref-name>jms/JbpmConnectionFactory</res-ref-name>
+ <jndi-name>java:JmsXA</jndi-name>
+ </resource-ref>
+
+ <ejb-local-ref>
+ <ejb-ref-name>ejb/TimerEntityBean</ejb-ref-name>
+ <local-jndi-name>java:jbpm/TimerEntityBean</local-jndi-name>
+ </ejb-local-ref>
+
+ <!-- workaround for "mapped-name is required" exception in JBoss 5.0.0.CR1
-->
+ <message-destination-ref>
+
<message-destination-ref-name>jms/JobQueue</message-destination-ref-name>
+ <jndi-name>queue/JbpmJobQueue</jndi-name>
+ </message-destination-ref>
+
+</jboss-web>
Added:
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/resource/jbpm-console/WEB-INF/web.xml
===================================================================
---
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/resource/jbpm-console/WEB-INF/web.xml
(rev 0)
+++
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/resource/jbpm-console/WEB-INF/web.xml 2010-08-11
07:09:44 UTC (rev 6570)
@@ -0,0 +1,148 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+
+ <servlet>
+ <description>Enable the JSF servlet. See faces-config.xml for Faces-specific
configuration.</description>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+
+ <!-- Mapping for all plain pages. -->
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
+
+ <!-- This mapping is for the process images. -->
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>/app/pi/*</url-pattern>
+ </servlet-mapping>
+
+ <context-param>
+ <description>Use Documents Saved as *.xhtml</description>
+ <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+ <param-value>.xhtml</param-value>
+ </context-param>
+
+ <context-param>
+ <description>Facelets debug output</description>
+ <param-name>facelets.DEVELOPMENT</param-name>
+ <param-value>false</param-value>
+ </context-param>
+
+ <!-- A simple JSP to redirect to the basic search page. -->
+ <welcome-file-list>
+ <welcome-file>index.jsp</welcome-file>
+ </welcome-file-list>
+
+ <!--
+ This role list should be changed to include all the relevant roles for your
+ environment.
+ -->
+ <security-role>
+ <role-name>admin</role-name>
+ </security-role>
+ <security-role>
+ <role-name>user</role-name>
+ </security-role>
+
+ <!--
+ Security constraints - optionally customize the role name to require a login
+ before access is allowed. Also, be sure to edit jboss-web.xml to configure
+ the security domain if you are deploying inside JBoss AS.
+ -->
+ <security-constraint>
+ <web-resource-collection>
+ <web-resource-name>Secure Area</web-resource-name>
+ <url-pattern>/app/*</url-pattern>
+ <http-method>GET</http-method>
+ <http-method>POST</http-method>
+ </web-resource-collection>
+ <auth-constraint>
+ <role-name>user</role-name>
+ </auth-constraint>
+ </security-constraint>
+
+ <!-- SOA-P Login page -->
+ <login-config>
+ <auth-method>FORM</auth-method>
+ <form-login-config>
+ <form-login-page>/login.jsp</form-login-page>
+ <form-error-page>/login.jsp?error=1</form-error-page>
+ </form-login-config>
+ </login-config>
+
+ <!-- Login configuration option #1 - use the login page ==>
+ <login-config>
+ <auth-method>FORM</auth-method>
+ <form-login-config>
+ <form-login-page>/ua/login.jsf</form-login-page>
+ <form-error-page>/ua/login.jsf?error=true</form-error-page>
+ </form-login-config>
+ </login-config>
+ <!== Login configuration option #1 -->
+
+ <!-- Login configuration option #2 - use basic auth ==>
+ <login-config>
+ <auth-method>BASIC</auth-method>
+ <realm-name>jBPM Administration Console</realm-name>
+ </login-config>
+ <!== Login configuration option #2 -->
+
+ <!-- Job executor launcher ==>
+ <listener>
+ <description>
+ Starts the job executor on initialization and stops it on destruction.
+ </description>
+ <listener-class>org.jbpm.web.JobExecutorLauncher</listener-class>
+ </listener>
+ <!== Job executor launcher -->
+
+ <listener>
+ <description>Closes the jBPM configuration on destruction, releasing
resources.
+ This listener should appear after the job executor launcher,
+ to avoid reopening the configuration.</description>
+ <listener-class>org.jbpm.web.JbpmConfigurationCloser</listener-class>
+ </listener>
+
+ <resource-ref>
+ <description>Logical name of the data source that provides connections to the
persistence service.
+ Must match the hibernate.connection.datasource property in the Hibernate
+ configuration file.</description>
+ <res-ref-name>jdbc/JbpmDataSource</res-ref-name>
+ <res-type>javax.sql.DataSource</res-type>
+ <res-auth>Container</res-auth>
+ </resource-ref>
+
+ <resource-ref>
+ <description>Logical name of the factory that provides JMS connections to the
message service.
+ Required for processes that contain asynchronous
continuations.</description>
+ <res-ref-name>jms/JbpmConnectionFactory</res-ref-name>
+ <res-type>javax.jms.ConnectionFactory</res-type>
+ <res-auth>Container</res-auth>
+ </resource-ref>
+
+ <ejb-local-ref>
+ <description>Link to the local entity bean that implements the scheduler
service.
+ Required for processes that contain timers.</description>
+ <ejb-ref-name>ejb/TimerEntityBean</ejb-ref-name>
+ <ejb-ref-type>Entity</ejb-ref-type>
+ <local-home>org.jbpm.ejb.LocalTimerEntityHome</local-home>
+ <local>org.jbpm.ejb.LocalTimerEntity</local>
+ </ejb-local-ref>
+
+ <message-destination-ref>
+ <description>The message service sends job messages to the queue referenced
here. To ensure
+ this is the same queue from which the JobListenerBean receives messages, the
+ message-destination-link element points to a common logical destination,
JobQueue.</description>
+
<message-destination-ref-name>jms/JobQueue</message-destination-ref-name>
+ <message-destination-type>javax.jms.Queue</message-destination-type>
+ <message-destination-usage>Produces</message-destination-usage>
+ <message-destination-link>JobQueue</message-destination-link>
+ </message-destination-ref>
+
+</web-app>
Added:
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/resource/jbpm-console/login.jsp
===================================================================
---
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/resource/jbpm-console/login.jsp
(rev 0)
+++
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/resource/jbpm-console/login.jsp 2010-08-11
07:09:44 UTC (rev 6570)
@@ -0,0 +1,100 @@
+<%
+ if (request.getRemoteUser() != null) {
+ response.sendRedirect("app/");
+ return;
+ }
+ // System.out.println("PATH: " + request.getRequestURI());
+
+%>
+<html>
+<head>
+ <title>JBoss SOA Login</title>
+
+ <style type="text/css">
+ body {
+ font-family: sans-serif;
+ margin-left: 0;
+ margin-right: 0;
+
+ padding-left: 0;
+ padding-right: 0;
+
+ }
+
+ img {
+ border: 0;
+ }
+
+ #content {
+ padding: 15px;
+ }
+
+ h3 {
+ color: #8c8c8c;
+ }
+
+ a:link, a:visited, a {
+ font-weight: bold;
+ color: #333333;
+ }
+
+ a:hover {
+ color: slategray;
+ }
+
+ #topsep {
+ width: 100%;
+ background: url( '/Gradient.jpg' );
+ }
+
+ #footer {
+ text-align: center;
+ font-size: 10px;
+ }
+
+ </style>
+
+</head>
+<body>
+<a href="/"><img src="/jbpm-console/JBossLogo.jpg"
alt="JBoss SOA Platform"/></a>
+
+<div id="topsep"> </div>
+
+<div style="border: 1px solid darkgray; background: #ff8c00; font-weight: bold;
padding: 10px; margin: 5px">
+ You must provide security credentials to access this management console.
+</div>
+
+<% if ("1".equals(request.getParameter("error"))) { %>
+<div style="border: 1px solid darkgray; color: white; background: darkred;
font-weight: bold; padding: 10px; margin: 5px">
+ Invalid Login/Password. Please Try Again.
+</div>
+<% }%>
+
+<div align="center" style="border: 1px solid darkgray;
background-color: gainsboro; font-size: 11px; padding: 15px;">
+ <form name="loginform" method="post"
action="j_security_check">
+ <table class="leftmenu">
+ <tbody>
+ <tr class="leftmenu">
+ <th>User Name</th>
+ <td>
+ <input name="j_username" type="text"/>
+ </td>
+ </tr>
+ <tr class="leftmenu">
+ <th>Password</th>
+ <td>
+ <input name="j_password"
type="password"/>
+ </td>
+ </tr>
+ <tr class="leftmenu">
+ <th/>
+ <td>
+ <input type="submit" value="Log In"/>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </form>
+</div>
+</body>
+</html>
\ No newline at end of file
Added:
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/resource/jbpm-console/web.xml
===================================================================
---
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/resource/jbpm-console/web.xml
(rev 0)
+++
projects/jsf-console/branches/jsf-console-3.2-soa/soa-distribution/resource/jbpm-console/web.xml 2010-08-11
07:09:44 UTC (rev 6570)
@@ -0,0 +1,157 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+
+ <servlet>
+ <description>Enable the JSF servlet. See faces-config.xml for Faces-specific
configuration.</description>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+
+ <!-- Mapping for all plain pages. -->
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
+
+ <!-- This mapping is for the process images. -->
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>/app/pi/*</url-pattern>
+ </servlet-mapping>
+
+ <context-param>
+ <description> Use Documents Saved as *.xhtml </description>
+ <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+ <param-value>.xhtml</param-value>
+ </context-param>
+
+ <context-param>
+ <description> Facelets debug output </description>
+ <param-name>facelets.DEVELOPMENT</param-name>
+ <param-value>false</param-value>
+ </context-param>
+
+ <!-- A simple JSP to redirect to the basic search page. -->
+ <welcome-file-list>
+ <welcome-file>index.jsp</welcome-file>
+ </welcome-file-list>
+
+ <!--
+ This role list should be changed to include all the relevant roles for your
+ environment.
+ -->
+ <security-role>
+ <role-name>admin</role-name>
+ </security-role>
+ <security-role>
+ <role-name>user</role-name>
+ </security-role>
+
+ <!--
+ Security constraints - optionally customize the role name to require a login
+ before access is allowed. Also, be sure to edit jboss-web.xml to configure
+ the security domain if you are deploying inside JBoss AS.
+ -->
+ <security-constraint>
+ <web-resource-collection>
+ <web-resource-name>Secure Area</web-resource-name>
+ <url-pattern>/app/*</url-pattern>
+ <http-method>GET</http-method>
+ <http-method>POST</http-method>
+ </web-resource-collection>
+ <auth-constraint>
+ <role-name>user</role-name>
+ </auth-constraint>
+ </security-constraint>
+
+ <!-- Example Login page - lists sample users -->
+ <login-config>
+ <auth-method>FORM</auth-method>
+ <form-login-config>
+ <form-login-page>/login.jsp</form-login-page>
+ <form-error-page>/login.jsp?error=1</form-error-page>
+ </form-login-config>
+ </login-config>
+
+ <!-- Login configuration option #1 - use the login page ==>
+ <login-config>
+ <auth-method>FORM</auth-method>
+ <form-login-config>
+ <form-login-page>/ua/login.jsf</form-login-page>
+ <form-error-page>/ua/login.jsf?error=true</form-error-page>
+ </form-login-config>
+ </login-config>
+ <!== Login configuration option #1 -->
+
+ <!-- Login configuration option #2 - use basic auth ==>
+ <login-config>
+ <auth-method>BASIC</auth-method>
+ <realm-name>jBPM Administration Console</realm-name>
+ </login-config>
+ <!== Login configuration option #2 -->
+
+ <!-- Job executor launcher ==>
+ <listener>
+ <description>
+ Starts the job executor on initialization and stops it on destruction.
+ </description>
+ <listener-class>org.jbpm.web.JobExecutorLauncher</listener-class>
+ </listener>
+ <!== Job executor launcher -->
+
+ <!-- listener>
+ <description>
+ <description>Closes the jBPM configuration on destruction, releasing resources.
+ This listener should appear after the job executor launcher,
+ to avoid reopening the configuration.</description>
+ <listener-class>org.jbpm.web.JbpmConfigurationCloser</listener-class>
+ </listener -->
+
+ <!--
+ <resource-ref>
+ <description>Logical name of the data source that provides connections to the
persistence service.
+ Must match the hibernate.connection.datasource property in the Hibernate
+ configuration file.</description>
+ <res-ref-name>jdbc/JbpmDataSource</res-ref-name>
+ <res-type>javax.sql.DataSource</res-type>
+ <res-auth>Container</res-auth>
+ </resource-ref>
+ -->
+
+ <!--
+ <resource-ref>
+ <description>Logical name of the factory that provides JMS connections to the
message service.
+ Required for processes that contain asynchronous
continuations.</description>
+ <res-ref-name>jms/JbpmConnectionFactory</res-ref-name>
+ <res-type>javax.jms.ConnectionFactory</res-type>
+ <res-auth>Container</res-auth>
+ </resource-ref>
+ -->
+
+ <!--
+ <ejb-local-ref>
+ <description>Link to the local entity bean that implements the scheduler
service.
+ Required for processes that contain timers.</description>
+ <ejb-ref-name>ejb/TimerEntityBean</ejb-ref-name>
+ <ejb-ref-type>Entity</ejb-ref-type>
+ <local-home>org.jbpm.ejb.LocalTimerEntityHome</local-home>
+ <local>org.jbpm.ejb.LocalTimerEntity</local>
+ </ejb-local-ref>
+ -->
+
+ <!--
+ <message-destination-ref>
+ <description>The message service sends job messages to the queue referenced
here. To ensure
+ this is the same queue from which the JobListenerBean receives messages, the
+ message-destination-link element points to a common logical destination,
JobQueue.</description>
+
<message-destination-ref-name>jms/JobQueue</message-destination-ref-name>
+ <message-destination-type>javax.jms.Queue</message-destination-type>
+ <message-destination-usage>Produces</message-destination-usage>
+ <message-destination-link>JobQueue</message-destination-link>
+ </message-destination-ref>
+ -->
+
+</web-app>