Revision 26621
tmp/trunk/servidor/WorkSpace_Servidor/wps_ws_spring/WebContent/web.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_2.dtd'> |
|
3 |
|
|
4 |
|
|
5 |
<web-app> |
|
6 |
|
|
7 |
<display-name>SPRING FROGS Web Portal</display-name> |
|
8 |
<description>Welcome to the J2EE SPRING FROGS Web Portal</description> |
|
9 |
|
|
10 |
|
|
11 |
<!-- START: Filters for Acegi Security --> |
|
12 |
|
|
13 |
|
|
14 |
<filter> |
|
15 |
<filter-name>Acegi Filter Chain Proxy</filter-name> |
|
16 |
<filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class> |
|
17 |
<init-param> |
|
18 |
<param-name>targetClass</param-name> |
|
19 |
<param-value>org.acegisecurity.util.FilterChainProxy</param-value> |
|
20 |
</init-param> |
|
21 |
</filter> |
|
22 |
|
|
23 |
<filter> |
|
24 |
<filter-name>Acegi HTTP Request Security Filter</filter-name> |
|
25 |
<filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class> |
|
26 |
<init-param> |
|
27 |
<param-name>targetClass</param-name> |
|
28 |
<param-value>org.acegisecurity.intercept.web.FilterSecurityInterceptor</param-value> |
|
29 |
</init-param> |
|
30 |
</filter> |
|
31 |
|
|
32 |
<filter-mapping> |
|
33 |
<filter-name>Acegi Filter Chain Proxy</filter-name> |
|
34 |
<url-pattern>/*</url-pattern> |
|
35 |
</filter-mapping> |
|
36 |
|
|
37 |
<filter-mapping> |
|
38 |
<filter-name>Acegi HTTP Request Security Filter</filter-name> |
|
39 |
<url-pattern>/*</url-pattern> |
|
40 |
</filter-mapping> |
|
41 |
|
|
42 |
|
|
43 |
|
|
44 |
<listener> |
|
45 |
<listener-class>org.acegisecurity.ui.session.HttpSessionEventPublisher</listener-class> |
|
46 |
</listener> |
|
47 |
|
|
48 |
|
|
49 |
|
|
50 |
<!-- END: Filters for Acegi Security --> |
|
51 |
|
|
52 |
|
|
53 |
<!-- Move to app --> |
|
54 |
<context-param> |
|
55 |
<param-name>contextConfigWPS_PlugInXmlLocation</param-name> |
|
56 |
<param-value>%CONTEXT_PATH%/WEB-INF/wps_ws_spring_frogs_spring_plugin_config.xml</param-value> |
|
57 |
</context-param> |
|
58 |
|
|
59 |
|
|
60 |
<!-- |
|
61 |
- Location of the Log4J config file, for initialization and refresh checks. |
|
62 |
- Applied by Log4jConfigListener. |
|
63 |
--> |
|
64 |
<context-param> |
|
65 |
<param-name>log4jConfigLocation</param-name> |
|
66 |
<param-value>/WEB-INF/classes/log4j.properties</param-value> |
|
67 |
</context-param> |
|
68 |
|
|
69 |
<!-- |
|
70 |
- Configures Log4J for this web app. |
|
71 |
- As this context specifies a context-param "log4jConfigLocation", its file path |
|
72 |
- is used to load the Log4J configuration, including periodic refresh checks. |
|
73 |
- |
|
74 |
- Would fall back to default Log4J initialization (non-refreshing) if no special |
|
75 |
- context-params are given. |
|
76 |
- |
|
77 |
- Exports a "web app root key", i.e. a system property that specifies the root |
|
78 |
- directory of this web app, for usage in log file paths. |
|
79 |
- This web app specifies "countries.root" (see log4j.properties file). |
|
80 |
--> |
|
81 |
<!-- Leave the listener commented-out if using JBoss --> |
|
82 |
<listener> |
|
83 |
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class> |
|
84 |
</listener> |
|
85 |
|
|
86 |
<!-- |
|
87 |
- Loads the root application context of this web app at startup, |
|
88 |
- by default from "/WEB-INF/applicationContext.xml". |
|
89 |
- Note that you need to fall back to Spring's ContextLoaderServlet for |
|
90 |
- J2EE servers that do not follow the Servlet 2.4 initialization order. |
|
91 |
- |
|
92 |
- Use WebApplicationContextUtils.getWebApplicationContext(servletContext) |
|
93 |
- to access it anywhere in the web application, outside of the framework. |
|
94 |
- |
|
95 |
- The root context is the parent of all servlet-specific contexts. |
|
96 |
- This means that its beans are automatically available in these child contexts, |
|
97 |
- both for getBean(name) calls and (external) bean references. |
|
98 |
--> |
|
99 |
|
|
100 |
<listener> |
|
101 |
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> |
|
102 |
</listener> |
|
103 |
|
|
104 |
|
|
105 |
<context-param> |
|
106 |
<param-name>contextConfigLocation</param-name> |
|
107 |
<param-value> |
|
108 |
/WEB-INF/applicationContext.xml |
|
109 |
/WEB-INF/applicationContextWPS.xml |
|
110 |
/WEB-INF/applicationContextWPS-acegi-security.xml |
|
111 |
</param-value> |
|
112 |
</context-param> |
|
113 |
|
|
114 |
|
|
115 |
<servlet> |
|
116 |
<servlet-name>wps_ws_spring</servlet-name> |
|
117 |
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> |
|
118 |
<load-on-startup>1</load-on-startup> |
|
119 |
</servlet> |
|
120 |
|
|
121 |
|
|
122 |
<servlet-mapping> |
|
123 |
<servlet-name>wps_ws_spring</servlet-name> |
|
124 |
<url-pattern>*.htm</url-pattern> |
|
125 |
</servlet-mapping> |
|
126 |
|
|
127 |
<servlet-mapping> |
|
128 |
<servlet-name>wps_ws_spring</servlet-name> |
|
129 |
<url-pattern>*.html</url-pattern> |
|
130 |
</servlet-mapping> |
|
131 |
|
|
132 |
<servlet-mapping> |
|
133 |
<servlet-name>wps_ws_spring</servlet-name> |
|
134 |
<url-pattern>*.wps</url-pattern> |
|
135 |
</servlet-mapping> |
|
136 |
|
|
137 |
<servlet-mapping> |
|
138 |
<servlet-name>wps_ws_spring</servlet-name> |
|
139 |
<url-pattern>*.soap</url-pattern> |
|
140 |
</servlet-mapping> |
|
141 |
|
|
142 |
<error-page> |
|
143 |
<error-code>401</error-code> |
|
144 |
<location>/Exception401.htm</location> |
|
145 |
</error-page> |
|
146 |
|
|
147 |
<error-page> |
|
148 |
<error-code>403</error-code> |
|
149 |
<location>/Exception403.htm</location> |
|
150 |
</error-page> |
|
151 |
|
|
152 |
<error-page> |
|
153 |
<error-code>404</error-code> |
|
154 |
<location>/Exception404.htm</location> |
|
155 |
</error-page> |
|
156 |
|
|
157 |
<error-page> |
|
158 |
<error-code>500</error-code> |
|
159 |
<location>/Exception500.htm</location> |
|
160 |
</error-page> |
|
161 |
|
|
162 |
<error-page> |
|
163 |
<exception-type>java.lang.Throwable</exception-type> |
|
164 |
<location>/UncaughtException.htm</location> |
|
165 |
</error-page> |
|
166 |
|
|
167 |
|
|
168 |
</web-app> |
Also available in: Unified diff