1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!DOCTYPE xml> <!-- silence eclipse warnings -->
|
3 |
<!--
|
4 |
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
5 |
|
6 |
Copyright 2000-2007 Sun Microsystems, Inc. All rights reserved.
|
7 |
|
8 |
The contents of this file are subject to the terms of either the GNU
|
9 |
General Public License Version 2 only ("GPL") or the Common Development
|
10 |
and Distribution License("CDDL") (collectively, the "License"). You
|
11 |
may not use this file except in compliance with the License. You can obtain
|
12 |
a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
|
13 |
or glassfish/bootstrap/legal/LICENSE.txt. See the License for the specific
|
14 |
language governing permissions and limitations under the License.
|
15 |
|
16 |
When distributing the software, include this License Header Notice in each
|
17 |
file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
|
18 |
Sun designates this particular file as subject to the "Classpath" exception
|
19 |
as provided by Sun in the GPL Version 2 section of the License file that
|
20 |
accompanied this code. If applicable, add the following below the License
|
21 |
Header, with the fields enclosed by brackets [] replaced by your own
|
22 |
identifying information: "Portions Copyrighted [year]
|
23 |
[name of copyright owner]"
|
24 |
|
25 |
Contributor(s):
|
26 |
|
27 |
If you wish your version of this file to be governed by only the CDDL or
|
28 |
only the GPL Version 2, indicate your decision by adding "[Contributor]
|
29 |
elects to include this software in this distribution under the [CDDL or GPL
|
30 |
Version 2] license." If you don't indicate a single choice of license, a
|
31 |
recipient has the option to distribute your version of this file under
|
32 |
either the CDDL, the GPL Version 2 or to extend the choice of license to
|
33 |
its licensees as provided above. However, if you add GPL Version 2 code
|
34 |
and therefore, elected the GPL Version 2 license, then the option applies
|
35 |
only if the new code is made subject to such option by the copyright
|
36 |
holder.
|
37 |
-->
|
38 |
<!--
|
39 |
This is the XML DTD for the Servlet 2.3 deployment descriptor.
|
40 |
All Servlet 2.3 deployment descriptors must include a DOCTYPE
|
41 |
of the following form:
|
42 |
|
43 |
<!DOCTYPE web-app PUBLIC
|
44 |
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
|
45 |
"http://java.sun.com/dtd/web-app_2_3.dtd">
|
46 |
|
47 |
-->
|
48 |
<!--
|
49 |
The following conventions apply to all J2EE deployment descriptor
|
50 |
elements unless indicated otherwise.
|
51 |
|
52 |
- In elements that contain PCDATA, leading and trailing whitespace
|
53 |
in the data may be ignored.
|
54 |
|
55 |
- In elements whose value is an "enumerated type", the value is
|
56 |
case sensitive.
|
57 |
|
58 |
- In elements that specify a pathname to a file within the same
|
59 |
JAR file, relative filenames (i.e., those not starting with "/")
|
60 |
are considered relative to the root of the JAR file's namespace.
|
61 |
Absolute filenames (i.e., those starting with "/") also specify
|
62 |
names in the root of the JAR file's namespace. In general, relative
|
63 |
names are preferred. The exception is .war files where absolute
|
64 |
names are preferred for consistency with the servlet API.
|
65 |
-->
|
66 |
<!--
|
67 |
The web-app element is the root of the deployment descriptor for
|
68 |
a web application.
|
69 |
-->
|
70 |
<!--
|
71 |
The auth-constraint element indicates the user roles that should
|
72 |
be permitted access to this resource collection. The role-name
|
73 |
used here must either correspond to the role-name of one of the
|
74 |
security-role elements defined for this web application, or be
|
75 |
the specially reserved role-name "*" that is a compact syntax for
|
76 |
indicating all roles in the web application. If both "*" and
|
77 |
rolenames appear, the container interprets this as all roles.
|
78 |
If no roles are defined, no user is allowed access to the portion of
|
79 |
the web application described by the containing security-constraint.
|
80 |
The container matches role names case sensitively when determining
|
81 |
access.
|
82 |
|
83 |
|
84 |
Used in: security-constraint
|
85 |
-->
|
86 |
<!--
|
87 |
The auth-method element is used to configure the authentication
|
88 |
mechanism for the web application. As a prerequisite to gaining access to any web resources which are protected by an authorization
|
89 |
constraint, a user must have authenticated using the configured
|
90 |
mechanism. Legal values for this element are "BASIC", "DIGEST",
|
91 |
"FORM", or "CLIENT-CERT".
|
92 |
|
93 |
Used in: login-config
|
94 |
-->
|
95 |
<!--
|
96 |
The context-param element contains the declaration of a web
|
97 |
application's servlet context initialization parameters.
|
98 |
|
99 |
Used in: web-app
|
100 |
-->
|
101 |
<!--
|
102 |
The description element is used to provide text describing the parent
|
103 |
element. The description element should include any information that
|
104 |
the web application war file producer wants to provide to the consumer of
|
105 |
the web application war file (i.e., to the Deployer). Typically, the tools
|
106 |
used by the web application war file consumer will display the description
|
107 |
when processing the parent element that contains the description.
|
108 |
|
109 |
Used in: auth-constraint, context-param, ejb-local-ref, ejb-ref,
|
110 |
env-entry, filter, init-param, resource-env-ref, resource-ref, run-as,
|
111 |
security-role, security-role-ref, servlet, user-data-constraint,
|
112 |
web-app, web-resource-collection
|
113 |
-->
|
114 |
<!--
|
115 |
The display-name element contains a short name that is intended to be
|
116 |
displayed by tools. The display name need not be unique.
|
117 |
|
118 |
Used in: filter, security-constraint, servlet, web-app
|
119 |
|
120 |
Example:
|
121 |
|
122 |
<display-name>Employee Self Service</display-name>
|
123 |
-->
|
124 |
<!--
|
125 |
The distributable element, by its presence in a web application
|
126 |
deployment descriptor, indicates that this web application is
|
127 |
programmed appropriately to be deployed into a distributed servlet
|
128 |
container
|
129 |
|
130 |
Used in: web-app
|
131 |
-->
|
132 |
<!--
|
133 |
The ejb-link element is used in the ejb-ref or ejb-local-ref
|
134 |
elements to specify that an EJB reference is linked to an
|
135 |
enterprise bean.
|
136 |
|
137 |
The name in the ejb-link element is composed of a
|
138 |
path name specifying the ejb-jar containing the referenced enterprise
|
139 |
bean with the ejb-name of the target bean appended and separated from
|
140 |
the path name by "#". The path name is relative to the war file
|
141 |
containing the web application that is referencing the enterprise bean.
|
142 |
This allows multiple enterprise beans with the same ejb-name to be
|
143 |
uniquely identified.
|
144 |
|
145 |
Used in: ejb-local-ref, ejb-ref
|
146 |
|
147 |
Examples:
|
148 |
|
149 |
<ejb-link>EmployeeRecord</ejb-link>
|
150 |
|
151 |
<ejb-link>../products/product.jar#ProductEJB</ejb-link>
|
152 |
|
153 |
-->
|
154 |
<!--
|
155 |
The ejb-local-ref element is used for the declaration of a reference to
|
156 |
an enterprise bean's local home. The declaration consists of:
|
157 |
|
158 |
- an optional description
|
159 |
- the EJB reference name used in the code of the web application
|
160 |
that's referencing the enterprise bean
|
161 |
- the expected type of the referenced enterprise bean
|
162 |
- the expected local home and local interfaces of the referenced
|
163 |
enterprise bean
|
164 |
- optional ejb-link information, used to specify the referenced
|
165 |
enterprise bean
|
166 |
|
167 |
Used in: web-app
|
168 |
-->
|
169 |
<!--
|
170 |
The ejb-ref element is used for the declaration of a reference to
|
171 |
an enterprise bean's home. The declaration consists of:
|
172 |
|
173 |
- an optional description
|
174 |
- the EJB reference name used in the code of
|
175 |
the web application that's referencing the enterprise bean
|
176 |
- the expected type of the referenced enterprise bean
|
177 |
- the expected home and remote interfaces of the referenced
|
178 |
enterprise bean
|
179 |
- optional ejb-link information, used to specify the referenced
|
180 |
enterprise bean
|
181 |
|
182 |
Used in: web-app
|
183 |
-->
|
184 |
<!--
|
185 |
The ejb-ref-name element contains the name of an EJB reference. The
|
186 |
EJB reference is an entry in the web application's environment and is
|
187 |
relative to the java:comp/env context. The name must be unique
|
188 |
within the web application.
|
189 |
|
190 |
It is recommended that name is prefixed with "ejb/".
|
191 |
|
192 |
Used in: ejb-local-ref, ejb-ref
|
193 |
|
194 |
Example:
|
195 |
|
196 |
<ejb-ref-name>ejb/Payroll</ejb-ref-name>
|
197 |
-->
|
198 |
<!--
|
199 |
The ejb-ref-type element contains the expected type of the
|
200 |
referenced enterprise bean.
|
201 |
|
202 |
The ejb-ref-type element must be one of the following:
|
203 |
|
204 |
<ejb-ref-type>Entity</ejb-ref-type>
|
205 |
<ejb-ref-type>Session</ejb-ref-type>
|
206 |
|
207 |
Used in: ejb-local-ref, ejb-ref
|
208 |
-->
|
209 |
<!--
|
210 |
The env-entry element contains the declaration of a web application's
|
211 |
environment entry. The declaration consists of an optional
|
212 |
description, the name of the environment entry, and an optional
|
213 |
value. If a value is not specified, one must be supplied
|
214 |
during deployment.
|
215 |
-->
|
216 |
<!--
|
217 |
The env-entry-name element contains the name of a web applications's
|
218 |
environment entry. The name is a JNDI name relative to the
|
219 |
java:comp/env context. The name must be unique within a web application.
|
220 |
|
221 |
Example:
|
222 |
|
223 |
<env-entry-name>minAmount</env-entry-name>
|
224 |
|
225 |
Used in: env-entry
|
226 |
-->
|
227 |
<!--
|
228 |
The env-entry-type element contains the fully-qualified Java type of
|
229 |
the environment entry value that is expected by the web application's
|
230 |
code.
|
231 |
|
232 |
The following are the legal values of env-entry-type:
|
233 |
|
234 |
java.lang.Boolean
|
235 |
java.lang.Byte
|
236 |
java.lang.Character
|
237 |
java.lang.String
|
238 |
java.lang.Short
|
239 |
java.lang.Integer
|
240 |
java.lang.Long
|
241 |
java.lang.Float
|
242 |
java.lang.Double
|
243 |
|
244 |
Used in: env-entry
|
245 |
-->
|
246 |
<!--
|
247 |
The env-entry-value element contains the value of a web application's
|
248 |
environment entry. The value must be a String that is valid for the
|
249 |
constructor of the specified type that takes a single String
|
250 |
parameter, or for java.lang.Character, a single character.
|
251 |
|
252 |
Example:
|
253 |
|
254 |
<env-entry-value>100.00</env-entry-value>
|
255 |
|
256 |
Used in: env-entry
|
257 |
-->
|
258 |
<!--
|
259 |
The error-code contains an HTTP error code, ex: 404
|
260 |
|
261 |
Used in: error-page
|
262 |
-->
|
263 |
<!--
|
264 |
The error-page element contains a mapping between an error code
|
265 |
or exception type to the path of a resource in the web application
|
266 |
|
267 |
Used in: web-app
|
268 |
-->
|
269 |
<!--
|
270 |
The exception type contains a fully qualified class name of a
|
271 |
Java exception type.
|
272 |
|
273 |
Used in: error-page
|
274 |
-->
|
275 |
<!--
|
276 |
The extension element contains a string describing an
|
277 |
extension. example: "txt"
|
278 |
|
279 |
Used in: mime-mapping
|
280 |
-->
|
281 |
<!--
|
282 |
Declares a filter in the web application. The filter is mapped to
|
283 |
either a servlet or a URL pattern in the filter-mapping element, using
|
284 |
the filter-name value to reference. Filters can access the
|
285 |
initialization parameters declared in the deployment descriptor at
|
286 |
runtime via the FilterConfig interface.
|
287 |
|
288 |
Used in: web-app
|
289 |
-->
|
290 |
<!--
|
291 |
The fully qualified classname of the filter.
|
292 |
|
293 |
Used in: filter
|
294 |
-->
|
295 |
<!--
|
296 |
Declaration of the filter mappings in this web application. The
|
297 |
container uses the filter-mapping declarations to decide which filters
|
298 |
to apply to a request, and in what order. The container matches the
|
299 |
request URI to a Servlet in the normal way. To determine which filters
|
300 |
to apply it matches filter-mapping declarations either on servlet-name,
|
301 |
or on url-pattern for each filter-mapping element, depending on which
|
302 |
style is used. The order in which filters are invoked is the order in
|
303 |
which filter-mapping declarations that match a request URI for a
|
304 |
servlet appear in the list of filter-mapping elements.The filter-name
|
305 |
value must be the value of the <filter-name> sub-elements of one of the
|
306 |
<filter> declarations in the deployment descriptor.
|
307 |
|
308 |
Used in: web-app
|
309 |
-->
|
310 |
<!--
|
311 |
The logical name of the filter. This name is used to map the filter.
|
312 |
Each filter name is unique within the web application.
|
313 |
|
314 |
Used in: filter, filter-mapping
|
315 |
-->
|
316 |
<!--
|
317 |
The form-error-page element defines the location in the web app
|
318 |
where the error page that is displayed when login is not successful
|
319 |
can be found. The path begins with a leading / and is interpreted
|
320 |
relative to the root of the WAR.
|
321 |
|
322 |
Used in: form-login-config
|
323 |
-->
|
324 |
<!--
|
325 |
The form-login-config element specifies the login and error pages
|
326 |
that should be used in form based login. If form based authentication
|
327 |
is not used, these elements are ignored.
|
328 |
|
329 |
Used in: login-config
|
330 |
-->
|
331 |
<!--
|
332 |
The form-login-page element defines the location in the web app
|
333 |
where the page that can be used for login can be found. The path
|
334 |
begins with a leading / and is interpreted relative to the root of the WAR.
|
335 |
|
336 |
Used in: form-login-config
|
337 |
-->
|
338 |
<!--
|
339 |
The home element contains the fully-qualified name of the enterprise
|
340 |
bean's home interface.
|
341 |
|
342 |
Used in: ejb-ref
|
343 |
|
344 |
Example:
|
345 |
|
346 |
<home>com.aardvark.payroll.PayrollHome</home>
|
347 |
-->
|
348 |
<!--
|
349 |
The http-method contains an HTTP method (GET | POST |...).
|
350 |
|
351 |
Used in: web-resource-collection
|
352 |
-->
|
353 |
<!--
|
354 |
The icon element contains small-icon and large-icon elements that
|
355 |
specify the file names for small and a large GIF or JPEG icon images
|
356 |
used to represent the parent element in a GUI tool.
|
357 |
|
358 |
Used in: filter, servlet, web-app
|
359 |
-->
|
360 |
<!--
|
361 |
The init-param element contains a name/value pair as an
|
362 |
initialization param of the servlet
|
363 |
|
364 |
Used in: filter, servlet
|
365 |
-->
|
366 |
<!--
|
367 |
The jsp-file element contains the full path to a JSP file within
|
368 |
the web application beginning with a `/'.
|
369 |
|
370 |
Used in: servlet
|
371 |
-->
|
372 |
<!--
|
373 |
The large-icon element contains the name of a file
|
374 |
containing a large (32 x 32) icon image. The file
|
375 |
name is a relative path within the web application's
|
376 |
war file.
|
377 |
|
378 |
The image may be either in the JPEG or GIF format.
|
379 |
The icon can be used by tools.
|
380 |
|
381 |
Used in: icon
|
382 |
|
383 |
Example:
|
384 |
|
385 |
<large-icon>employee-service-icon32x32.jpg</large-icon>
|
386 |
-->
|
387 |
<!--
|
388 |
The listener element indicates the deployment properties for a web
|
389 |
application listener bean.
|
390 |
|
391 |
Used in: web-app
|
392 |
-->
|
393 |
<!--
|
394 |
The listener-class element declares a class in the application must be
|
395 |
registered as a web application listener bean. The value is the fully qualified classname of the listener class.
|
396 |
|
397 |
|
398 |
Used in: listener
|
399 |
-->
|
400 |
<!--
|
401 |
The load-on-startup element indicates that this servlet should be
|
402 |
loaded (instantiated and have its init() called) on the startup
|
403 |
of the web application. The optional contents of
|
404 |
these element must be an integer indicating the order in which
|
405 |
the servlet should be loaded. If the value is a negative integer,
|
406 |
or the element is not present, the container is free to load the
|
407 |
servlet whenever it chooses. If the value is a positive integer
|
408 |
or 0, the container must load and initialize the servlet as the
|
409 |
application is deployed. The container must guarantee that
|
410 |
servlets marked with lower integers are loaded before servlets
|
411 |
marked with higher integers. The container may choose the order
|
412 |
of loading of servlets with the same load-on-start-up value.
|
413 |
|
414 |
Used in: servlet
|
415 |
-->
|
416 |
<!--
|
417 |
|
418 |
The local element contains the fully-qualified name of the
|
419 |
enterprise bean's local interface.
|
420 |
|
421 |
Used in: ejb-local-ref
|
422 |
|
423 |
-->
|
424 |
<!--
|
425 |
|
426 |
The local-home element contains the fully-qualified name of the
|
427 |
enterprise bean's local home interface.
|
428 |
|
429 |
Used in: ejb-local-ref
|
430 |
-->
|
431 |
<!--
|
432 |
The location element contains the location of the resource in the web
|
433 |
application relative to the root of the web application. The value of
|
434 |
the location must have a leading `/'.
|
435 |
|
436 |
Used in: error-page
|
437 |
-->
|
438 |
<!--
|
439 |
The login-config element is used to configure the authentication
|
440 |
method that should be used, the realm name that should be used for
|
441 |
this application, and the attributes that are needed by the form login
|
442 |
mechanism.
|
443 |
|
444 |
Used in: web-app
|
445 |
-->
|
446 |
<!--
|
447 |
The mime-mapping element defines a mapping between an extension
|
448 |
and a mime type.
|
449 |
|
450 |
Used in: web-app
|
451 |
-->
|
452 |
<!--
|
453 |
The mime-type element contains a defined mime type. example:
|
454 |
"text/plain"
|
455 |
|
456 |
Used in: mime-mapping
|
457 |
-->
|
458 |
<!--
|
459 |
The param-name element contains the name of a parameter. Each parameter
|
460 |
name must be unique in the web application.
|
461 |
|
462 |
|
463 |
Used in: context-param, init-param
|
464 |
-->
|
465 |
<!--
|
466 |
The param-value element contains the value of a parameter.
|
467 |
|
468 |
Used in: context-param, init-param
|
469 |
-->
|
470 |
<!--
|
471 |
The realm name element specifies the realm name to use in HTTP
|
472 |
Basic authorization.
|
473 |
|
474 |
Used in: login-config
|
475 |
-->
|
476 |
<!--
|
477 |
The remote element contains the fully-qualified name of the enterprise
|
478 |
bean's remote interface.
|
479 |
|
480 |
Used in: ejb-ref
|
481 |
|
482 |
Example:
|
483 |
|
484 |
<remote>com.wombat.empl.EmployeeService</remote>
|
485 |
-->
|
486 |
<!--
|
487 |
The res-auth element specifies whether the web application code signs
|
488 |
on programmatically to the resource manager, or whether the Container
|
489 |
will sign on to the resource manager on behalf of the web application. In the
|
490 |
latter case, the Container uses information that is supplied by the
|
491 |
Deployer.
|
492 |
|
493 |
The value of this element must be one of the two following:
|
494 |
|
495 |
<res-auth>Application</res-auth>
|
496 |
<res-auth>Container</res-auth>
|
497 |
|
498 |
Used in: resource-ref
|
499 |
-->
|
500 |
<!--
|
501 |
The res-ref-name element specifies the name of a resource manager
|
502 |
connection factory reference. The name is a JNDI name relative to the
|
503 |
java:comp/env context. The name must be unique within a web application.
|
504 |
|
505 |
Used in: resource-ref
|
506 |
-->
|
507 |
<!--
|
508 |
The res-sharing-scope element specifies whether connections obtained
|
509 |
through the given resource manager connection factory reference can be
|
510 |
shared. The value of this element, if specified, must be one of the
|
511 |
two following:
|
512 |
|
513 |
<res-sharing-scope>Shareable</res-sharing-scope>
|
514 |
<res-sharing-scope>Unshareable</res-sharing-scope>
|
515 |
|
516 |
The default value is Shareable.
|
517 |
|
518 |
Used in: resource-ref
|
519 |
-->
|
520 |
<!--
|
521 |
The res-type element specifies the type of the data source. The type
|
522 |
is specified by the fully qualified Java language class or interface
|
523 |
expected to be implemented by the data source.
|
524 |
|
525 |
Used in: resource-ref
|
526 |
-->
|
527 |
<!--
|
528 |
The resource-env-ref element contains a declaration of a web application's
|
529 |
reference to an administered object associated with a resource
|
530 |
in the web application's environment. It consists of an optional
|
531 |
description, the resource environment reference name, and an
|
532 |
indication of the resource environment reference type expected by
|
533 |
the web application code.
|
534 |
|
535 |
Used in: web-app
|
536 |
|
537 |
Example:
|
538 |
|
539 |
<resource-env-ref>
|
540 |
<resource-env-ref-name>jms/StockQueue</resource-env-ref-name>
|
541 |
<resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
|
542 |
</resource-env-ref>
|
543 |
-->
|
544 |
<!--
|
545 |
The resource-env-ref-name element specifies the name of a resource
|
546 |
environment reference; its value is the environment entry name used in
|
547 |
the web application code. The name is a JNDI name relative to the
|
548 |
java:comp/env context and must be unique within a web application.
|
549 |
|
550 |
Used in: resource-env-ref
|
551 |
-->
|
552 |
<!--
|
553 |
The resource-env-ref-type element specifies the type of a resource
|
554 |
environment reference. It is the fully qualified name of a Java
|
555 |
language class or interface.
|
556 |
|
557 |
Used in: resource-env-ref
|
558 |
-->
|
559 |
<!--
|
560 |
The resource-ref element contains a declaration of a web application's
|
561 |
reference to an external resource. It consists of an optional
|
562 |
description, the resource manager connection factory reference name,
|
563 |
the indication of the resource manager connection factory type
|
564 |
expected by the web application code, the type of authentication
|
565 |
(Application or Container), and an optional specification of the
|
566 |
shareability of connections obtained from the resource (Shareable or
|
567 |
Unshareable).
|
568 |
|
569 |
Used in: web-app
|
570 |
|
571 |
Example:
|
572 |
|
573 |
<resource-ref>
|
574 |
<res-ref-name>jdbc/EmployeeAppDB</res-ref-name>
|
575 |
<res-type>javax.sql.DataSource</res-type>
|
576 |
<res-auth>Container</res-auth>
|
577 |
<res-sharing-scope>Shareable</res-sharing-scope>
|
578 |
</resource-ref>
|
579 |
-->
|
580 |
<!--
|
581 |
The role-link element is a reference to a defined security role. The
|
582 |
role-link element must contain the name of one of the security roles
|
583 |
defined in the security-role elements.
|
584 |
|
585 |
Used in: security-role-ref
|
586 |
-->
|
587 |
<!--
|
588 |
The role-name element contains the name of a security role.
|
589 |
|
590 |
The name must conform to the lexical rules for an NMTOKEN.
|
591 |
|
592 |
Used in: auth-constraint, run-as, security-role, security-role-ref
|
593 |
-->
|
594 |
<!--
|
595 |
The run-as element specifies the run-as identity to be used for the
|
596 |
execution of the web application. It contains an optional description, and
|
597 |
the name of a security role.
|
598 |
|
599 |
Used in: servlet
|
600 |
-->
|
601 |
<!--
|
602 |
The security-constraint element is used to associate security
|
603 |
constraints with one or more web resource collections
|
604 |
|
605 |
Used in: web-app
|
606 |
-->
|
607 |
<!--
|
608 |
The security-role element contains the definition of a security
|
609 |
role. The definition consists of an optional description of the
|
610 |
security role, and the security role name.
|
611 |
|
612 |
Used in: web-app
|
613 |
|
614 |
Example:
|
615 |
|
616 |
<security-role>
|
617 |
<description>
|
618 |
This role includes all employees who are authorized
|
619 |
to access the employee service application.
|
620 |
</description>
|
621 |
<role-name>employee</role-name>
|
622 |
</security-role>
|
623 |
-->
|
624 |
<!--
|
625 |
The security-role-ref element contains the declaration of a security
|
626 |
role reference in the web application's code. The declaration consists
|
627 |
of an optional description, the security role name used in the code,
|
628 |
and an optional link to a security role. If the security role is not
|
629 |
specified, the Deployer must choose an appropriate security role.
|
630 |
|
631 |
The value of the role-name element must be the String used as the
|
632 |
parameter to the EJBContext.isCallerInRole(String roleName) method
|
633 |
or the HttpServletRequest.isUserInRole(String role) method.
|
634 |
|
635 |
Used in: servlet
|
636 |
|
637 |
-->
|
638 |
<!--
|
639 |
The servlet element contains the declarative data of a
|
640 |
servlet. If a jsp-file is specified and the load-on-startup element is
|
641 |
present, then the JSP should be precompiled and loaded.
|
642 |
|
643 |
Used in: web-app
|
644 |
-->
|
645 |
<!--
|
646 |
The servlet-class element contains the fully qualified class name
|
647 |
of the servlet.
|
648 |
|
649 |
Used in: servlet
|
650 |
-->
|
651 |
<!--
|
652 |
The servlet-mapping element defines a mapping between a servlet
|
653 |
and a url pattern
|
654 |
|
655 |
Used in: web-app
|
656 |
-->
|
657 |
<!--
|
658 |
The servlet-name element contains the canonical name of the
|
659 |
servlet. Each servlet name is unique within the web application.
|
660 |
|
661 |
Used in: filter-mapping, servlet, servlet-mapping
|
662 |
-->
|
663 |
<!--
|
664 |
The session-config element defines the session parameters for
|
665 |
this web application.
|
666 |
|
667 |
Used in: web-app
|
668 |
-->
|
669 |
<!--
|
670 |
The session-timeout element defines the default session timeout
|
671 |
interval for all sessions created in this web application. The
|
672 |
specified timeout must be expressed in a whole number of minutes.
|
673 |
If the timeout is 0 or less, the container ensures the default
|
674 |
behaviour of sessions is never to time out.
|
675 |
|
676 |
Used in: session-config
|
677 |
-->
|
678 |
<!--
|
679 |
The small-icon element contains the name of a file
|
680 |
containing a small (16 x 16) icon image. The file
|
681 |
name is a relative path within the web application's
|
682 |
war file.
|
683 |
|
684 |
The image may be either in the JPEG or GIF format.
|
685 |
The icon can be used by tools.
|
686 |
|
687 |
Used in: icon
|
688 |
|
689 |
Example:
|
690 |
|
691 |
<small-icon>employee-service-icon16x16.jpg</small-icon>
|
692 |
-->
|
693 |
<!--
|
694 |
The taglib element is used to describe a JSP tag library.
|
695 |
|
696 |
Used in: web-app
|
697 |
-->
|
698 |
<!--
|
699 |
the taglib-location element contains the location (as a resource
|
700 |
relative to the root of the web application) where to find the Tag
|
701 |
Libary Description file for the tag library.
|
702 |
|
703 |
Used in: taglib
|
704 |
-->
|
705 |
<!--
|
706 |
The taglib-uri element describes a URI, relative to the location
|
707 |
of the web.xml document, identifying a Tag Library used in the Web
|
708 |
Application.
|
709 |
|
710 |
Used in: taglib
|
711 |
-->
|
712 |
<!--
|
713 |
The transport-guarantee element specifies that the communication
|
714 |
between client and server should be NONE, INTEGRAL, or
|
715 |
CONFIDENTIAL. NONE means that the application does not require any
|
716 |
transport guarantees. A value of INTEGRAL means that the application
|
717 |
requires that the data sent between the client and server be sent in
|
718 |
such a way that it can't be changed in transit. CONFIDENTIAL means
|
719 |
that the application requires that the data be transmitted in a
|
720 |
fashion that prevents other entities from observing the contents of
|
721 |
the transmission. In most cases, the presence of the INTEGRAL or
|
722 |
CONFIDENTIAL flag will indicate that the use of SSL is required.
|
723 |
|
724 |
Used in: user-data-constraint
|
725 |
-->
|
726 |
<!--
|
727 |
The url-pattern element contains the url pattern of the mapping. Must
|
728 |
follow the rules specified in Section 11.2 of the Servlet API
|
729 |
Specification.
|
730 |
|
731 |
Used in: filter-mapping, servlet-mapping, web-resource-collection
|
732 |
-->
|
733 |
<!--
|
734 |
The user-data-constraint element is used to indicate how data
|
735 |
communicated between the client and container should be protected.
|
736 |
|
737 |
Used in: security-constraint
|
738 |
-->
|
739 |
<!--
|
740 |
The web-resource-collection element is used to identify a subset
|
741 |
of the resources and HTTP methods on those resources within a web
|
742 |
application to which a security constraint applies. If no HTTP methods
|
743 |
are specified, then the security constraint applies to all HTTP
|
744 |
methods.
|
745 |
|
746 |
Used in: security-constraint
|
747 |
-->
|
748 |
<!--
|
749 |
The web-resource-name contains the name of this web resource
|
750 |
collection.
|
751 |
|
752 |
Used in: web-resource-collection
|
753 |
-->
|
754 |
<!--
|
755 |
The welcome-file element contains file name to use as a default
|
756 |
welcome file, such as index.html
|
757 |
|
758 |
Used in: welcome-file-list
|
759 |
-->
|
760 |
<!--
|
761 |
The welcome-file-list contains an ordered list of welcome files
|
762 |
elements.
|
763 |
|
764 |
Used in: web-app
|
765 |
-->
|
766 |
<!--
|
767 |
The ID mechanism is to allow tools that produce additional deployment
|
768 |
information (i.e., information beyond the standard deployment
|
769 |
descriptor information) to store the non-standard information in a
|
770 |
separate file, and easily refer from these tool-specific files to the
|
771 |
information in the standard deployment descriptor.
|
772 |
|
773 |
Tools are not allowed to add the non-standard information into the
|
774 |
standard deployment descriptor.
|
775 |
-->
|
776 |
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:web="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
|
777 |
<display-name>DaoAdresseService</display-name>
|
778 |
<description></description>
|
779 |
<welcome-file-list>
|
780 |
<welcome-file>index.html</welcome-file>
|
781 |
<welcome-file>index.jsp</welcome-file>
|
782 |
</welcome-file-list>
|
783 |
<resource-ref>
|
784 |
<description>MySQL fulddaekning on info.dao.int</description>
|
785 |
<res-ref-name>jdbc/fulddaekning</res-ref-name>
|
786 |
<res-type>javax.sql.DataSource</res-type>
|
787 |
<res-auth>Container</res-auth>
|
788 |
</resource-ref>
|
789 |
<filter>
|
790 |
<filter-name>SetCharacterEncoding</filter-name>
|
791 |
<filter-class>org.apache.catalina.filters.SetCharacterEncodingFilter</filter-class>
|
792 |
<init-param>
|
793 |
<param-name>encoding</param-name>
|
794 |
<param-value>UTF-8</param-value>
|
795 |
</init-param>
|
796 |
</filter>
|
797 |
<filter-mapping>
|
798 |
<filter-name>SetCharacterEncoding</filter-name>
|
799 |
<url-pattern>/*</url-pattern>
|
800 |
</filter-mapping>
|
801 |
</web-app> |