ApacheCXF - an example of web.xml
less than 1 minute read
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<? xml version = "1.0" encoding = "UTF-8" ?>
< web - app xmlns : xsi = "http://www.w3.org/2001/XMLSchema-instance"
xmlns = "http://java.sun.com/xml/ns/javaee" xmlns : web = "http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi : schemaLocation = "http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
id = "WebApp_ID" version = "2.5" >
< context - param >
< param - name > contextConfigLocation </ param - name >
< param - value > classpath : config / applicationContext . xml </ param - value >
</ context - param >
< display - name > Application Name </ display - name >
< welcome - file - list >
< welcome - file > index . jsp </ welcome - file >
</ welcome - file - list >
< servlet >
< servlet - name > CXFServlet </ servlet - name >
< servlet - class > org . apache . cxf . transport . servlet . CXFServlet </ servlet - class >
</ servlet >
< servlet - mapping >
< servlet - name > CXFServlet </ servlet - name >
< url - pattern >/ services /*</ url - pattern >
</ servlet - mapping >
< listener >
< listener - class > org . springframework . web . context . ContextLoaderListener </ listener - class >
</ listener >
</ web - app >