[jbpm-commits] JBoss JBPM SVN: r6817 - projects/jsf-console/branches/jsf-console-3.2-soa/console-tomcat/src/main and 3 other directories.
do-not-reply at jboss.org
do-not-reply at jboss.org
Fri Nov 12 06:27:37 EST 2010
Author: alex.guizar at jboss.com
Date: 2010-11-12 06:27:36 -0500 (Fri, 12 Nov 2010)
New Revision: 6817
Added:
jbpm3/branches/jbpm-3.2-soa/distribution/src/main/resources/installer/auto-install-tomcat.xml
projects/jsf-console/branches/jsf-console-3.2-soa/console-tomcat/src/main/webapp/
projects/jsf-console/branches/jsf-console-3.2-soa/console-tomcat/src/main/webapp/META-INF/
projects/jsf-console/branches/jsf-console-3.2-soa/console-tomcat/src/main/webapp/META-INF/context.xml
projects/jsf-console/branches/jsf-console-3.2-soa/console-tomcat/src/main/webapp/WEB-INF/
projects/jsf-console/branches/jsf-console-3.2-soa/console-tomcat/src/main/webapp/WEB-INF/web.xml
Log:
JBPM-2978 support tomcat as deployment target
Added: jbpm3/branches/jbpm-3.2-soa/distribution/src/main/resources/installer/auto-install-tomcat.xml
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/distribution/src/main/resources/installer/auto-install-tomcat.xml (rev 0)
+++ jbpm3/branches/jbpm-3.2-soa/distribution/src/main/resources/installer/auto-install-tomcat.xml 2010-11-12 11:27:36 UTC (rev 6817)
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<AutomatedInstallation langpack="eng">
+ <com.izforge.izpack.panels.HelloPanel />
+ <com.izforge.izpack.panels.TargetPanel>
+ <installpath>@jbpm.home@</installpath>
+ </com.izforge.izpack.panels.TargetPanel>
+ <com.izforge.izpack.panels.TreePacksPanel>
+ <pack name="jBPM Standalone" index="0" selected="true" />
+ <pack name="Process Engine" index="1" selected="true" />
+ <pack name="Documentation" index="2" selected="true" />
+ <pack name="Eclipse Designer" index="3" selected="true" />
+ <pack name="JBoss AS Integration" index="4" selected="false" />
+ <pack name="jBPM Service" index="5" selected="false" />
+ <pack name="JSF Console" index="6" selected="false" />
+ <pack name="Tomcat Integration" index="7" selected="true" />
+ <pack name="Optional Downloads" index="8" selected="false" />
+ <pack name="JBoss AS" index="9" selected="false" />
+ <pack name="Eclipse" index="10" selected="false" />
+ </com.izforge.izpack.panels.TreePacksPanel>
+ <com.izforge.izpack.panels.UserInputPanel>
+ <userInput>
+ <entry key="jbossTargetServer" value="@jboss.server@" />
+ <entry key="jbossSelection" value="@container@" />
+ </userInput>
+ </com.izforge.izpack.panels.UserInputPanel>
+ <com.izforge.izpack.panels.UserInputPanel>
+ <userInput>
+ <entry key="jbossInstallPath" value="@jboss.home@" />
+ </userInput>
+ </com.izforge.izpack.panels.UserInputPanel>
+ <com.izforge.izpack.panels.UserInputPanel>
+ <userInput>
+ <entry key="tomcatInstallPath" value="@tomcat.home@" />
+ </userInput>
+ </com.izforge.izpack.panels.UserInputPanel>
+ <com.izforge.izpack.panels.UserInputPanel>
+ <userInput>
+ <entry key="dbSelection" value="@database@" />
+ </userInput>
+ </com.izforge.izpack.panels.UserInputPanel>
+ <com.izforge.izpack.panels.SummaryPanel />
+ <com.izforge.izpack.panels.InstallPanel />
+ <com.izforge.izpack.panels.FinishPanel />
+</AutomatedInstallation>
Property changes on: jbpm3/branches/jbpm-3.2-soa/distribution/src/main/resources/installer/auto-install-tomcat.xml
___________________________________________________________________
Name: svn:eol-style
+ native
Added: projects/jsf-console/branches/jsf-console-3.2-soa/console-tomcat/src/main/webapp/META-INF/context.xml
===================================================================
--- projects/jsf-console/branches/jsf-console-3.2-soa/console-tomcat/src/main/webapp/META-INF/context.xml (rev 0)
+++ projects/jsf-console/branches/jsf-console-3.2-soa/console-tomcat/src/main/webapp/META-INF/context.xml 2010-11-12 11:27:36 UTC (rev 6817)
@@ -0,0 +1,18 @@
+<?xml version="1.0" ?>
+<Context>
+ <Resource name="jdbc/JbpmDataSource" auth="Container" type="javax.sql.DataSource"
+ driverClassName="org.hsqldb.jdbcDriver"
+ url="jdbc:hsqldb:${catalina.base}/work/Catalina/localhost/jbpm-console/jbpmDB"
+ username="sa" password="" />
+
+ <Realm className="org.jbpm.realm.DataSourceRealm" dataSourceName="jdbc/JbpmDataSource"
+ localDataSource="true"
+ userQuery="SELECT PASSWORD_
+ FROM JBPM_ID_USER
+ WHERE NAME_=?"
+ roleQuery="SELECT g.NAME_
+ FROM JBPM_ID_GROUP g
+ JOIN JBPM_ID_MEMBERSHIP m ON g.ID_ = m.GROUP_
+ JOIN JBPM_ID_USER u ON m.USER_ = u.ID_
+ WHERE g.TYPE_='security-role' AND u.NAME_=?" />
+</Context>
Property changes on: projects/jsf-console/branches/jsf-console-3.2-soa/console-tomcat/src/main/webapp/META-INF/context.xml
___________________________________________________________________
Name: svn:eol-style
+ native
Added: projects/jsf-console/branches/jsf-console-3.2-soa/console-tomcat/src/main/webapp/WEB-INF/web.xml
===================================================================
--- projects/jsf-console/branches/jsf-console-3.2-soa/console-tomcat/src/main/webapp/WEB-INF/web.xml (rev 0)
+++ projects/jsf-console/branches/jsf-console-3.2-soa/console-tomcat/src/main/webapp/WEB-INF/web.xml 2010-11-12 11:27:36 UTC (rev 6817)
@@ -0,0 +1,117 @@
+<?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>
+ </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>/ua/login-example.jsf</form-login-page>
+ <form-error-page>/ua/login-example.jsf?error=true</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>
+</web-app>
Property changes on: projects/jsf-console/branches/jsf-console-3.2-soa/console-tomcat/src/main/webapp/WEB-INF/web.xml
___________________________________________________________________
Name: svn:eol-style
+ native
More information about the jbpm-commits
mailing list