Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

83 lines (68 sloc) 2.972 kb
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd" >
<web-app id="SimpleShiroSecuredApplication">
<display-name>Simple Secure Application</display-name>
<!-- ==== Servlets ================================================================== -->
<servlet>
<servlet-name>PerformFunctionAndGoBackServlet</servlet-name>
<servlet-class>org.meri.simpleshirosecuredapplication.servlet.PerformFunctionAndGoBackServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>AccountPageServlet</servlet-name>
<servlet-class>org.meri.simpleshirosecuredapplication.servlet.AccountPageServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- ==== Servlets Mapping ========================================================== -->
<servlet-mapping>
<servlet-name>PerformFunctionAndGoBackServlet</servlet-name>
<url-pattern>/simpleshirosecuredapplication/masterservlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AccountPageServlet</servlet-name>
<url-pattern>/simpleshirosecuredapplication/accountpageservlet</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<!-- ==== Security ================================================================== -->
<filter>
<filter-name>ShiroFilter</filter-name>
<filter-class>org.apache.shiro.web.servlet.IniShiroFilter</filter-class>
<init-param>
<param-name>configPath</param-name>
<param-value>classpath:Shiro.ini</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>ShiroFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- ==== Initialize Database on Startup ========================================================== -->
<!-- reference to data source -->
<resource-ref>
<description>Derby Connection</description>
<res-ref-name>jdbc/SimpleShiroSecuredApplicationDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<!-- liquibase configuration -->
<context-param>
<param-name>liquibase.changelog</param-name>
<param-value>src/main/resources/db.changelog.xml</param-value>
</context-param>
<context-param>
<param-name>liquibase.datasource</param-name>
<param-value>jdbc/SimpleShiroSecuredApplicationDB</param-value>
</context-param>
<!-- liquibase sevlet listener to check database on start up and apply
new changes if needed -->
<listener>
<listener-class>liquibase.integration.servlet.LiquibaseServletListener</listener-class>
</listener>
<persistence-unit-ref>
<persistence-unit-ref-name>persistence/SimpleShiroSecuredApplicationPU</persistence-unit-ref-name>
<persistence-unit-name>SimpleShiroSecuredApplicationPU</persistence-unit-name>
</persistence-unit-ref>
</web-app>
Jump to Line
Something went wrong with that request. Please try again.