[jbpm-commits] JBoss JBPM SVN: r5921 - in projects/jsf-console/branches/jsf-console-3.2-soa: console and 11 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon Dec 7 16:10:04 EST 2009


Author: alex.guizar at jboss.com
Date: 2009-12-07 16:10:03 -0500 (Mon, 07 Dec 2009)
New Revision: 5921

Added:
   projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/
   projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/.classpath
   projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/.project
   projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/pom.xml
   projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/src/
   projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/src/main/
   projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/src/main/java/
   projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/src/main/java/org/
   projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/src/main/java/org/jbpm/
   projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/src/main/java/org/jbpm/web/
   projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/src/main/java/org/jbpm/web/BootstrapListener.java
   projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/src/main/java/org/jbpm/web/ProcessUploadServlet.java
   projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/src/main/webapp/
   projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/src/main/webapp/WEB-INF/
   projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/src/main/webapp/WEB-INF/jboss-web.xml
   projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/src/main/webapp/WEB-INF/web.xml
Removed:
   projects/jsf-console/branches/jsf-console-3.2-soa/console/src/main/java/
   projects/jsf-console/branches/jsf-console-3.2-soa/console/src/main/webapp/WEB-INF/classes/
Modified:
   projects/jsf-console/branches/jsf-console-3.2-soa/console/pom.xml
   projects/jsf-console/branches/jsf-console-3.2-soa/console/src/main/webapp/WEB-INF/web.xml
   projects/jsf-console/branches/jsf-console-3.2-soa/pom.xml
Log:
JBPM-2678: create separate gpd-deployer module

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	2009-12-07 11:32:49 UTC (rev 5920)
+++ projects/jsf-console/branches/jsf-console-3.2-soa/console/pom.xml	2009-12-07 21:10:03 UTC (rev 5921)
@@ -1,13 +1,13 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
-  <!-- ====================================================================== -->
-  <!--  jBPM: Workflow in Java                                                -->
-  <!--                                                                        -->
-  <!--  Distributable under LGPL license.                                     -->
-  <!--  See terms of license at http://www.gnu.org.                           -->
-  <!-- ====================================================================== -->
+<!-- ====================================================================== -->
+<!--  jBPM: Workflow in Java                                                -->
+<!--                                                                        -->
+<!--  Distributable under LGPL license.                                     -->
+<!--  See terms of license at http://www.gnu.org.                           -->
+<!-- ====================================================================== -->
 
-  <!-- $Id$ -->
+<!-- $Id$ -->
 
 <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">
@@ -29,14 +29,6 @@
   <dependencies>
     <!-- Compile Dependencies -->
     <dependency>
-      <groupId>commons-fileupload</groupId>
-      <artifactId>commons-fileupload</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>commons-io</groupId>
-      <artifactId>commons-io</artifactId>
-    </dependency>
-    <dependency>
       <groupId>org.jbpm.jbpm3</groupId>
       <artifactId>jsf-console-jbpm4jsf</artifactId>
       <version>${project.version}</version>
@@ -59,11 +51,6 @@
       <artifactId>jbpm-jpdl</artifactId>
       <scope>provided</scope>
     </dependency>
-    <dependency>
-      <groupId>javax.servlet</groupId>
-      <artifactId>servlet-api</artifactId>
-      <scope>provided</scope>
-    </dependency>
   </dependencies>
 
   <profiles>

Modified: projects/jsf-console/branches/jsf-console-3.2-soa/console/src/main/webapp/WEB-INF/web.xml
===================================================================
--- projects/jsf-console/branches/jsf-console-3.2-soa/console/src/main/webapp/WEB-INF/web.xml	2009-12-07 11:32:49 UTC (rev 5920)
+++ projects/jsf-console/branches/jsf-console-3.2-soa/console/src/main/webapp/WEB-INF/web.xml	2009-12-07 21:10:03 UTC (rev 5921)
@@ -24,13 +24,13 @@
   </servlet-mapping>
 
   <context-param>
-    <description> Use Documents Saved as *.xhtml </description>
+    <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>
+    <description>Facelets debug output</description>
     <param-name>facelets.DEVELOPMENT</param-name>
     <param-value>false</param-value>
   </context-param>
@@ -40,21 +40,6 @@
     <welcome-file>index.jsp</welcome-file>
   </welcome-file-list>
 
-  <servlet>
-    <description>
-      Server counterpart for the Graphical Process Designer deployment feature.
-      SECURITY WARNING. GPD deployment is a development aid, not for use in production.
-      Make sure you either secure or remove this servlet prior to production deployment. 
-    </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>
-
   <!--
     This role list should be changed to include all the relevant roles for your environment.
   -->


Property changes on: projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer
___________________________________________________________________
Name: svn:ignore
   + .settings
target


Added: projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/.classpath
===================================================================
--- projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/.classpath	                        (rev 0)
+++ projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/.classpath	2009-12-07 21:10:03 UTC (rev 5921)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" output="target/classes" path="src/main/java"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.4"/>
+	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
+	<classpathentry kind="output" path="target/classes"/>
+</classpath>

Added: projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/.project
===================================================================
--- projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/.project	                        (rev 0)
+++ projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/.project	2009-12-07 21:10:03 UTC (rev 5921)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>gpd-deployer</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.maven.ide.eclipse.maven2Builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+		<nature>org.maven.ide.eclipse.maven2Nature</nature>
+	</natures>
+</projectDescription>

Added: projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/pom.xml
===================================================================
--- projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/pom.xml	                        (rev 0)
+++ projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/pom.xml	2009-12-07 21:10:03 UTC (rev 5921)
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- ====================================================================== -->
+<!--  jBPM: Workflow in Java                                                -->
+<!--                                                                        -->
+<!--  Distributable under LGPL license.                                     -->
+<!--  See terms of license at http://www.gnu.org.                           -->
+<!-- ====================================================================== -->
+
+<!-- $Id$ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <name>JBoss jBPM3 - GPD Deployer</name>
+  <groupId>org.jbpm.jbpm3</groupId>
+  <artifactId>gpd-deployer</artifactId>
+  <packaging>war</packaging>
+
+  <!-- Parent -->
+  <parent>
+    <groupId>org.jbpm.jbpm3</groupId>
+    <artifactId>jsf-console-parent</artifactId>
+    <version>3.2.9</version>
+    <relativePath>../pom.xml</relativePath>
+  </parent>
+
+  <!-- Dependencies -->
+  <dependencies>
+    <dependency>
+      <groupId>commons-fileupload</groupId>
+      <artifactId>commons-fileupload</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>commons-io</groupId>
+      <artifactId>commons-io</artifactId>
+    </dependency>
+
+    <!-- Provided Dependencies -->
+    <dependency>
+      <groupId>commons-logging</groupId>
+      <artifactId>commons-logging</artifactId>
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.jbpm.jbpm3</groupId>
+      <artifactId>jbpm-jpdl</artifactId>
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
+      <groupId>javax.servlet</groupId>
+      <artifactId>servlet-api</artifactId>
+      <scope>provided</scope>
+    </dependency>
+  </dependencies>
+</project>


Property changes on: projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/pom.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + native

Added: projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/src/main/java/org/jbpm/web/BootstrapListener.java
===================================================================
--- projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/src/main/java/org/jbpm/web/BootstrapListener.java	                        (rev 0)
+++ projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/src/main/java/org/jbpm/web/BootstrapListener.java	2009-12-07 21:10:03 UTC (rev 5921)
@@ -0,0 +1,81 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.jbpm.web;
+
+import org.jbpm.JbpmConfiguration;
+import org.jbpm.JbpmContext;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+import javax.servlet.ServletContextListener;
+import javax.servlet.ServletContextEvent;
+
+/**
+ * Eagerly initializes the hibernate session factory.
+ * <p>
+ * Building the session factory in advance prevents the webapp from making a
+ * noticeable pause upon the first login. This is particularly desirable in
+ * applications configured to create the database schema on startup by setting
+ * property <code>hibernate.hbm2ddl.auto</code> to <code>create</code>.
+ * </p>
+ * <h3>Configuration</h3> Servlet context initialization parameters
+ * <table border="1">
+ * <tr>
+ * <th>Name</th>
+ * <th>Description</th>
+ * <th>Default value</th>
+ * </tr>
+ * <tr>
+ * <td>jbpm.configuration.resource</td>
+ * <td>name of classpath resource containing the configuration</td>
+ * <td>jbpm.cfg.xml</td>
+ * </tr>
+ * </table>
+ * 
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public class BootstrapListener implements ServletContextListener {
+
+  private static final Log log = LogFactory.getLog(BootstrapListener.class);
+
+  public void contextInitialized(ServletContextEvent event) {
+    String jbpmCfgResource = event.getServletContext()
+        .getInitParameter("jbpm.configuration.resource");
+    JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance(jbpmCfgResource);
+
+    JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
+    try {
+      log.info("bootstrap hibernate session factory");
+      jbpmContext.getSessionFactory();
+    }
+    catch (RuntimeException e) {
+      jbpmContext.setRollbackOnly();
+      throw e;
+    }
+    finally {
+      jbpmContext.close();
+    }
+  }
+
+  public void contextDestroyed(ServletContextEvent servletContextEvent) {
+  }
+}


Property changes on: projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/src/main/java/org/jbpm/web/BootstrapListener.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + native

Added: projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/src/main/java/org/jbpm/web/ProcessUploadServlet.java
===================================================================
--- projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/src/main/java/org/jbpm/web/ProcessUploadServlet.java	                        (rev 0)
+++ projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/src/main/java/org/jbpm/web/ProcessUploadServlet.java	2009-12-07 21:10:03 UTC (rev 5921)
@@ -0,0 +1,183 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., 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.
+ */
+package org.jbpm.web;
+
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.List;
+import java.util.zip.ZipInputStream;
+import org.apache.commons.fileupload.FileItem;
+import org.apache.commons.fileupload.FileItemFactory;
+import org.apache.commons.fileupload.FileUploadException;
+import org.apache.commons.fileupload.disk.DiskFileItemFactory;
+import org.apache.commons.fileupload.servlet.ServletFileUpload;
+
+import org.jbpm.JbpmConfiguration;
+import org.jbpm.JbpmContext;
+import org.jbpm.graph.def.ProcessDefinition;
+
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+public class ProcessUploadServlet extends javax.servlet.http.HttpServlet {
+
+	private static final long serialVersionUID = 1L;
+
+	private JbpmConfiguration jbpmConfiguration;
+
+	public void init() throws ServletException {
+		String jbpmCfgResource = getServletContext().getInitParameter("jbpm.configuration.resource");
+		jbpmConfiguration = JbpmConfiguration.getInstance(jbpmCfgResource);
+	}
+
+	protected void doGet(HttpServletRequest request, HttpServletResponse response)
+			throws ServletException, IOException {
+		if (log.isTraceEnabled()) log.trace("handling status request");
+
+		PrintWriter out = response.getWriter();
+		writeHeader(out);
+		out.println("<h3>Deploy a process</h3>");
+		out.println("<form name='deploy-form' method='post' enctype='multipart/form-data'>");
+		out.println("  <p>Process Archive: <input name='process-archive' type='file'/>");
+		out.println("  <p><input name='deploy-button' type='submit' value='Deploy'/>");
+		out.println("</form>");
+		writeTrailer(out);
+	}
+
+	protected void doPost(HttpServletRequest request, HttpServletResponse response)
+			throws ServletException, IOException {
+		if (log.isTraceEnabled()) log.trace("handling upload request");
+
+		FileItem processItem = parseRequest(request, response);
+		if (processItem == null) return; // error has been sent
+
+		JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
+		try {
+			ProcessDefinition processDefinition = parseProcessArchive(processItem);
+			deployProcessDefinition(processDefinition, response);
+		}
+		finally {
+			jbpmContext.close();
+		}
+	}
+
+	private void writeHeader(PrintWriter out) throws MalformedURLException {
+		out.println("<html>");
+		out.println("<head>");
+		out.println("<title>Process Deployment</title>");
+		URL css = getServletContext().getResource("/ua/jbpm.css");
+		if (css != null) {
+			out.print("<link rel='stylesheet' type='text/css' href='");
+			out.print(css.toString());
+			out.println("'/>");
+		}
+		out.println("</head>");
+		out.println("<body>");
+	}
+
+	private void writeTrailer(PrintWriter out) {
+		out.println("</body>");
+		out.println("</html>");
+	}
+
+	private FileItem parseRequest(HttpServletRequest request, HttpServletResponse response)
+			throws IOException {
+		// check if request is multipart content
+		if (!ServletFileUpload.isMultipartContent(request)) {
+			response.sendError(HttpServletResponse.SC_BAD_REQUEST, "Not a multipart request");
+			return null;
+		}
+
+		// Create a factory for disk-based file items
+		FileItemFactory factory = new DiskFileItemFactory();
+		// Create a new file upload handler
+		ServletFileUpload upload = new ServletFileUpload(factory);
+		try {
+			// Parse the request
+			List items = upload.parseRequest(request);
+			if (items.isEmpty()) {
+				response.sendError(HttpServletResponse.SC_BAD_REQUEST, "Request is empty");
+				return null;
+			}
+			FileItem item = (FileItem) items.get(0);
+			if (item.isFormField()) {
+				response.sendError(HttpServletResponse.SC_BAD_REQUEST, "Field '" + item.getFieldName()
+						+ "' is not an input file");
+				return null;
+			}
+			return item;
+		}
+		catch (FileUploadException e) {
+			log.error("failed to parse request", e);
+			response.sendError(HttpServletResponse.SC_BAD_REQUEST, "Failed to parse request");
+			return null;
+		}
+	}
+
+	private ProcessDefinition parseProcessArchive(FileItem fileItem) throws IOException {
+		if (log.isTraceEnabled()) log.trace("parsing process archive " + fileItem.getName());
+
+		ZipInputStream processStream = new ZipInputStream(fileItem.getInputStream());
+		try {
+			ProcessDefinition processDefinition = ProcessDefinition.parseParZipInputStream(processStream);
+			if (log.isTraceEnabled())
+				log.trace("parsed process definition " + processDefinition.getName());
+			return processDefinition;
+		}
+		finally {
+			processStream.close();
+		}
+	}
+
+	private void deployProcessDefinition(ProcessDefinition processDefinition,
+			HttpServletResponse response) throws IOException {
+		String processName = processDefinition.getName();
+		JbpmContext jbpmContext = jbpmConfiguration.getCurrentJbpmContext();
+		try {
+			jbpmContext.deployProcessDefinition(processDefinition);
+
+			if (log.isTraceEnabled()) log.trace("deployed process definition " + processName);
+			PrintWriter out = response.getWriter();
+			writeHeader(out);
+			out.println("<h3>Deployment report</h3>");
+			out.print("<p>Deployed process ");
+			out.print(processName);
+			out.println(" successfully</p>");
+			writeTrailer(out);
+		}
+		catch (RuntimeException e) {
+			jbpmContext.setRollbackOnly();
+
+			log.error("failed to deploy process definition " + processName, e);
+			response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
+					"Failed to deploy process");
+		}
+	}
+
+	private static final Log log = LogFactory.getLog(ProcessUploadServlet.class);
+}
\ No newline at end of file


Property changes on: projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/src/main/java/org/jbpm/web/ProcessUploadServlet.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + native

Added: projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/src/main/webapp/WEB-INF/jboss-web.xml
===================================================================
--- projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/src/main/webapp/WEB-INF/jboss-web.xml	                        (rev 0)
+++ projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/src/main/webapp/WEB-INF/jboss-web.xml	2009-12-07 21:10:03 UTC (rev 5921)
@@ -0,0 +1,18 @@
+<?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/jbpm-console</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>
+</jboss-web>


Property changes on: projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/src/main/webapp/WEB-INF/jboss-web.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + native

Added: projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/src/main/webapp/WEB-INF/web.xml
===================================================================
--- projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/src/main/webapp/WEB-INF/web.xml	                        (rev 0)
+++ projects/jsf-console/branches/jsf-console-3.2-soa/gpd-deployer/src/main/webapp/WEB-INF/web.xml	2009-12-07 21:10:03 UTC (rev 5921)
@@ -0,0 +1,51 @@
+<?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>/upload/*</url-pattern>
+      <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>admin</role-name>
+    </auth-constraint>
+  </security-constraint>
+
+  <login-config>
+    <auth-method>BASIC</auth-method>
+    <realm-name>jBPM GPD Deployer</realm-name>
+  </login-config>
+
+  <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/gpd-deployer/src/main/webapp/WEB-INF/web.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + native

Modified: projects/jsf-console/branches/jsf-console-3.2-soa/pom.xml
===================================================================
--- projects/jsf-console/branches/jsf-console-3.2-soa/pom.xml	2009-12-07 11:32:49 UTC (rev 5920)
+++ projects/jsf-console/branches/jsf-console-3.2-soa/pom.xml	2009-12-07 21:10:03 UTC (rev 5921)
@@ -29,6 +29,7 @@
   <modules>
     <module>console</module>
     <module>jbpm4jsf</module>
+    <module>gpd-deployer</module>
   </modules>
 
   <!-- Properties -->



More information about the jbpm-commits mailing list