View File | Revision Log | Show Annotations | Download File | View Changeset
/hippo/hippo-jcr/console/trunk/war/src/main/webapp/WEB-INF/web.xml
Revision: 33617
Committed: Tue Mar 20 16:58:56 2012 UTC (8 years, 2 months ago) by adouma
Content type: text/plain
File size: 5048 byte(s)
Log Message:
JCR-52: Provide a JCR Repository Service which allow 'binding' hippo-jcr-console to a separate JCR Repository in another web application
- change of plan:
Instead of using a shared classloader JCR Repository Service, a cross-context Repository instance lookup will be used based on the standard JackrabitRepositoryServlet and ContextRepositoryServlet.
Extended versions of these servlets will be used to support system property configurations for setting repository home, location and (server provider application) context path.
Furthermore, as no shared classloader module is needed anymore, the jr-repository-servlet module will be merged into the jcr-repository-service and thereafter dropped.
- also: bump to latest Jackrabbit 2.4

File Contents

# Content
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3
4 Copyright (C) 2011 Hippo B.V.
5
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
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
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.
17
18 -->
19 <web-app id="jcr-console" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20 version="2.5"
21 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd">
22
23 <display-name>JCR Console</display-name>
24 <description>JCR Console</description>
25
26 <context-param>
27 <param-name>repository.context.path</param-name>
28 <param-value>/repository</param-value>
29 </context-param>
30
31 <context-param>
32 <param-name>contextConfigLocation</param-name>
33 <param-value>
34 /WEB-INF/applicationContext.xml
35 /WEB-INF/applicationContext-security.xml
36 </param-value>
37 </context-param>
38
39 <filter>
40 <filter-name>repositoryServiceFilter</filter-name>
41 <filter-class>org.onehippo.jcr.servlet.ContextRepositoryAvailableFilter</filter-class>
42 </filter>
43
44 <filter>
45 <filter-name>springSecurityFilterChain</filter-name>
46 <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
47 </filter>
48
49 <!--Remap resources as anti-cache-->
50 <filter>
51 <filter-name>ResourceAntiCache</filter-name>
52 <filter-class>org.onehippo.jcr.console.engine.ResourceRewriteFilter</filter-class>
53 <!-- enable this parameter to fix the prefix used to cache resources -->
54 <!-- init-param>
55 <param-name>prefix</param-name>
56 <param-value>nocache</param-value>
57 </init-param -->
58 </filter>
59
60 <!--Builtin console-->
61 <filter>
62 <filter-name>Console</filter-name>
63 <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
64 <init-param>
65 <param-name>applicationClassName</param-name>
66 <param-value>org.onehippo.jcr.console.engine.Main</param-value>
67 </init-param>
68 <init-param>
69 <param-name>config</param-name>
70 <param-value>console</param-value>
71 </init-param>
72 <init-param>
73 <param-name>configuration</param-name>
74 <param-value>deployment</param-value>
75 </init-param>
76 </filter>
77
78 <filter-mapping>
79 <filter-name>repositoryServiceFilter</filter-name>
80 <url-pattern>/*</url-pattern>
81 </filter-mapping>
82
83 <filter-mapping>
84 <filter-name>springSecurityFilterChain</filter-name>
85 <url-pattern>/*</url-pattern>
86 </filter-mapping>
87
88 <filter-mapping>
89 <filter-name>ResourceAntiCache</filter-name>
90 <url-pattern>/*</url-pattern>
91 </filter-mapping>
92
93 <filter-mapping>
94 <filter-name>Console</filter-name>
95 <url-pattern>/nav/*</url-pattern>
96 </filter-mapping>
97
98 <listener>
99 <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
100 </listener>
101
102 <listener>
103 <listener-class>org.springframework.security.web.session.HttpSessionEventPublisher</listener-class>
104 </listener>
105
106 <servlet>
107 <servlet-name>contextRepository</servlet-name>
108 <servlet-class>org.onehippo.jcr.servlet.ContextRepositoryServlet</servlet-class>
109 <load-on-startup>1</load-on-startup>
110 </servlet>
111
112 <servlet>
113 <servlet-name>login</servlet-name>
114 <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
115 <load-on-startup>1</load-on-startup>
116 </servlet>
117
118 <servlet-mapping>
119 <servlet-name>login</servlet-name>
120 <url-pattern>/login/*</url-pattern>
121 </servlet-mapping>
122
123 <servlet>
124 <servlet-name>ConsoleSkinResourceServlet</servlet-name>
125 <servlet-class>org.onehippo.jcr.console.servlet.ResourceServlet</servlet-class>
126 <init-param>
127 <param-name>jarPathPrefix</param-name>
128 <param-value>/META-INF/console/skin</param-value>
129 </init-param>
130 </servlet>
131
132 <servlet>
133 <servlet-name>ConsoleCKEditorResourceServlet</servlet-name>
134 <servlet-class>org.onehippo.jcr.console.servlet.ResourceServlet</servlet-class>
135 <init-param>
136 <param-name>jarPathPrefix</param-name>
137 <param-value>/META-INF/console/ckeditor</param-value>
138 </init-param>
139 </servlet>
140
141 <servlet-mapping>
142 <servlet-name>ConsoleSkinResourceServlet</servlet-name>
143 <url-pattern>/skin/*</url-pattern>
144 </servlet-mapping>
145
146 <servlet-mapping>
147 <servlet-name>ConsoleCKEditorResourceServlet</servlet-name>
148 <url-pattern>/javascript/ckeditor/*</url-pattern>
149 </servlet-mapping>
150
151 <!-- Timeout in minutes -->
152 <session-config>
153 <session-timeout>60</session-timeout>
154 </session-config>
155
156 <welcome-file-list>
157 <welcome-file>index.jsp</welcome-file>
158 </welcome-file-list>
159
160 </web-app>

Properties

Name Value
svn:mime-type text/plain