Changeset 4498


Ignore:
Timestamp:
02/12/14 08:56:30 (10 years ago)
Author:
twagoo
Message:

Added Spring to the VLO web app

Location:
vlo/branches/vlo-3.0/vlo-web-app
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • vlo/branches/vlo-3.0/vlo-web-app/pom.xml

    r4480 r4498  
    2121    <properties>
    2222        <wicket.version>6.12.0</wicket.version>
     23        <spring.version>3.2.5.RELEASE</spring.version>
    2324        <jetty.version>7.6.13.v20130916</jetty.version>
    2425    </properties>
    2526    <dependencies>
     27        <!-- Intra-project dependencies -->
     28        <dependency>
     29            <groupId>${project.groupId}</groupId>
     30            <artifactId>vlo-commons</artifactId>
     31            <version>3.0-SNAPSHOT</version>
     32        </dependency>
     33       
    2634        <!--  WICKET DEPENDENCIES -->
    2735        <dependency>
     
    3038            <version>${wicket.version}</version>
    3139        </dependency>
    32 
     40        <!-- This gives us dependency injection and other Spring niceness -->
     41        <dependency>
     42            <groupId>org.apache.wicket</groupId>
     43            <artifactId>wicket-spring</artifactId>
     44            <version>${wicket.version}</version>
     45        </dependency>
     46       
     47        <!-- SPRING FRAMEWORK -->
     48        <dependency>
     49            <groupId>org.springframework</groupId>
     50            <artifactId>spring-context</artifactId>
     51            <version>${spring.version}</version>
     52            <type>jar</type>
     53            <exclusions>
     54                <!--
     55                    We want Spring to use SLF4J instead (using
     56                    jcl-over-slf4j, see below)
     57                -->
     58                <exclusion>
     59                    <groupId>commons-logging</groupId> <!-- aka JCL -->
     60                    <artifactId>commons-logging</artifactId>
     61                </exclusion>
     62            </exclusions>
     63        </dependency>
     64        <dependency>
     65            <groupId>org.springframework</groupId>
     66            <artifactId>spring-web</artifactId>
     67            <version>${spring.version}</version>
     68            <type>jar</type>
     69        </dependency>
     70       
    3371        <!-- LOGGING DEPENDENCIES - LOG4J -->
    3472        <dependency>
    3573            <groupId>org.slf4j</groupId>
    3674            <artifactId>slf4j-log4j12</artifactId>
     75            <version>${slf4j.version}</version>
     76        </dependency>
     77        <!-- Make Spring log to SLF4J, too (drop-in replacement for JCL) -->
     78        <dependency>
     79            <groupId>org.slf4j</groupId>
     80            <artifactId>jcl-over-slf4j</artifactId>
    3781            <version>${slf4j.version}</version>
    3882        </dependency>
     
    5195            <type>jar</type>
    5296        </dependency>
    53         <dependency>
    54             <groupId>${project.groupId}</groupId>
    55             <artifactId>vlo-commons</artifactId>
    56             <version>3.0-SNAPSHOT</version>
    57         </dependency>
    5897    </dependencies>
     98   
    5999    <build>
    60100        <resources>
  • vlo/branches/vlo-3.0/vlo-web-app/src/main/webapp/WEB-INF/web.xml

    r4469 r4498  
    44        version="2.5">
    55
    6         <display-name>vlo-web-app</display-name>
     6  <display-name>vlo-web-app</display-name>
    77
    88        <!--
     
    1414                3) context specific <context-param>
    1515
    16                 The value might be either "development" (reloading when templates change) or
    17                 "deployment". If no configuration is found, "development" is the default. -->
     16    The value might be either "development" (reloading when templates change) or
     17    "deployment". If no configuration is found, "development" is the default. -->
    1818
    19         <filter>
    20                 <filter-name>wicket.vlo-web-app</filter-name>
    21                 <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
    22                 <init-param>
    23                         <param-name>applicationClassName</param-name>
    24                         <param-value>eu.clarin.cmdi.vlo.VloWicketApplication</param-value>
    25                 </init-param>
    26         </filter>
     19    <filter>
     20        <filter-name>wicket.vlo-web-app</filter-name>
     21        <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
     22        <init-param>
     23            <param-name>applicationFactoryClassName</param-name>
     24            <param-value>org.apache.wicket.spring.SpringWebApplicationFactory</param-value>
     25        </init-param>
     26    </filter>
    2727
    28         <filter-mapping>
    29                 <filter-name>wicket.vlo-web-app</filter-name>
    30                 <url-pattern>/*</url-pattern>
    31         </filter-mapping>
     28    <filter-mapping>
     29        <filter-name>wicket.vlo-web-app</filter-name>
     30        <url-pattern>/*</url-pattern>
     31    </filter-mapping>
     32       
     33    <!-- Wake up Spring when the web app starts -->
     34    <listener>
     35        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> 
     36    </listener>
     37
     38    <!--
     39      Context parameter below specifies the location of the spring application
     40      context. Used to bootstrap annotation based configuration, see:
     41          eu.clarin.vmdi.vlo.config.VloSpringConfig
     42    -->
     43    <context-param> 
     44        <param-name>contextConfigLocation</param-name> 
     45        <param-value>WEB-INF/applicationContext.xml</param-value> 
     46    </context-param> 
    3247</web-app>
Note: See TracChangeset for help on using the changeset viewer.