Changeset 987


Ignore:
Timestamp:
06/06/11 09:49:49 (2 years ago)
Author:
philsmart
Message:
 
Location:
raptor-web/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • raptor-web/trunk/pom.xml

    r974 r987  
    1 <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"> 
     1<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     2    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 
    23    <modelVersion>4.0.0</modelVersion> 
    34    <groupId>uk.ac.cardiff.raptor</groupId> 
    45    <artifactId>raptor-web</artifactId> 
    56    <name>RaptorWeb (Raptor Web Interface)</name> 
    6     <version>0.1.2-SNAPSHOT</version> 
     7    <version>0.1.1-SNAPSHOT</version> 
    78    <packaging>war</packaging> 
    89    <url>http://iam.cf.ac.uk</url> 
  • raptor-web/trunk/src/main/webapp/WEB-INF/web.xml

    r965 r987  
    11<?xml version = '1.0' encoding = 'ISO-8859-1'?> 
    2 <!-- 
     2<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file 
     3    distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under 
     4    the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may 
     5    obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to 
     6    in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF 
     7    ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under 
     8    the License. --> 
     9<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     10    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"> 
    311 
    4     Copyright (C) 2010 Cardiff University, Wales <smartp@cf.ac.uk> 
     12    <description>RaptorWeb</description> 
    513 
    6     Licensed under the Apache License, Version 2.0 (the "License"); 
    7     you may not use this file except in compliance with the License. 
    8     You may obtain a copy of the License at 
    914 
    10             http://www.apache.org/licenses/LICENSE-2.0 
     15    <!-- - defines setup that can be accessed by the entire servlet, not just spring hence why security is defined here --> 
     16    <context-param> 
     17        <param-name>contextConfigLocation</param-name> 
     18        <param-value> 
     19          /WEB-INF/config/security.xml 
     20      </param-value> 
     21    </context-param> 
    1122 
    12     Unless required by applicable law or agreed to in writing, software 
    13     distributed under the License is distributed on an "AS IS" BASIS, 
    14     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
    15     See the License for the specific language governing permissions and 
    16     limitations under the License. 
     23    <filter> 
     24        <filter-name>springSecurityFilterChain</filter-name> 
     25        <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> 
     26    </filter> 
     27    <filter-mapping> 
     28        <filter-name>springSecurityFilterChain</filter-name> 
     29        <url-pattern>/*</url-pattern> 
     30    </filter-mapping> 
    1731 
    18 --> 
     32    <context-param> 
     33        <param-name>javax.faces.STATE_SAVING_METHOD</param-name> 
     34        <param-value>server</param-value> 
     35    </context-param> 
     36 
     37 
     38    <!-- Use xhtml view templates saved as *.xhtml, for use with Facelets --> 
     39    <context-param> 
     40        <param-name>javax.faces.DEFAULT_SUFFIX</param-name> 
     41        <param-value>.xhtml</param-value> 
     42    </context-param> 
     43    <!-- Enables special Facelets debug output during development --> 
     44    <context-param> 
     45        <param-name>facelets.DEVELOPMENT</param-name> 
     46        <param-value>false</param-value> 
     47    </context-param> 
     48    <!-- Causes Facelets to refresh templates during development, 1 - on, -1  off --> 
     49    <context-param> 
     50        <param-name>facelets.REFRESH_PERIOD</param-name> 
     51        <param-value>-1</param-value> 
     52    </context-param> 
     53 
     54    <!-- Enforce UTF-8 Character Encoding --> 
     55    <filter> 
     56        <filter-name>charEncodingFilter</filter-name> 
     57        <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> 
     58        <init-param> 
     59            <param-name>encoding</param-name> 
     60            <param-value>ISO-8859-1</param-value> 
     61        </init-param> 
     62        <init-param> 
     63            <param-name>forceEncoding</param-name> 
     64            <param-value>true</param-value> 
     65        </init-param> 
     66    </filter> 
     67 
     68    <filter-mapping> 
     69        <filter-name>charEncodingFilter</filter-name> 
     70        <url-pattern>/*</url-pattern> 
     71    </filter-mapping> 
     72 
     73    <!-- Listener for spring --> 
     74    <listener> 
     75        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> 
     76    </listener> 
     77    <listener> 
     78        <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class> 
     79    </listener> 
     80    <!-- Listener, to allow Jetty serving MyFaces apps <listener> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class> 
     81        </listener> --> 
     82 
     83    <!-- Spring web flow servlet, defines config specific to the current application instance --> 
     84    <servlet> 
     85        <servlet-name>Spring MVC Dispatcher Servlet</servlet-name> 
     86        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> 
     87        <init-param> 
     88            <param-name>contextConfigLocation</param-name> 
     89            <param-value>/WEB-INF/config/raptorweb-servlet.xml 
     90            </param-value> 
     91        </init-param> 
     92        <load-on-startup>1</load-on-startup> 
     93    </servlet> 
     94 
     95    <!-- allows spring security to monitor the HTTPSession, so on logout the session is released furthermore, this is required 
     96        to allow concurrency control e.g. 1 user session max, otherwise sessions are only every timed out --> 
     97    <listener> 
     98        <listener-class>org.springframework.security.web.session.HttpSessionEventPublisher</listener-class> 
     99    </listener> 
     100 
     101    <!-- Serves static resource content from .jar files such as spring-faces.jar --> 
     102    <servlet> 
     103        <servlet-name>Resources Servlet</servlet-name> 
     104        <servlet-class>org.springframework.js.resource.ResourceServlet</servlet-class> 
     105        <load-on-startup>0</load-on-startup> 
     106    </servlet> 
     107 
     108    <!-- Map all /resources requests to the Resource Servlet for handling --> 
     109    <servlet-mapping> 
     110        <servlet-name>Resources Servlet</servlet-name> 
     111        <url-pattern>/resources/*</url-pattern> 
     112    </servlet-mapping> 
     113 
     114    <!-- Faces Servlet --> 
     115    <!--<servlet> <servlet-name>faces</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> </servlet> --> 
     116 
     117    <servlet> 
     118        <servlet-name>Faces Servlet</servlet-name> 
     119        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> 
     120        <load-on-startup>1</load-on-startup> 
     121    </servlet> 
     122 
     123    <!-- Just here so the JSF implementation can initialize --> 
     124    <servlet-mapping> 
     125        <servlet-name>Faces Servlet</servlet-name> 
     126        <url-pattern>*.faces</url-pattern> 
     127    </servlet-mapping> 
     128 
     129 
     130    <!-- Richfaces config --> 
     131    <context-param> 
     132        <param-name>org.richfaces.SKIN</param-name> 
     133        <param-value>darkX</param-value> 
     134    </context-param> 
     135 
     136    <!-- Making the RichFaces skin spread to standard HTML controls --> 
     137    <context-param> 
     138        <param-name>org.richfaces.CONTROL_SKINNING</param-name> 
     139        <param-value>enable</param-value> 
     140    </context-param> 
     141 
     142 
     143 
     144    <filter> 
     145        <display-name>RichFaces Filter</display-name> 
     146        <filter-name>richfaces</filter-name> 
     147        <filter-class>org.ajax4jsf.Filter</filter-class> 
     148        <init-param> 
     149            <param-name>maxRequestSize</param-name> 
     150            <param-value>10000000</param-value> 
     151        </init-param> 
     152        <init-param> 
     153            <param-name>createTempFiles</param-name> 
     154            <param-value>false</param-value> 
     155        </init-param> 
     156 
     157    </filter> 
     158    <filter-mapping> 
     159        <filter-name>richfaces</filter-name> 
     160        <servlet-name>Spring MVC Dispatcher Servlet</servlet-name> 
     161        <dispatcher>REQUEST</dispatcher> 
     162        <dispatcher>FORWARD</dispatcher> 
     163        <dispatcher>INCLUDE</dispatcher> 
     164    </filter-mapping> 
     165 
     166    <!-- Spring web flow servlet mapping --> 
     167    <servlet-mapping> 
     168        <servlet-name>Spring MVC Dispatcher Servlet</servlet-name> 
     169        <url-pattern>/spring/*</url-pattern> 
     170    </servlet-mapping> 
     171 
     172    <!-- Welcome Files --> 
     173    <welcome-file-list> 
     174        <welcome-file>index.html</welcome-file> 
     175    </welcome-file-list> 
     176 
     177</web-app> 
Note: See TracChangeset for help on using the changeset viewer.