diff --git a/jee7/.gitignore b/jee7/.gitignore
new file mode 100644
index 0000000000..067348b3f4
--- /dev/null
+++ b/jee7/.gitignore
@@ -0,0 +1,5 @@
+
+/classes/
+/.idea/
+/target/
+/jee7.iml
diff --git a/jee7/pom.xml b/jee7/pom.xml
index b5e0d80b6c..6858a05d17 100644
--- a/jee7/pom.xml
+++ b/jee7/pom.xml
@@ -6,8 +6,10 @@
com.baeldung
jee7
1.0-SNAPSHOT
+ war
JavaEE 7 Arquillian Archetype Sample
+
com.baeldung
parent-modules
@@ -174,6 +176,7 @@
maven-war-plugin
${maven-war-plugin.version}
+ webapp
false
diff --git a/jee7/src/main/webapp/WEB-INF/spring/security.xml b/jee7/src/main/webapp/WEB-INF/spring/security.xml
new file mode 100644
index 0000000000..777cd9461f
--- /dev/null
+++ b/jee7/src/main/webapp/WEB-INF/spring/security.xml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/jee7/src/main/webapp/WEB-INF/web.xml b/jee7/src/main/webapp/WEB-INF/web.xml
index 11bd87cf99..5be1bf8808 100644
--- a/jee7/src/main/webapp/WEB-INF/web.xml
+++ b/jee7/src/main/webapp/WEB-INF/web.xml
@@ -32,6 +32,33 @@
+
+
+
+
+
+ contextConfigLocation
+
+ /WEB-INF/spring/*.xml
+
+
+
+
+ springSecurityFilterChain
+ org.springframework.web.filter.DelegatingFilterProxy
+
+
+
+ springSecurityFilterChain
+ /*
+
+
+
+ org.springframework.web.context.ContextLoaderListener
+
+
+
+
index.jsf
welcome.jsf
diff --git a/jee7/src/main/webapp/index.jsp b/jee7/src/main/webapp/index.jsp
new file mode 100644
index 0000000000..66a47eb7ce
--- /dev/null
+++ b/jee7/src/main/webapp/index.jsp
@@ -0,0 +1,18 @@
+<%--
+ Created by IntelliJ IDEA.
+ User: smatt
+ Date: 02/08/2017
+ Time: 07:03 AM
+ To change this template use File | Settings | File Templates.
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+
+
+ Index Page
+
+
+ Non-secured Index Page
+
+ Login
+
+
diff --git a/jee7/src/main/webapp/secure.jsp b/jee7/src/main/webapp/secure.jsp
new file mode 100644
index 0000000000..0cadd2cd4f
--- /dev/null
+++ b/jee7/src/main/webapp/secure.jsp
@@ -0,0 +1,24 @@
+<%@ page language="java" contentType="text/html; charset=UTF-8"
+ pageEncoding="UTF-8"%>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ taglib uri="http://www.springframework.org/security/tags" prefix="sec" %>
+
+
+
+
+ Home Page
+
+
+Home Page
+
+
+ Hello
+ Roles:
+
+
+
+
+
\ No newline at end of file