cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r867253 [30/46] - in /websites/production/cxf/content: ./ 2008/04/28/ 2008/06/20/ 2009/02/10/ 2009/08/04/ cache/ docs/ docs/cxf-architecture.thumbs/ docs/cxf-dependency-graphs.thumbs/ docs/logbrowser-configuration.thumbs/ docs/logbrowser-so...
Date Mon, 24 Jun 2013 17:10:57 GMT
Modified: websites/production/cxf/content/docs/jaxrs-services-configuration.html
==============================================================================
--- websites/production/cxf/content/docs/jaxrs-services-configuration.html (original)
+++ websites/production/cxf/content/docs/jaxrs-services-configuration.html Mon Jun 24 17:10:51 2013
@@ -25,6 +25,18 @@
 <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
 <meta name="keywords" content="business integration, EAI, SOA, Service Oriented Architecture, web services, SOAP, JBI, JMS, WSDL, XML, EDI, Electronic Data Interchange, standards support, integration standards, application integration, middleware, software, solutions, services, CXF, open source">
 <meta name="description" content="Apache CXF, Services Framework - JAXRS Services Configuration">
+
+  <link href='http://cxf.apache.org/resources/highlighter/styles/shCore.css' rel='stylesheet' type='text/css' />
+  <link href='http://cxf.apache.org/resources/highlighter/styles/shThemeCXF.css' rel='stylesheet' type='text/css' />
+  <script src='http://cxf.apache.org/resources/highlighter/scripts/shCore.js' type='text/javascript'></script>
+  <script src='http://cxf.apache.org/resources/highlighter/scripts/shBrushJava.js' type='text/javascript'></script>
+  <script src='http://cxf.apache.org/resources/highlighter/scripts/shBrushXml.js' type='text/javascript'></script>
+  
+  <script type="text/javascript">
+  SyntaxHighlighter.defaults['toolbar'] = false;
+  SyntaxHighlighter.all();
+  </script>
+ 
     <title>
 Apache CXF -- JAXRS Services Configuration
     </title>
@@ -42,19 +54,15 @@ Apache CXF -- JAXRS Services Configurati
     <td id="cell-1-0">&nbsp;</td>
     <td id="cell-1-1">&nbsp;</td>
     <td id="cell-1-2">
-      <div style="padding: 5px;">
-        <div id="banner">
-          <!-- Banner -->
-<div id="banner-content">
+      <!-- Banner -->
+<div class="banner" id="banner"><p>
 <table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="left" colspan="1" nowrap>
 <a shape="rect" href="http://cxf.apache.org/" title="Apache CXF"><span style="font-weight: bold; font-size: 170%; color: white">Apache CXF</span></a>
 </td><td align="right" colspan="1" nowrap>
 <a shape="rect" href="http://www.apache.org/" title="The Apache Sofware Foundation"><img border="0" alt="ASF Logo" src="http://cxf.apache.org/images/asf-logo.png"></a>
 </td></tr></table>
-</div>
-          <!-- Banner -->
-        </div>
-      </div>
+</p></div>
+      <!-- Banner -->
       <div id="top-menu">
         <table border="0" cellpadding="1" cellspacing="0" width="100%">
           <tr>
@@ -94,7 +102,7 @@ Apache CXF -- JAXRS Services Configurati
 
 
 <hr>
-<ul class="alternate" type="square"><li>Search
+<ul class="alternate" type="square"><li>Search<br clear="none">
 
 <form enctype="application/x-www-form-urlencoded" method="get" id="cse-search-box" action="http://www.google.com/cse">
   <div>
@@ -129,32 +137,32 @@ Apache CXF -- JAXRS Services Configurati
 <h1><a shape="rect" name="JAXRSServicesConfiguration-ConfiguringJAXRSservicesprogrammatically"></a>Configuring JAX-RS services programmatically</h1>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-<span class="code-keyword">import</span> org.apache.cxf.jaxrs.JAXRSServerFactoryBean;
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+import org.apache.cxf.jaxrs.JAXRSServerFactoryBean;
 ...
 
-JAXRSServerFactoryBean sf = <span class="code-keyword">new</span> JAXRSServerFactoryBean();
+JAXRSServerFactoryBean sf = new JAXRSServerFactoryBean();
 sf.setResourceClasses(CustomerService.class);
-sf.setAddress(<span class="code-quote">"http:<span class="code-comment">//localhost:9000/"</span>);
-</span>sf.create();
-</pre>
+sf.setAddress("http://localhost:9000/");
+sf.create();
+]]></script>
 </div></div>
 
 <p>Some things to note:</p>
 <ul><li>The JAXRSServerFactoryBean creates a Server inside CXF which starts listening for requests on the URL specified.</li><li>Check the <a shape="rect" href="http://cxf.apache.org/javadoc/latest/org/apache/cxf/jaxrs/JAXRSServerFactoryBean.html">JAXRSServerFactoryBean API</a> for methods for adding multiple root resources</li><li>setResourceClasses() is for root resources only, use setProvider() or setProviders() for @Provider-annotated classes.</li><li>By default, the JAX-RS runtime is responsible for the lifecycle of resource classes, default lifecycle is per-request. You can set the lifecycle to singleton by using following line:
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-sf.setResourceProvider(BookStore.class, <span class="code-keyword">new</span> SingletonResourceProvider(<span class="code-keyword">new</span> BookStore()));
-</pre>
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+sf.setResourceProvider(BookStore.class, new SingletonResourceProvider(new BookStore()));
+]]></script>
 </div></div></li><li>If you prefer not to let the JAX-RS runtime handle the resource class lifecycle for you (for example, it might be the case that your resource class is created by other containers such as Spring), you can do the following:
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-JAXRSServerFactoryBean sf = <span class="code-keyword">new</span> JAXRSServerFactoryBean();
-CustomerService cs = <span class="code-keyword">new</span> CustomerService();
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+JAXRSServerFactoryBean sf = new JAXRSServerFactoryBean();
+CustomerService cs = new CustomerService();
 sf.setServiceBeans(cs);
-sf.setAddress(<span class="code-quote">"http:<span class="code-comment">//localhost:9080/"</span>);
-</span>sf.create();
-</pre>
+sf.setAddress("http://localhost:9080/");
+sf.create();
+]]></script>
 </div></div></li></ul>
 
 
@@ -163,59 +171,59 @@ sf.setAddress(<span class="code-quote">"
 <h2><a shape="rect" name="JAXRSServicesConfiguration-Blueprint"></a>Blueprint</h2>
 <p>The following example shows how to configure a JAX-RS endpoint in OSGI containers supporting Blueprint:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-&lt;blueprint xmlns=<span class="code-quote">"http://www.osgi.org/xmlns/blueprint/v1.0.0"</span>
-           <span class="code-keyword">xmlns:xsi</span>=<span class="code-quote">"http://www.w3.org/2001/XMLSchema-instance"</span>
-           <span class="code-keyword">xmlns:jaxws</span>=<span class="code-quote">"http://cxf.apache.org/blueprint/jaxws"</span>
-           <span class="code-keyword">xmlns:jaxrs</span>=<span class="code-quote">"http://cxf.apache.org/blueprint/jaxrs"</span>
-           <span class="code-keyword">xmlns:cxf</span>=<span class="code-quote">"http://cxf.apache.org/blueprint/core"</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
+           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+           xmlns:jaxws="http://cxf.apache.org/blueprint/jaxws"
+           xmlns:jaxrs="http://cxf.apache.org/blueprint/jaxrs"
+           xmlns:cxf="http://cxf.apache.org/blueprint/core"
            xsi:schemaLocation="
              http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
              http://cxf.apache.org/blueprint/jaxrs http://cxf.apache.org/schemas/blueprint/jaxrs.xsd
              http://cxf.apache.org/blueprint/core http://cxf.apache.org/schemas/blueprint/core.xsd
              "&gt;
 
-    <span class="code-tag">&lt;cxf:bus&gt;</span>
-        <span class="code-tag">&lt;cxf:features&gt;</span>
-            <span class="code-tag">&lt;cxf:logging/&gt;</span>
-        <span class="code-tag">&lt;/cxf:features&gt;</span>
-    <span class="code-tag">&lt;/cxf:bus&gt;</span>
-
-     <span class="code-tag">&lt;jaxrs:server id=<span class="code-quote">"customerService"</span> address=<span class="code-quote">"/customers"</span>&gt;</span>
-        <span class="code-tag">&lt;jaxrs:serviceBeans&gt;</span>
-           <span class="code-tag">&lt;ref component-id=<span class="code-quote">"serviceBean"</span> /&gt;</span>
-        <span class="code-tag">&lt;/jaxrs:serviceBeans&gt;</span>
-     <span class="code-tag">&lt;/jaxrs:server&gt;</span>
-
-     <span class="code-tag">&lt;bean id=<span class="code-quote">"serviceBean"</span> class=<span class="code-quote">"service.CustomerService"</span>/&gt;</span>
-<span class="code-tag">&lt;/blueprint&gt;</span>
-</pre>
+    &lt;cxf:bus&gt;
+        &lt;cxf:features&gt;
+            &lt;cxf:logging/&gt;
+        &lt;/cxf:features&gt;
+    &lt;/cxf:bus&gt;
+
+     &lt;jaxrs:server id="customerService" address="/customers"&gt;
+        &lt;jaxrs:serviceBeans&gt;
+           &lt;ref component-id="serviceBean" /&gt;
+        &lt;/jaxrs:serviceBeans&gt;
+     &lt;/jaxrs:server&gt;
+
+     &lt;bean id="serviceBean" class="service.CustomerService"/&gt;
+&lt;/blueprint&gt;
+]]></script>
 </div></div>
 
 <h2><a shape="rect" name="JAXRSServicesConfiguration-Spring"></a>Spring</h2>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-&lt;beans xmlns=<span class="code-quote">"http://www.springframework.org/schema/beans"</span>
-      <span class="code-keyword">xmlns:xsi</span>=<span class="code-quote">"http://www.w3.org/2001/XMLSchema-instance"</span>
-      <span class="code-keyword">xmlns:jaxrs</span>=<span class="code-quote">"http://cxf.apache.org/jaxrs"</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;beans xmlns="http://www.springframework.org/schema/beans"
+      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+      xmlns:jaxrs="http://cxf.apache.org/jaxrs"
       xsi:schemaLocation="
          http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
          http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd"&gt;
 
-     <span class="code-tag">&lt;import resource=<span class="code-quote">"classpath:META-INF/cxf/cxf.xml"</span> /&gt;</span>
-     <span class="code-tag">&lt;import resource=<span class="code-quote">"classpath:META-INF/cxf/osgi/cxf-extension-osgi.xml"</span> /&gt;</span>
+     &lt;import resource="classpath:META-INF/cxf/cxf.xml" /&gt;
+     &lt;import resource="classpath:META-INF/cxf/osgi/cxf-extension-osgi.xml" /&gt;
 
-     <span class="code-tag">&lt;jaxrs:server id=<span class="code-quote">"customerService"</span> address=<span class="code-quote">"/customers"</span>&gt;</span>
-        <span class="code-tag">&lt;jaxrs:serviceBeans&gt;</span>
-           <span class="code-tag">&lt;ref bean=<span class="code-quote">"serviceBean"</span>/&gt;</span>
-        <span class="code-tag">&lt;/jaxrs:serviceBeans&gt;</span>
-     <span class="code-tag">&lt;/jaxrs:server&gt;</span>
+     &lt;jaxrs:server id="customerService" address="/customers"&gt;
+        &lt;jaxrs:serviceBeans&gt;
+           &lt;ref bean="serviceBean"/&gt;
+        &lt;/jaxrs:serviceBeans&gt;
+     &lt;/jaxrs:server&gt;
       
-     <span class="code-tag">&lt;bean id=<span class="code-quote">"serviceBean"</span> class=<span class="code-quote">"service.CustomerService"</span>/&gt;</span> 
-<span class="code-tag">&lt;/beans&gt;</span>
+     &lt;bean id="serviceBean" class="service.CustomerService"/&gt; 
+&lt;/beans&gt;
 
-</pre>
+]]></script>
 </div></div>
 
 <h1><a shape="rect" name="JAXRSServicesConfiguration-ConfiguringJAXRSendpointsprogrammaticallywithoutSpring"></a>Configuring JAX-RS endpoints programmatically without Spring</h1>
@@ -223,17 +231,17 @@ sf.setAddress(<span class="code-quote">"
 <p>Note that even though no Spring is explicitly used in the previous section, it is still used by default to have various CXF components registered with the bus such as transport factories. If no Spring libraries are available on the classpath then please follow the following example :</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-JAXRSServerFactoryBean sf = <span class="code-keyword">new</span> JAXRSServerFactoryBean();
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+JAXRSServerFactoryBean sf = new JAXRSServerFactoryBean();
 sf.setResourceClasses(CustomerService.class);
-sf.setResourceProvider(CustomerService.class, <span class="code-keyword">new</span> SingletonResourceProvider(<span class="code-keyword">new</span> CustomerService()));
-sf.setAddress(<span class="code-quote">"http:<span class="code-comment">//localhost:9000/"</span>);
-</span>BindingFactoryManager manager = sf.getBus().getExtension(BindingFactoryManager.class);
-JAXRSBindingFactory factory = <span class="code-keyword">new</span> JAXRSBindingFactory();
+sf.setResourceProvider(CustomerService.class, new SingletonResourceProvider(new CustomerService()));
+sf.setAddress("http://localhost:9000/");
+BindingFactoryManager manager = sf.getBus().getExtension(BindingFactoryManager.class);
+JAXRSBindingFactory factory = new JAXRSBindingFactory();
 factory.setBus(sf.getBus());
 manager.registerBindingFactory(JAXRSBindingFactory.JAXRS_BINDING_ID, factory);
 sf.create();
-</pre>
+]]></script>
 </div></div> 
 
 <h1><a shape="rect" name="JAXRSServicesConfiguration-ConfiguringJAXRSservicesincontainerwithSpringconfigurationfile."></a>Configuring JAX-RS services in container with Spring configuration file.</h1>
@@ -245,39 +253,39 @@ sf.create();
 <h3><a shape="rect" name="JAXRSServicesConfiguration-UsingSpringContextLoaderListener"></a>Using Spring ContextLoaderListener</h3>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;?xml version=<span class="code-quote">"1.0"</span> encoding=<span class="code-quote">"ISO-8859-1"</span>?&gt;</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
 
 &lt;!DOCTYPE web-app
-    PUBLIC <span class="code-quote">"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"</span>
-    <span class="code-quote">"http://java.sun.com/dtd/web-app_2_3.dtd"</span>&gt;
-<span class="code-tag">&lt;web-app&gt;</span>
-	<span class="code-tag">&lt;context-param&gt;</span>
-		<span class="code-tag">&lt;param-name&gt;</span>contextConfigLocation<span class="code-tag">&lt;/param-name&gt;</span>
-		<span class="code-tag">&lt;param-value&gt;</span>WEB-INF/beans.xml<span class="code-tag">&lt;/param-value&gt;</span>
-	<span class="code-tag">&lt;/context-param&gt;</span>
+    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+    "http://java.sun.com/dtd/web-app_2_3.dtd"&gt;
+&lt;web-app&gt;
+	&lt;context-param&gt;
+		&lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
+		&lt;param-value&gt;WEB-INF/beans.xml&lt;/param-value&gt;
+	&lt;/context-param&gt;
 
-	<span class="code-tag">&lt;listener&gt;</span>
-		<span class="code-tag">&lt;listener-class&gt;</span>
+	&lt;listener&gt;
+		&lt;listener-class&gt;
 			org.springframework.web.context.ContextLoaderListener
-		<span class="code-tag">&lt;/listener-class&gt;</span>
-	<span class="code-tag">&lt;/listener&gt;</span>
+		&lt;/listener-class&gt;
+	&lt;/listener&gt;
 
-	<span class="code-tag">&lt;servlet&gt;</span>
-		<span class="code-tag">&lt;servlet-name&gt;</span>CXFServlet<span class="code-tag">&lt;/servlet-name&gt;</span>
-		<span class="code-tag">&lt;display-name&gt;</span>CXF Servlet<span class="code-tag">&lt;/display-name&gt;</span>
-		<span class="code-tag">&lt;servlet-class&gt;</span>
+	&lt;servlet&gt;
+		&lt;servlet-name&gt;CXFServlet&lt;/servlet-name&gt;
+		&lt;display-name&gt;CXF Servlet&lt;/display-name&gt;
+		&lt;servlet-class&gt;
 			org.apache.cxf.transport.servlet.CXFServlet
-		<span class="code-tag">&lt;/servlet-class&gt;</span>
-		<span class="code-tag">&lt;load-on-startup&gt;</span>1<span class="code-tag">&lt;/load-on-startup&gt;</span>
-	<span class="code-tag">&lt;/servlet&gt;</span>
-
-	<span class="code-tag">&lt;servlet-mapping&gt;</span>
-		<span class="code-tag">&lt;servlet-name&gt;</span>CXFServlet<span class="code-tag">&lt;/servlet-name&gt;</span>
-		<span class="code-tag">&lt;url-pattern&gt;</span>/*<span class="code-tag">&lt;/url-pattern&gt;</span>
-	<span class="code-tag">&lt;/servlet-mapping&gt;</span>
-<span class="code-tag">&lt;/web-app&gt;</span>
-</pre>
+		&lt;/servlet-class&gt;
+		&lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
+	&lt;/servlet&gt;
+
+	&lt;servlet-mapping&gt;
+		&lt;servlet-name&gt;CXFServlet&lt;/servlet-name&gt;
+		&lt;url-pattern&gt;/*&lt;/url-pattern&gt;
+	&lt;/servlet-mapping&gt;
+&lt;/web-app&gt;
+]]></script>
 </div></div>
 
 <p>The application context configuration is shared between all the CXFServlets</p>
@@ -285,51 +293,51 @@ sf.create();
 <h3><a shape="rect" name="JAXRSServicesConfiguration-UsingCXFServletinitparameters"></a>Using CXFServlet init parameters </h3>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;?xml version=<span class="code-quote">"1.0"</span> encoding=<span class="code-quote">"ISO-8859-1"</span>?&gt;</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
 
 &lt;!DOCTYPE web-app
-    PUBLIC <span class="code-quote">"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"</span>
-    <span class="code-quote">"http://java.sun.com/dtd/web-app_2_3.dtd"</span>&gt;
-<span class="code-tag">&lt;web-app&gt;</span>
-	<span class="code-tag">&lt;servlet&gt;</span>
-		<span class="code-tag">&lt;servlet-name&gt;</span>CXFServlet1<span class="code-tag">&lt;/servlet-name&gt;</span>
-		<span class="code-tag">&lt;display-name&gt;</span>CXF Servlet1<span class="code-tag">&lt;/display-name&gt;</span>
-		<span class="code-tag">&lt;servlet-class&gt;</span>
+    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+    "http://java.sun.com/dtd/web-app_2_3.dtd"&gt;
+&lt;web-app&gt;
+	&lt;servlet&gt;
+		&lt;servlet-name&gt;CXFServlet1&lt;/servlet-name&gt;
+		&lt;display-name&gt;CXF Servlet1&lt;/display-name&gt;
+		&lt;servlet-class&gt;
 			org.apache.cxf.transport.servlet.CXFServlet
-		<span class="code-tag">&lt;/servlet-class&gt;</span>
-                <span class="code-tag">&lt;init-param&gt;</span>
-                   <span class="code-tag">&lt;param-name&gt;</span>config-location<span class="code-tag">&lt;/param-name&gt;</span>
-                   <span class="code-tag">&lt;param-value&gt;</span>/WEB-INF/beans1.xml<span class="code-tag">&lt;/param-value&gt;</span>
-                <span class="code-tag">&lt;/init-param&gt;</span>
-		<span class="code-tag">&lt;load-on-startup&gt;</span>1<span class="code-tag">&lt;/load-on-startup&gt;</span>
-	<span class="code-tag">&lt;/servlet&gt;</span>
-
-        <span class="code-tag">&lt;servlet&gt;</span>
-		<span class="code-tag">&lt;servlet-name&gt;</span>CXFServlet2<span class="code-tag">&lt;/servlet-name&gt;</span>
-		<span class="code-tag">&lt;display-name&gt;</span>CXF Servlet2<span class="code-tag">&lt;/display-name&gt;</span>
-		<span class="code-tag">&lt;servlet-class&gt;</span>
+		&lt;/servlet-class&gt;
+                &lt;init-param&gt;
+                   &lt;param-name&gt;config-location&lt;/param-name&gt;
+                   &lt;param-value&gt;/WEB-INF/beans1.xml&lt;/param-value&gt;
+                &lt;/init-param&gt;
+		&lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
+	&lt;/servlet&gt;
+
+        &lt;servlet&gt;
+		&lt;servlet-name&gt;CXFServlet2&lt;/servlet-name&gt;
+		&lt;display-name&gt;CXF Servlet2&lt;/display-name&gt;
+		&lt;servlet-class&gt;
 			org.apache.cxf.transport.servlet.CXFServlet
-		<span class="code-tag">&lt;/servlet-class&gt;</span>
-                <span class="code-tag">&lt;init-param&gt;</span>
-                   <span class="code-tag">&lt;param-name&gt;</span>config-location<span class="code-tag">&lt;/param-name&gt;</span>
-                   <span class="code-tag">&lt;param-value&gt;</span>/WEB-INF/beans2.xml<span class="code-tag">&lt;/param-value&gt;</span>
-                <span class="code-tag">&lt;/init-param&gt;</span>
-		<span class="code-tag">&lt;load-on-startup&gt;</span>1<span class="code-tag">&lt;/load-on-startup&gt;</span>
-	<span class="code-tag">&lt;/servlet&gt;</span>
-
-
-	<span class="code-tag">&lt;servlet-mapping&gt;</span>
-		<span class="code-tag">&lt;servlet-name&gt;</span>CXFServlet1<span class="code-tag">&lt;/servlet-name&gt;</span>
-		<span class="code-tag">&lt;url-pattern&gt;</span>/1/*<span class="code-tag">&lt;/url-pattern&gt;</span>
-	<span class="code-tag">&lt;/servlet-mapping&gt;</span>
-
-        <span class="code-tag">&lt;servlet-mapping&gt;</span>
-		<span class="code-tag">&lt;servlet-name&gt;</span>CXFServlet2<span class="code-tag">&lt;/servlet-name&gt;</span>
-		<span class="code-tag">&lt;url-pattern&gt;</span>/2/*<span class="code-tag">&lt;/url-pattern&gt;</span>
-	<span class="code-tag">&lt;/servlet-mapping&gt;</span>
-<span class="code-tag">&lt;/web-app&gt;</span>
-</pre>
+		&lt;/servlet-class&gt;
+                &lt;init-param&gt;
+                   &lt;param-name&gt;config-location&lt;/param-name&gt;
+                   &lt;param-value&gt;/WEB-INF/beans2.xml&lt;/param-value&gt;
+                &lt;/init-param&gt;
+		&lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
+	&lt;/servlet&gt;
+
+
+	&lt;servlet-mapping&gt;
+		&lt;servlet-name&gt;CXFServlet1&lt;/servlet-name&gt;
+		&lt;url-pattern&gt;/1/*&lt;/url-pattern&gt;
+	&lt;/servlet-mapping&gt;
+
+        &lt;servlet-mapping&gt;
+		&lt;servlet-name&gt;CXFServlet2&lt;/servlet-name&gt;
+		&lt;url-pattern&gt;/2/*&lt;/url-pattern&gt;
+	&lt;/servlet-mapping&gt;
+&lt;/web-app&gt;
+]]></script>
 </div></div>
 
 <p>Each CXFServlet can get a unique application context configuration. Note, no Spring ContextLoaderListener is registered in web.xml in this case.</p>
@@ -337,31 +345,31 @@ sf.create();
 <h2><a shape="rect" name="JAXRSServicesConfiguration-beans.xml"></a>beans.xml</h2>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;?xml version=<span class="code-quote">"1.0"</span> encoding=<span class="code-quote">"UTF-8"</span>?&gt;</span>
-&lt;beans xmlns=<span class="code-quote">"http://www.springframework.org/schema/beans"</span>
-  <span class="code-keyword">xmlns:xsi</span>=<span class="code-quote">"http://www.w3.org/2001/XMLSchema-instance"</span>
-  <span class="code-keyword">xmlns:jaxrs</span>=<span class="code-quote">"http://cxf.apache.org/jaxrs"</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;?xml version="1.0" encoding="UTF-8"?&gt;
+&lt;beans xmlns="http://www.springframework.org/schema/beans"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xmlns:jaxrs="http://cxf.apache.org/jaxrs"
   xsi:schemaLocation="
 http://www.springframework.org/schema/beans
 http://www.springframework.org/schema/beans/spring-beans.xsd
 http://cxf.apache.org/jaxrs
 http://cxf.apache.org/schemas/jaxrs.xsd"&gt;
 
-  <span class="code-tag"><span class="code-comment">&lt;!-- do not use import statements if CXFServlet init parameters link to this beans.xml --&gt;</span></span> 
+  &lt;!-- do not use import statements if CXFServlet init parameters link to this beans.xml --&gt; 
 
-  <span class="code-tag">&lt;import resource=<span class="code-quote">"classpath:META-INF/cxf/cxf.xml"</span> /&gt;</span>
-  <span class="code-tag">&lt;import resource=<span class="code-quote">"classpath:META-INF/cxf/cxf-servlet.xml"</span> /&gt;</span>
+  &lt;import resource="classpath:META-INF/cxf/cxf.xml" /&gt;
+  &lt;import resource="classpath:META-INF/cxf/cxf-servlet.xml" /&gt;
 
-  <span class="code-tag">&lt;jaxrs:server id=<span class="code-quote">"customerService"</span> address=<span class="code-quote">"/service1"</span>&gt;</span>
-    <span class="code-tag">&lt;jaxrs:serviceBeans&gt;</span>
-      <span class="code-tag">&lt;ref bean=<span class="code-quote">"customerBean"</span> /&gt;</span>
-    <span class="code-tag">&lt;/jaxrs:serviceBeans&gt;</span>
-  <span class="code-tag">&lt;/jaxrs:server&gt;</span>
-
-  <span class="code-tag">&lt;bean id=<span class="code-quote">"customerBean"</span> class=<span class="code-quote">"demo.jaxrs.server.CustomerService"</span> /&gt;</span>
-<span class="code-tag">&lt;/beans&gt;</span>
-</pre>
+  &lt;jaxrs:server id="customerService" address="/service1"&gt;
+    &lt;jaxrs:serviceBeans&gt;
+      &lt;ref bean="customerBean" /&gt;
+    &lt;/jaxrs:serviceBeans&gt;
+  &lt;/jaxrs:server&gt;
+
+  &lt;bean id="customerBean" class="demo.jaxrs.server.CustomerService" /&gt;
+&lt;/beans&gt;
+]]></script>
 </div></div>
 
 <p>In the above configuration all resources will be configured as singletons, see <a shape="rect" href="#JAXRSServicesConfiguration-JAXRSServicesConfigurationFromSpring">below</a> for information on creating per-request resources.</p>
@@ -374,28 +382,28 @@ Please report such issues to the team wo
 <p>If you need to do Spring configuration and get an error to do with a missing NamespaceHandler then, as a workaround, consider configuring jaxrs endpoints using CXF beans which actually handle the creation of jaxrs:server endpoints. This is marginally more complex, but overall, the configuration ends up being quite similar, for example, the above jaxrs:server endpoint can be configured like this instead:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;?xml version=<span class="code-quote">"1.0"</span> encoding=<span class="code-quote">"UTF-8"</span>?&gt;</span>
-&lt;beans xmlns=<span class="code-quote">"http://www.springframework.org/schema/beans"</span>
-  <span class="code-keyword">xmlns:xsi</span>=<span class="code-quote">"http://www.w3.org/2001/XMLSchema-instance"</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;?xml version="1.0" encoding="UTF-8"?&gt;
+&lt;beans xmlns="http://www.springframework.org/schema/beans"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="
 http://www.springframework.org/schema/beans
 http://www.springframework.org/schema/beans/spring-beans.xsd"&gt;
 
-  <span class="code-tag">&lt;import resource=<span class="code-quote">"classpath:META-INF/cxf/cxf.xml"</span> /&gt;</span>
-  <span class="code-tag">&lt;import resource=<span class="code-quote">"classpath:META-INF/cxf/cxf-servlet.xml"</span> /&gt;</span>
+  &lt;import resource="classpath:META-INF/cxf/cxf.xml" /&gt;
+  &lt;import resource="classpath:META-INF/cxf/cxf-servlet.xml" /&gt;
 
-  <span class="code-tag">&lt;bean class=<span class="code-quote">"org.apache.cxf.jaxrs.JAXRSServerFactoryBean"</span> init-method=<span class="code-quote">"create"</span>&gt;</span>
-    <span class="code-tag">&lt;property name=<span class="code-quote">"address"</span> value=<span class="code-quote">"/service1"</span>/&gt;</span>
-    <span class="code-tag">&lt;property:serviceBeans&gt;</span>
-      <span class="code-tag">&lt;ref bean=<span class="code-quote">"customerBean"</span> /&gt;</span>
-    <span class="code-tag">&lt;/property:serviceBeans&gt;</span>
-  <span class="code-tag">&lt;/jaxrs:server&gt;</span>
+  &lt;bean class="org.apache.cxf.jaxrs.JAXRSServerFactoryBean" init-method="create"&gt;
+    &lt;property name="address" value="/service1"/&gt;
+    &lt;property:serviceBeans&gt;
+      &lt;ref bean="customerBean" /&gt;
+    &lt;/property:serviceBeans&gt;
+  &lt;/jaxrs:server&gt;
 
-  <span class="code-tag">&lt;bean id=<span class="code-quote">"customerBean"</span> class=<span class="code-quote">"demo.jaxrs.server.CustomerService"</span> /&gt;</span>
-<span class="code-tag">&lt;/beans&gt;</span>
+  &lt;bean id="customerBean" class="demo.jaxrs.server.CustomerService" /&gt;
+&lt;/beans&gt;
 
-</pre>
+]]></script>
 </div></div>
 
 <h1><a shape="rect" name="JAXRSServicesConfiguration-SpringAOP"></a>Spring AOP</h1>
@@ -404,41 +412,41 @@ http://www.springframework.org/schema/be
 For example:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
 
-&lt;beans <span class="code-keyword">xmlns:jaxrs</span>=<span class="code-quote">"http://cxf.apache.org/jaxrs"</span> <span class="code-keyword">xmlns:aop</span>=<span class="code-quote">"http://www.springframework.org/schema/aop"</span> 
+&lt;beans xmlns:jaxrs="http://cxf.apache.org/jaxrs" xmlns:aop="http://www.springframework.org/schema/aop" 
   xsi:schemaLocation=" http://www.springframework.org/schema/beans
   http://www.springframework.org/schema/beans/spring-beans.xsd
   http://www.springframework.org/schema/aop  
   http://www.springframework.org/schema/aop/spring-aop.xsd 
   http://cxf.apache.org/jaxrs 
   http://cxf.apache.org/schemas/jaxrs.xsd"&gt;
-  <span class="code-tag">&lt;import resource=<span class="code-quote">"classpath:META-INF/cxf/cxf.xml"</span>/&gt;</span>
-  <span class="code-tag">&lt;import resource=<span class="code-quote">"classpath:META-INF/cxf/cxf-extension-jaxrs-binding.xml"</span>/&gt;</span>
-  <span class="code-tag">&lt;import resource=<span class="code-quote">"classpath:META-INF/cxf/cxf-servlet.xml"</span>/&gt;</span>
-
-  <span class="code-tag">&lt;jaxrs:server id=<span class="code-quote">"bookservice"</span> address=<span class="code-quote">"/"</span>&gt;</span>
-	<span class="code-tag">&lt;jaxrs:serviceBeans&gt;</span>
-          <span class="code-tag">&lt;ref bean=<span class="code-quote">"bookstore"</span>/&gt;</span>
-          <span class="code-tag">&lt;ref bean=<span class="code-quote">"bookstoreInterface"</span>/&gt;</span>
-        <span class="code-tag">&lt;/jaxrs:serviceBeans&gt;</span>
-   <span class="code-tag">&lt;/jaxrs:server&gt;</span>
-   <span class="code-tag">&lt;bean id=<span class="code-quote">"bookstore"</span> class=<span class="code-quote">"org.apache.cxf.systest.jaxrs.BookStore"</span>/&gt;</span>
-   <span class="code-tag">&lt;bean id=<span class="code-quote">"bookstoreInterface"</span> class=<span class="code-quote">"org.apache.cxf.systest.jaxrs.BookStoreWithInterface"</span>/&gt;</span>
-
-   <span class="code-tag">&lt;aop:config&gt;</span>
-	<span class="code-tag">&lt;aop:aspect id=<span class="code-quote">"loggingAspect"</span> ref=<span class="code-quote">"simpleLogger"</span>&gt;</span>
-          &lt;aop:before method=<span class="code-quote">"logBefore"</span> 
-              pointcut=<span class="code-quote">"execution(* org.apache.cxf.systest.jaxrs.BookStore*.*(..))"</span>/&gt;
-          &lt;aop:after-returning method=<span class="code-quote">"logAfter"</span> 
-              pointcut=<span class="code-quote">"execution(* org.apache.cxf.systest.jaxrs.BookStore*.*(..))"</span>/&gt;
-        <span class="code-tag">&lt;/aop:aspect&gt;</span>
-   <span class="code-tag">&lt;/aop:config&gt;</span>
-   &lt;bean id=<span class="code-quote">"simpleLogger"</span> 
-         class=<span class="code-quote">"org.apache.cxf.systest.jaxrs.SimpleLoggingAspect"</span>/&gt;
-<span class="code-tag">&lt;/beans&gt;</span>
+  &lt;import resource="classpath:META-INF/cxf/cxf.xml"/&gt;
+  &lt;import resource="classpath:META-INF/cxf/cxf-extension-jaxrs-binding.xml"/&gt;
+  &lt;import resource="classpath:META-INF/cxf/cxf-servlet.xml"/&gt;
+
+  &lt;jaxrs:server id="bookservice" address="/"&gt;
+	&lt;jaxrs:serviceBeans&gt;
+          &lt;ref bean="bookstore"/&gt;
+          &lt;ref bean="bookstoreInterface"/&gt;
+        &lt;/jaxrs:serviceBeans&gt;
+   &lt;/jaxrs:server&gt;
+   &lt;bean id="bookstore" class="org.apache.cxf.systest.jaxrs.BookStore"/&gt;
+   &lt;bean id="bookstoreInterface" class="org.apache.cxf.systest.jaxrs.BookStoreWithInterface"/&gt;
+
+   &lt;aop:config&gt;
+	&lt;aop:aspect id="loggingAspect" ref="simpleLogger"&gt;
+          &lt;aop:before method="logBefore" 
+              pointcut="execution(* org.apache.cxf.systest.jaxrs.BookStore*.*(..))"/&gt;
+          &lt;aop:after-returning method="logAfter" 
+              pointcut="execution(* org.apache.cxf.systest.jaxrs.BookStore*.*(..))"/&gt;
+        &lt;/aop:aspect&gt;
+   &lt;/aop:config&gt;
+   &lt;bean id="simpleLogger" 
+         class="org.apache.cxf.systest.jaxrs.SimpleLoggingAspect"/&gt;
+&lt;/beans&gt;
 
-</pre>
+]]></script>
 </div></div> 
 
 <p>Note that some AOP configuration is applied to two JAX-RS resource classes. By default Spring uses JDK dynamic proxies if a class to be proxified implements at least one interface or CGLIB proxies otherwise. </p>
@@ -446,39 +454,39 @@ For example:</p>
 <p>For example, here's how org.apache.cxf.systest.jaxrs.BookStoreWithInterface looks like: </p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
 
-<span class="code-keyword">public</span> <span class="code-keyword">interface</span> BookInterface {
+public interface BookInterface {
     @GET
-    @Path(<span class="code-quote">"/thosebooks/{bookId}/"</span>)
-    @Produces(<span class="code-quote">"application/xml"</span>)
-    Book getThatBook(<span class="code-object">Long</span> id) <span class="code-keyword">throws</span> BookNotFoundFault;
+    @Path("/thosebooks/{bookId}/")
+    @Produces("application/xml")
+    Book getThatBook(Long id) throws BookNotFoundFault;
 }
 
-<span class="code-keyword">public</span> class BookStoreWithInterface <span class="code-keyword">extends</span> BookStoreStorage 
-    <span class="code-keyword">implements</span> BookInterface {
+public class BookStoreWithInterface extends BookStoreStorage 
+    implements BookInterface {
 
-    <span class="code-keyword">public</span> Book getThatBook(@PathParam(<span class="code-quote">"bookId"</span>) <span class="code-object">Long</span> id) 
-        <span class="code-keyword">throws</span> BookNotFoundFault {
-        <span class="code-keyword">return</span> doGetBook(id);
+    public Book getThatBook(@PathParam("bookId") Long id) 
+        throws BookNotFoundFault {
+        return doGetBook(id);
     }
 
-    @Path(<span class="code-quote">"/thebook"</span>)
-    <span class="code-keyword">public</span> Book getTheBook(@PathParam(<span class="code-quote">"bookId"</span>) <span class="code-object">Long</span> id) 
-        <span class="code-keyword">throws</span> BookNotFoundFault {
-        <span class="code-keyword">return</span> doGetBook(id);
+    @Path("/thebook")
+    public Book getTheBook(@PathParam("bookId") Long id) 
+        throws BookNotFoundFault {
+        return doGetBook(id);
     }
 }
-</pre>
+]]></script>
 </div></div>
 
 <p>In this case Spring will use a JDK dynamic proxy to wrap a BookStoreWithInterface class. As such it is important that the method which needs to be invoked such as getThatBook(...) will be part of the interface. </p>
 
 <p>The other method, getTheBook() can not be dispatched to by a JAX-RS runtime as it's not possible to discover it through a JDK proxy. If this method also needs to be invoked then this method should either be added to the interface or CGLIB proxies have to be explicitly enabled (consult Spring AOP documentation for more details). For example:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;aop:config proxy-target-class=<span class="code-quote">"true"</span>/&gt;</span>
-</pre>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;aop:config proxy-target-class="true"/&gt;
+]]></script>
 </div></div>
 
 
@@ -487,68 +495,68 @@ For example:</p>
 <p>If you prefer, you can register JAX-RS endpoints without depending on Spring with the help of CXFNonSpringJaxrsServlet :</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;servlet&gt;</span>
- <span class="code-tag">&lt;servlet-name&gt;</span>CXFServlet<span class="code-tag">&lt;/servlet-name&gt;</span>
- <span class="code-tag">&lt;display-name&gt;</span>CXF Servlet<span class="code-tag">&lt;/display-name&gt;</span>
- <span class="code-tag">&lt;servlet-class&gt;</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;servlet&gt;
+ &lt;servlet-name&gt;CXFServlet&lt;/servlet-name&gt;
+ &lt;display-name&gt;CXF Servlet&lt;/display-name&gt;
+ &lt;servlet-class&gt;
    org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet
- <span class="code-tag">&lt;/servlet-class&gt;</span>
- <span class="code-tag">&lt;init-param&gt;</span>
-  <span class="code-tag">&lt;param-name&gt;</span>jaxrs.serviceClasses<span class="code-tag">&lt;/param-name&gt;</span>
-  <span class="code-tag">&lt;param-value&gt;</span>
+ &lt;/servlet-class&gt;
+ &lt;init-param&gt;
+  &lt;param-name&gt;jaxrs.serviceClasses&lt;/param-name&gt;
+  &lt;param-value&gt;
     org.apache.cxf.systest.jaxrs.BookStore1
     org.apache.cxf.systest.jaxrs.BookStore2		      
-  <span class="code-tag">&lt;/param-value&gt;</span>
- <span class="code-tag">&lt;/init-param&gt;</span>
- <span class="code-tag">&lt;init-param&gt;</span>
-  <span class="code-tag">&lt;param-name&gt;</span>jaxrs.providers<span class="code-tag">&lt;/param-name&gt;</span>
-  <span class="code-tag">&lt;param-value&gt;</span>
+  &lt;/param-value&gt;
+ &lt;/init-param&gt;
+ &lt;init-param&gt;
+  &lt;param-name&gt;jaxrs.providers&lt;/param-name&gt;
+  &lt;param-value&gt;
     org.apache.cxf.systest.jaxrs.BookStoreProvider1
     org.apache.cxf.systest.jaxrs.BookStoreProvider2		      
-  <span class="code-tag">&lt;/param-value&gt;</span>
- <span class="code-tag">&lt;/init-param&gt;</span>
- <span class="code-tag"><span class="code-comment">&lt;!-- enables schema validation --&gt;</span></span>
- <span class="code-tag">&lt;init-param&gt;</span>
-  <span class="code-tag">&lt;param-name&gt;</span>jaxrs.schemaLocations<span class="code-tag">&lt;/param-name&gt;</span>
-  <span class="code-tag">&lt;param-value&gt;</span>
+  &lt;/param-value&gt;
+ &lt;/init-param&gt;
+ &lt;!-- enables schema validation --&gt;
+ &lt;init-param&gt;
+  &lt;param-name&gt;jaxrs.schemaLocations&lt;/param-name&gt;
+  &lt;param-value&gt;
     classpath:/WEB-INF/schemas/schema1.xsd
     classpath:/WEB-INF/schemas/schema2.xsd		      
-  <span class="code-tag">&lt;/param-value&gt;</span>
- <span class="code-tag">&lt;/init-param&gt;</span> 
- <span class="code-tag"><span class="code-comment">&lt;!-- registers CXF in interceptors --&gt;</span></span>
- <span class="code-tag">&lt;init-param&gt;</span>
-  <span class="code-tag">&lt;param-name&gt;</span>jaxrs.inInterceptors<span class="code-tag">&lt;/param-name&gt;</span>
-  <span class="code-tag">&lt;param-value&gt;</span>
+  &lt;/param-value&gt;
+ &lt;/init-param&gt; 
+ &lt;!-- registers CXF in interceptors --&gt;
+ &lt;init-param&gt;
+  &lt;param-name&gt;jaxrs.inInterceptors&lt;/param-name&gt;
+  &lt;param-value&gt;
     org.apache.cxf.systest.jaxrs.CustomInInterceptor
-  <span class="code-tag">&lt;/param-value&gt;</span>
- <span class="code-tag">&lt;/init-param&gt;</span> 
- <span class="code-tag"><span class="code-comment">&lt;!-- registers CXF out interceptors --&gt;</span></span>
- <span class="code-tag">&lt;init-param&gt;</span>
-  <span class="code-tag">&lt;param-name&gt;</span>jaxrs.outInterceptors<span class="code-tag">&lt;/param-name&gt;</span>
-  <span class="code-tag">&lt;param-value&gt;</span>
+  &lt;/param-value&gt;
+ &lt;/init-param&gt; 
+ &lt;!-- registers CXF out interceptors --&gt;
+ &lt;init-param&gt;
+  &lt;param-name&gt;jaxrs.outInterceptors&lt;/param-name&gt;
+  &lt;param-value&gt;
     org.apache.cxf.systest.jaxrs.CustomOutInterceptor
-  <span class="code-tag">&lt;/param-value&gt;</span>
- <span class="code-tag">&lt;/init-param&gt;</span>
- <span class="code-tag"><span class="code-comment">&lt;!-- registers extension mappings --&gt;</span></span>
- <span class="code-tag">&lt;init-param&gt;</span>
-  <span class="code-tag">&lt;param-name&gt;</span>jaxrs.extensions<span class="code-tag">&lt;/param-name&gt;</span>
-  <span class="code-tag">&lt;param-value&gt;</span>
+  &lt;/param-value&gt;
+ &lt;/init-param&gt;
+ &lt;!-- registers extension mappings --&gt;
+ &lt;init-param&gt;
+  &lt;param-name&gt;jaxrs.extensions&lt;/param-name&gt;
+  &lt;param-value&gt;
     xml=application/xml
     json=application/json
-  <span class="code-tag">&lt;/param-value&gt;</span>
- <span class="code-tag">&lt;/init-param&gt;</span>
- <span class="code-tag"><span class="code-comment">&lt;!-- registers contextual properties --&gt;</span></span>
- <span class="code-tag">&lt;init-param&gt;</span>
-  <span class="code-tag">&lt;param-name&gt;</span>jaxrs.properties<span class="code-tag">&lt;/param-name&gt;</span>
-  <span class="code-tag">&lt;param-value&gt;</span>
+  &lt;/param-value&gt;
+ &lt;/init-param&gt;
+ &lt;!-- registers contextual properties --&gt;
+ &lt;init-param&gt;
+  &lt;param-name&gt;jaxrs.properties&lt;/param-name&gt;
+  &lt;param-value&gt;
     property1=value
     property2=value
-  <span class="code-tag">&lt;/param-value&gt;</span>
- <span class="code-tag">&lt;/init-param&gt;</span>
-<span class="code-tag">&lt;load-on-startup&gt;</span>1<span class="code-tag">&lt;/load-on-startup&gt;</span>
-<span class="code-tag">&lt;/servlet&gt;</span>
-</pre>
+  &lt;/param-value&gt;
+ &lt;/init-param&gt;
+&lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
+&lt;/servlet&gt;
+]]></script>
 </div></div>
 
 <p>When service classes and providers are registered this way, the default life-cycle is 'singleton'. You can override it by setting a "jaxrs.scope" parameter with the value of 'prototype' (equivalent to per-request). <br clear="none">
@@ -558,59 +566,59 @@ By default, the endpoint address is "/".
 
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;servlet&gt;</span>
- <span class="code-tag">&lt;servlet-name&gt;</span>CXFServlet<span class="code-tag">&lt;/servlet-name&gt;</span>
- <span class="code-tag">&lt;display-name&gt;</span>CXF Servlet<span class="code-tag">&lt;/display-name&gt;</span>
- <span class="code-tag">&lt;servlet-class&gt;</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;servlet&gt;
+ &lt;servlet-name&gt;CXFServlet&lt;/servlet-name&gt;
+ &lt;display-name&gt;CXF Servlet&lt;/display-name&gt;
+ &lt;servlet-class&gt;
    org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet
- <span class="code-tag">&lt;/servlet-class&gt;</span>
- <span class="code-tag">&lt;init-param&gt;</span>
-  <span class="code-tag">&lt;param-name&gt;</span>jaxrs.serviceClasses<span class="code-tag">&lt;/param-name&gt;</span>
-  <span class="code-tag">&lt;param-value&gt;</span>
+ &lt;/servlet-class&gt;
+ &lt;init-param&gt;
+  &lt;param-name&gt;jaxrs.serviceClasses&lt;/param-name&gt;
+  &lt;param-value&gt;
     org.apache.cxf.systest.jaxrs.BookStore
-  <span class="code-tag">&lt;/param-value&gt;</span>
- <span class="code-tag">&lt;/init-param&gt;</span>
- <span class="code-tag"><span class="code-comment">&lt;!-- link to the user model --&gt;</span></span>
- <span class="code-tag">&lt;init-param&gt;</span>
-  <span class="code-tag">&lt;param-name&gt;</span>user.model<span class="code-tag">&lt;/param-name&gt;</span>
-  <span class="code-tag">&lt;param-value&gt;</span>
+  &lt;/param-value&gt;
+ &lt;/init-param&gt;
+ &lt;!-- link to the user model --&gt;
+ &lt;init-param&gt;
+  &lt;param-name&gt;user.model&lt;/param-name&gt;
+  &lt;param-value&gt;
     classpath:/models/resources.xml
-  <span class="code-tag">&lt;/param-value&gt;</span>
- <span class="code-tag">&lt;/init-param&gt;</span> 
- <span class="code-tag">&lt;load-on-startup&gt;</span>1<span class="code-tag">&lt;/load-on-startup&gt;</span>
-<span class="code-tag">&lt;/servlet&gt;</span>
-</pre>
+  &lt;/param-value&gt;
+ &lt;/init-param&gt; 
+ &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
+&lt;/servlet&gt;
+]]></script>
 </div></div>
 
 <p>A more portable way to register resource classes and providers with CXFNonSpringJaxrsServlet is to use a JAX-RS Application <a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/BookApplication.java">implementation</a> :</p>
 
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;servlet&gt;</span>
- <span class="code-tag">&lt;servlet-name&gt;</span>CXFServlet<span class="code-tag">&lt;/servlet-name&gt;</span>
- <span class="code-tag">&lt;display-name&gt;</span>CXF Servlet<span class="code-tag">&lt;/display-name&gt;</span>
- <span class="code-tag">&lt;servlet-class&gt;</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;servlet&gt;
+ &lt;servlet-name&gt;CXFServlet&lt;/servlet-name&gt;
+ &lt;display-name&gt;CXF Servlet&lt;/display-name&gt;
+ &lt;servlet-class&gt;
    org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet
- <span class="code-tag">&lt;/servlet-class&gt;</span>
- <span class="code-tag">&lt;init-param&gt;</span>
-  <span class="code-tag">&lt;param-name&gt;</span>javax.ws.rs.Application<span class="code-tag">&lt;/param-name&gt;</span>
-  <span class="code-tag">&lt;param-value&gt;</span>
+ &lt;/servlet-class&gt;
+ &lt;init-param&gt;
+  &lt;param-name&gt;javax.ws.rs.Application&lt;/param-name&gt;
+  &lt;param-value&gt;
     org.apache.cxf.systest.jaxrs.BookApplication	      
-  <span class="code-tag">&lt;/param-value&gt;</span>
- <span class="code-tag">&lt;/init-param&gt;</span>
+  &lt;/param-value&gt;
+ &lt;/init-param&gt;
  &lt;!-- 
     This parameter is recognized only starting from CXF 2.3.1
     @ApplicationPath value will be ignored if this parameter is set to true
  --&gt;
- <span class="code-tag">&lt;init-param&gt;</span>
-  <span class="code-tag">&lt;param-name&gt;</span>jaxrs.application.address.ignore<span class="code-tag">&lt;/param-name&gt;</span>
-  <span class="code-tag">&lt;param-value&gt;</span>true<span class="code-tag">&lt;/param-value&gt;</span>
- <span class="code-tag">&lt;/init-param&gt;</span>
-<span class="code-tag">&lt;load-on-startup&gt;</span>1<span class="code-tag">&lt;/load-on-startup&gt;</span>
-<span class="code-tag">&lt;/servlet&gt;</span>
-</pre>
+ &lt;init-param&gt;
+  &lt;param-name&gt;jaxrs.application.address.ignore&lt;/param-name&gt;
+  &lt;param-value&gt;true&lt;/param-value&gt;
+ &lt;/init-param&gt;
+&lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
+&lt;/servlet&gt;
+]]></script>
 </div></div>
 
 <p>Note that Application.getClasses() method returns a set of per-request resource class names. Application.getSingletons() returns a list of singleton resource and provider classes. </p>
@@ -618,40 +626,40 @@ By default, the endpoint address is "/".
 <p>Starting from CXF 2.3.7/2.4.3/2.5.0 it is possible to simple properties for resource and Application classes, providers and interceptors:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;servlet&gt;</span>
- <span class="code-tag">&lt;servlet-name&gt;</span>CXFServlet<span class="code-tag">&lt;/servlet-name&gt;</span>
- <span class="code-tag">&lt;display-name&gt;</span>CXF Servlet<span class="code-tag">&lt;/display-name&gt;</span>
- <span class="code-tag">&lt;servlet-class&gt;</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;servlet&gt;
+ &lt;servlet-name&gt;CXFServlet&lt;/servlet-name&gt;
+ &lt;display-name&gt;CXF Servlet&lt;/display-name&gt;
+ &lt;servlet-class&gt;
    org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet
- <span class="code-tag">&lt;/servlet-class&gt;</span>
- <span class="code-tag">&lt;init-param&gt;</span>
-  <span class="code-tag">&lt;param-name&gt;</span>javax.ws.rs.Application<span class="code-tag">&lt;/param-name&gt;</span>
-  <span class="code-tag">&lt;param-value&gt;</span>
+ &lt;/servlet-class&gt;
+ &lt;init-param&gt;
+  &lt;param-name&gt;javax.ws.rs.Application&lt;/param-name&gt;
+  &lt;param-value&gt;
     org.apache.cxf.systest.jaxrs.BookApplication
     (name=1 id=2)	      
-  <span class="code-tag">&lt;/param-value&gt;</span>
- <span class="code-tag">&lt;/init-param&gt;</span>
- <span class="code-tag">&lt;load-on-startup&gt;</span>1<span class="code-tag">&lt;/load-on-startup&gt;</span>
-<span class="code-tag">&lt;/servlet&gt;</span>
-</pre>
+  &lt;/param-value&gt;
+ &lt;/init-param&gt;
+ &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
+&lt;/servlet&gt;
+]]></script>
 </div></div>
 
 <p>In the above example, org.apache.cxf.systest.jaxrs.BookApplication is expected to have setName and setId setters, with a single primitive or List parameter type. </p>
 
 <p><b>Note</b> that having the web-app_2_3.dtd DTD referenced from web.xml will likely prevent 'param-value' containing spaces and make it difficult to specify multiple providers like this:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
- <span class="code-tag">&lt;init-param&gt;</span>
-  <span class="code-tag">&lt;param-name&gt;</span>jaxrs.providers<span class="code-tag">&lt;/param-name&gt;</span>
-  <span class="code-tag">&lt;param-value&gt;</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+ &lt;init-param&gt;
+  &lt;param-name&gt;jaxrs.providers&lt;/param-name&gt;
+  &lt;param-value&gt;
     mypackage.Provider1 
     mypackage.Provider2	      
-  <span class="code-tag">&lt;/param-value&gt;</span>
- <span class="code-tag">&lt;/init-param&gt;</span>
- <span class="code-tag">&lt;load-on-startup&gt;</span>1<span class="code-tag">&lt;/load-on-startup&gt;</span>
-<span class="code-tag">&lt;/servlet&gt;</span>
-</pre>
+  &lt;/param-value&gt;
+ &lt;/init-param&gt;
+ &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
+&lt;/servlet&gt;
+]]></script>
 </div></div>
 
 <p>In such cases consider moving to the web-app 2.5 schema or extending CXFNonSpringJaxrsProviders or introducing an Application.  </p>
@@ -661,18 +669,18 @@ By default, the endpoint address is "/".
 <p>Here is a code fragment showing how it can be done with the help of CxfNonSpringJaxrsServlet :</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-CXFNonSpringJAXRSServlet cxf = <span class="code-keyword">new</span> CXFNonSpringJaxrsServlet();
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+CXFNonSpringJAXRSServlet cxf = new CXFNonSpringJaxrsServlet();
 
 ...
 
-ServletHolder servlet = <span class="code-keyword">new</span> ServletHolder(cxf);
-servlet.setInitParameter(<span class="code-quote">"javax.ws.rs.Application"</span>, <span class="code-quote">"com.acme.MyServiceImpl"</span>);
-servlet.setName(<span class="code-quote">"services"</span>);
-servlet.setForcedPath(<span class="code-quote">"services"</span>);
-root.addServlet(servlet, <span class="code-quote">"/*"</span>);
+ServletHolder servlet = new ServletHolder(cxf);
+servlet.setInitParameter("javax.ws.rs.Application", "com.acme.MyServiceImpl");
+servlet.setName("services");
+servlet.setForcedPath("services");
+root.addServlet(servlet, "/*");
 
-</pre>
+]]></script>
 </div></div>
 
 <h1><a shape="rect" name="JAXRSServicesConfiguration-JAXRSRuntimeDelegateandApplications"></a>JAX-RS RuntimeDelegate and Applications</h1>
@@ -680,26 +688,26 @@ root.addServlet(servlet, <span class="co
 <p>If you have a JAX-RS Application implementation available and would like to minimize the interaction with the CXF JAX-RS specific API, you may want to use the JAX-RS RuntimeDelegate :</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
 
-<span class="code-keyword">import</span> javax.ws.rs.ext.RuntimeDelegate;
-<span class="code-keyword">import</span> org.apache.cxf.endpoint.Server;
-<span class="code-keyword">import</span> org.apache.cxf.jaxrs.JAXRSServerFactoryBean;
+import javax.ws.rs.ext.RuntimeDelegate;
+import org.apache.cxf.endpoint.Server;
+import org.apache.cxf.jaxrs.JAXRSServerFactoryBean;
 
 RuntimeDelegate delegate = RuntimeDelegate.getInstance();
-JAXRSServerFactoryBean bean = delegate.createEndpoint(<span class="code-keyword">new</span> CustomApplication(), JAXRSServerFactoryBean.class);
+JAXRSServerFactoryBean bean = delegate.createEndpoint(new CustomApplication(), JAXRSServerFactoryBean.class);
+
+// before CXF 2.3.1 :
+// bean.setAddress("http://localhost:8080/services");
+
+bean.setAddress("http://localhost:8080/services" + bean.getAddress());
 
-<span class="code-comment">// before CXF 2.3.1 :
-</span><span class="code-comment">// bean.setAddress(<span class="code-quote">"http://localhost:8080/services"</span>);
-</span>
-bean.setAddress(<span class="code-quote">"http:<span class="code-comment">//localhost:8080/services"</span> + bean.getAddress());
-</span>
 Server server = bean.create();
 server.start();
-<span class="code-comment">// and <span class="code-keyword">finally</span>
-</span>server.stop();
+// and finally
+server.stop();
 
-</pre>
+]]></script>
 </div></div>
 
 <p>Note that the above code makes sure an @ApplicationPath value (if CustomApplication has this annotation) is taken into account.</p>
@@ -708,25 +716,25 @@ server.start();
 
 <p>When using Spring explicitly in your code, you may want to follow this example :</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-ClassPathXmlApplicationContext ctx = <span class="code-keyword">new</span> ClassPathXmlApplicationContext(<span class="code-keyword">new</span> <span class="code-object">String</span>[]
-                      {<span class="code-quote">"/org/apache/cxf/jaxrs/spring/servers.xml"</span>});
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(new String[]
+                      {"/org/apache/cxf/jaxrs/spring/servers.xml"});
 
-<span class="code-comment">// 'simple' is the id of the jaxrs server bean
-</span>JAXRSServerFactoryBean sfb = (JAXRSServerFactoryBean)ctx.getBean(<span class="code-quote">"simple"</span>);
+// 'simple' is the id of the jaxrs server bean
+JAXRSServerFactoryBean sfb = (JAXRSServerFactoryBean)ctx.getBean("simple");
 sfb.create();
-</pre>
+]]></script>
 </div></div>
 
 <p>Note that in in this case your Spring configuration file should import cxf-extension-http-jetty.xml instead of cxf-servlet.xml :</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
 &lt;!--
-<span class="code-tag">&lt;import resource=<span class="code-quote">"classpath:META-INF/cxf/cxf-servlet.xml"</span> /&gt;</span>
+&lt;import resource="classpath:META-INF/cxf/cxf-servlet.xml" /&gt;
 --&gt;
-<span class="code-tag">&lt;import resource=<span class="code-quote">"classpath:META-INF/cxf/cxf-extension-http-jetty.xml"</span> /&gt;</span>
-</pre>
+&lt;import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml" /&gt;
+]]></script>
 </div></div>
 
 <h1><a shape="rect" name="JAXRSServicesConfiguration-Lifecyclemanagement"></a>Lifecycle management</h1>
@@ -736,21 +744,21 @@ sfb.create();
 <p>By default, the service beans which are referenced directly from the jaxrs:server endpoint declarations are treated by the runtime as singleton JAX-RS root resources. For example:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;beans&gt;</span>
-  <span class="code-tag">&lt;jaxrs:server id=<span class="code-quote">"customerService"</span> address=<span class="code-quote">"/service1"</span>&gt;</span>
-    <span class="code-tag">&lt;jaxrs:serviceBeans&gt;</span>
-      <span class="code-tag">&lt;ref bean=<span class="code-quote">"customerBean"</span> /&gt;</span>
-    <span class="code-tag">&lt;/jaxrs:serviceBeans&gt;</span>
-  <span class="code-tag">&lt;/jaxrs:server&gt;</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;beans&gt;
+  &lt;jaxrs:server id="customerService" address="/service1"&gt;
+    &lt;jaxrs:serviceBeans&gt;
+      &lt;ref bean="customerBean" /&gt;
+    &lt;/jaxrs:serviceBeans&gt;
+  &lt;/jaxrs:server&gt;
   &lt;!--
     The scope attribute, if any, will be ignored. For example, adding the scope attribute with the value
-    <span class="code-quote">"request"</span>, <span class="code-quote">"prototype"</span>, etc, won't have any effect, the customerBean will still be treated as 
+    "request", "prototype", etc, won't have any effect, the customerBean will still be treated as 
     a JAX-RS singleton by the runtime.
   --&gt; 
-  <span class="code-tag">&lt;bean id=<span class="code-quote">"customerBean"</span> class=<span class="code-quote">"demo.jaxrs.server.CustomerService"</span> /&gt;</span>
-<span class="code-tag">&lt;/beans&gt;</span>
-</pre>
+  &lt;bean id="customerBean" class="demo.jaxrs.server.CustomerService" /&gt;
+&lt;/beans&gt;
+]]></script>
 </div></div>
 
 <p>Spring instantiates and injects the customerBean reference and the runtime will access this reference directly afterwards. Effectively, the scope attribute which may be present on the customerBean bean declaration is ignored in this case, <b>unless the Spring AOP is used to enforce the required scope</b> (see below for more information). </p>
@@ -760,26 +768,26 @@ sfb.create();
 <p>For example, the serviceFactories element can reference one or more beans of type 'org.apache.cxf.jaxrs.spring.SpringResourceFactory' which in turn reference the actual service beans.   </p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;beans&gt;</span>
-  <span class="code-tag">&lt;jaxrs:server id=<span class="code-quote">"customerService"</span> address=<span class="code-quote">"/service1"</span>&gt;</span>
-    <span class="code-tag">&lt;jaxrs:serviceFactories&gt;</span>
-      <span class="code-tag">&lt;ref bean=<span class="code-quote">"sfactory1"</span> /&gt;</span>
-      <span class="code-tag">&lt;ref bean=<span class="code-quote">"sfactory2"</span> /&gt;</span> 
-    <span class="code-tag">&lt;/jaxrs:serviceFactories&gt;</span>
-  <span class="code-tag">&lt;/jaxrs:server&gt;</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;beans&gt;
+  &lt;jaxrs:server id="customerService" address="/service1"&gt;
+    &lt;jaxrs:serviceFactories&gt;
+      &lt;ref bean="sfactory1" /&gt;
+      &lt;ref bean="sfactory2" /&gt; 
+    &lt;/jaxrs:serviceFactories&gt;
+  &lt;/jaxrs:server&gt;
   
-  <span class="code-tag">&lt;bean id=<span class="code-quote">"sfactory1"</span> class=<span class="code-quote">"org.apache.cxf.jaxrs.spring.SpringResourceFactory"</span>&gt;</span>
-     <span class="code-tag">&lt;property name=<span class="code-quote">"beanId"</span> value=<span class="code-quote">"customerBean1"</span>/&gt;</span>
-  <span class="code-tag">&lt;/bean&gt;</span>
-  <span class="code-tag">&lt;bean id=<span class="code-quote">"sfactory2"</span> class=<span class="code-quote">"org.apache.cxf.jaxrs.spring.SpringResourceFactory"</span>&gt;</span>
-     <span class="code-tag">&lt;property name=<span class="code-quote">"beanId"</span> value=<span class="code-quote">"customerBean2"</span>/&gt;</span>
-  <span class="code-tag">&lt;/bean&gt;</span>
-
-  <span class="code-tag">&lt;bean id=<span class="code-quote">"customerBean1"</span> class=<span class="code-quote">"demo.jaxrs.server.CustomerRootResource1"</span> scope=<span class="code-quote">"prototype"</span>/&gt;</span> 
-  <span class="code-tag">&lt;bean id=<span class="code-quote">"customerBean2"</span> class=<span class="code-quote">"demo.jaxrs.server.CustomerRootResource2"</span>  scope=<span class="code-quote">"prototype"</span>/&gt;</span> 
-<span class="code-tag">&lt;/beans&gt;</span>
-</pre>
+  &lt;bean id="sfactory1" class="org.apache.cxf.jaxrs.spring.SpringResourceFactory"&gt;
+     &lt;property name="beanId" value="customerBean1"/&gt;
+  &lt;/bean&gt;
+  &lt;bean id="sfactory2" class="org.apache.cxf.jaxrs.spring.SpringResourceFactory"&gt;
+     &lt;property name="beanId" value="customerBean2"/&gt;
+  &lt;/bean&gt;
+
+  &lt;bean id="customerBean1" class="demo.jaxrs.server.CustomerRootResource1" scope="prototype"/&gt; 
+  &lt;bean id="customerBean2" class="demo.jaxrs.server.CustomerRootResource2"  scope="prototype"/&gt; 
+&lt;/beans&gt;
+]]></script>
 </div></div>
 
 <p>In this example, the jaxrs:server endpoint has two JAX-RS root resources (customerBean1 and customerBean2) with the Spring 'prototype' scope.<br clear="none">
@@ -788,15 +796,15 @@ Other scopes can also be supported.</p>
 <p>If using the jaxrs:serviceFactories element seems a bit verbose then the 'beanNames' attribute can be used instead:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;beans&gt;</span>
-  &lt;jaxrs:server id=<span class="code-quote">"customerService"</span> address=<span class="code-quote">"/service1"</span>
-    beanNames=<span class="code-quote">"customerBean1 customerBean2"</span>/&gt;
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;beans&gt;
+  &lt;jaxrs:server id="customerService" address="/service1"
+    beanNames="customerBean1 customerBean2"/&gt;
   
-  <span class="code-tag">&lt;bean id=<span class="code-quote">"customerBean1"</span> class=<span class="code-quote">"demo.jaxrs.server.CustomerRootResource1"</span> scope=<span class="code-quote">"prototype"</span>/&gt;</span> 
-  <span class="code-tag">&lt;bean id=<span class="code-quote">"customerBean2"</span> class=<span class="code-quote">"demo.jaxrs.server.CustomerRootResource2"</span>  scope=<span class="code-quote">"prototype"</span>/&gt;</span> 
-<span class="code-tag">&lt;/beans&gt;</span>
-</pre>
+  &lt;bean id="customerBean1" class="demo.jaxrs.server.CustomerRootResource1" scope="prototype"/&gt; 
+  &lt;bean id="customerBean2" class="demo.jaxrs.server.CustomerRootResource2"  scope="prototype"/&gt; 
+&lt;/beans&gt;
+]]></script>
 </div></div>
 
 <p>The beanNames attribute lists the names/ids of service beans separated by space. The jaxrs:serviceFactories element has to be used when users register custom CXF JAX-RS <a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/lifecycle/ResourceProvider.java">ResourceProvider</a> implementations.</p>
@@ -804,59 +812,59 @@ Other scopes can also be supported.</p>
 <p>Another approach toward supporting complex scopes in Spring is to use Spring AOP. For example, the following fragment shows how to have the Spring "request" scope supported:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
 &lt;beans
-	xmlns=<span class="code-quote">"http://www.springframework.org/schema/beans"</span>
-	<span class="code-keyword">xmlns:aop</span>=<span class="code-quote">"http://www.springframework.org/schema/aop"</span>
-	<span class="code-keyword">xmlns:jaxrs</span>=<span class="code-quote">"http://cxf.apache.org/jaxrs"</span>
-	<span class="code-keyword">xmlns:cxf</span>=<span class="code-quote">"http://cxf.apache.org/core"</span>
-	<span class="code-keyword">xmlns:xsi</span>=<span class="code-quote">"http://www.w3.org/2001/XMLSchema-instance"</span>
+	xmlns="http://www.springframework.org/schema/beans"
+	xmlns:aop="http://www.springframework.org/schema/aop"
+	xmlns:jaxrs="http://cxf.apache.org/jaxrs"
+	xmlns:cxf="http://cxf.apache.org/core"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 	xsi:schemaLocation="
 		http://www.springframework.org/schema/beans   http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
 		http://www.springframework.org/schema/aop     http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
 		http://cxf.apache.org/jaxrs                   http://cxf.apache.org/schemas/jaxrs.xsd
 		http://cxf.apache.org/core                    http://cxf.apache.org/schemas/core.xsd"&gt;
 
-	<span class="code-tag">&lt;import resource=<span class="code-quote">"classpath:META-INF/cxf/cxf.xml"</span>/&gt;</span>
-	<span class="code-tag">&lt;import resource=<span class="code-quote">"classpath:META-INF/cxf/cxf-servlet.xml"</span>/&gt;</span>
+	&lt;import resource="classpath:META-INF/cxf/cxf.xml"/&gt;
+	&lt;import resource="classpath:META-INF/cxf/cxf-servlet.xml"/&gt;
 
-	<span class="code-tag">&lt;bean class=<span class="code-quote">"org.springframework.context.annotation.CommonAnnotationBeanPostProcessor"</span>/&gt;</span>
+	&lt;bean class="org.springframework.context.annotation.CommonAnnotationBeanPostProcessor"/&gt;
 
-	<span class="code-tag">&lt;jaxrs:server id=<span class="code-quote">"example"</span> address=<span class="code-quote">"/"</span>&gt;</span>
-       	    <span class="code-tag">&lt;jaxrs:serviceBeans&gt;</span>
-   	        <span class="code-tag">&lt;bean class=<span class="code-quote">"org.apache.cxf.systest.jaxrs.CustomerService"</span> scope=<span class="code-quote">"request"</span>&gt;</span><span class="code-tag">&lt;aop:scoped-proxy /&gt;</span><span class="code-tag">&lt;/bean&gt;</span>
-	    <span class="code-tag">&lt;/jaxrs:serviceBeans&gt;</span>
-	<span class="code-tag">&lt;/jaxrs:server&gt;</span>
-<span class="code-tag">&lt;/beans&gt;</span>
-</pre>
+	&lt;jaxrs:server id="example" address="/"&gt;
+       	    &lt;jaxrs:serviceBeans&gt;
+   	        &lt;bean class="org.apache.cxf.systest.jaxrs.CustomerService" scope="request"&gt;&lt;aop:scoped-proxy /&gt;&lt;/bean&gt;
+	    &lt;/jaxrs:serviceBeans&gt;
+	&lt;/jaxrs:server&gt;
+&lt;/beans&gt;
+]]></script>
 </div></div>
 
 <p>in addition, the following servlet listener has to be added to the web.xml:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;listener&gt;</span>
-    <span class="code-tag">&lt;listener-class&gt;</span>org.springframework.web.context.request.RequestContextListener<span class="code-tag">&lt;/listener-class&gt;</span>
-<span class="code-tag">&lt;/listener&gt;</span>
-</pre>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;listener&gt;
+    &lt;listener-class&gt;org.springframework.web.context.request.RequestContextListener&lt;/listener-class&gt;
+&lt;/listener&gt;
+]]></script>
 </div></div>
 
 <p>The request-scoped service bean instances (example, org.apache.cxf.systest.jaxrs.CustomerService instances) are not actually available at the initialization time thus one limitation of the above configuration is that it is not possible to inject JAX-RS contexts into these service beans. This is not a show-stopper because contexts such as UriInfo can be passed in as resource method parameters. However, if the injection into the fields or via method setters is required then a little customization of the org.apache.cxf.jaxrs.spring.SpringResourceFactory will do the trick. Particularly, the Spring ApplicationContext reports that a request-scoped bean is a singleton but the JAX-RS runtime can not inject thread-local proxies given that the actual instance is not available as explained above; in fact, the request-scoped beans are not really JAX-RS singletons. Thus a simple custom factory like <a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/cxf/trunk/s
 ystests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/RequestScopeResourceFactory.java">this one</a> is needed and it has to be used the following way:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;beans&gt;</span>
-  <span class="code-tag">&lt;jaxrs:server id=<span class="code-quote">"customerService"</span> address=<span class="code-quote">"/service1"</span>&gt;</span>
-    <span class="code-tag">&lt;jaxrs:serviceFactories&gt;</span>
-       <span class="code-tag">&lt;bean class=<span class="code-quote">"org.apache.cxf.systest.jaxrs.RequestScopeResourceFactory"</span>&gt;</span>
-          <span class="code-tag">&lt;property name=<span class="code-quote">"beanId"</span> value=<span class="code-quote">"customerBean"</span>/&gt;</span>
-       <span class="code-tag">&lt;/bean&gt;</span> 
-    <span class="code-tag">&lt;/jaxrs:serviceFactories&gt;</span>
-  <span class="code-tag">&lt;/jaxrs:server&gt;</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;beans&gt;
+  &lt;jaxrs:server id="customerService" address="/service1"&gt;
+    &lt;jaxrs:serviceFactories&gt;
+       &lt;bean class="org.apache.cxf.systest.jaxrs.RequestScopeResourceFactory"&gt;
+          &lt;property name="beanId" value="customerBean"/&gt;
+       &lt;/bean&gt; 
+    &lt;/jaxrs:serviceFactories&gt;
+  &lt;/jaxrs:server&gt;
   
-  <span class="code-tag">&lt;bean id=<span class="code-quote">"customerBean"</span> class=<span class="code-quote">"org.apache.cxf.systest.jaxrs.CustomerService"</span> scope=<span class="code-quote">"request"</span>&gt;</span><span class="code-tag">&lt;aop:scoped-proxy /&gt;</span><span class="code-tag">&lt;/bean&gt;</span>
-<span class="code-tag">&lt;/beans&gt;</span>
-</pre>
+  &lt;bean id="customerBean" class="org.apache.cxf.systest.jaxrs.CustomerService" scope="request"&gt;&lt;aop:scoped-proxy /&gt;&lt;/bean&gt;
+&lt;/beans&gt;
+]]></script>
 </div></div>
 
 <p>The above configuration makes sure that the CXF JAX-RS runtime injects the values at the request time given that the customerBean bean is not seen as a JAX-RS singleton. This approach is only needed if the injection of contexts is required.</p>
@@ -868,24 +876,24 @@ Other scopes can also be supported.</p>
 <p>CXFNonSpringJaxrsServlet can support singleton scopes for classes with constructors expecting JAXRS contexts, at the moment it can only inject ServletContext or ServletConfig contexts :</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-@Path(<span class="code-quote">"/"</span>)
-<span class="code-keyword">public</span> class SingletonResourceClass {
-   <span class="code-keyword">public</span> SingletonResourceClass(@Context ServletContext context, @Context ServletConfig context2) {}
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+@Path("/")
+public class SingletonResourceClass {
+   public SingletonResourceClass(@Context ServletContext context, @Context ServletConfig context2) {}
 }
-</pre>
+]]></script>
 </div></div> 
 
 <h2><a shape="rect" name="JAXRSServicesConfiguration-Programmatically"></a>Programmatically</h2>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-JAXRSServerFactoryBean sf = <span class="code-keyword">new</span> JAXRSServerFactoryBean();
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+JAXRSServerFactoryBean sf = new JAXRSServerFactoryBean();
 sf.setResourceClass(CustomerService.class);
-sf.setResourceProvider(<span class="code-keyword">new</span> SingletonResourceProvider(<span class="code-keyword">new</span> CustomerService()));
+sf.setResourceProvider(new SingletonResourceProvider(new CustomerService()));
 sf.setResourceClass(CustomerService2.class);
-sf.setResourceProvider(<span class="code-keyword">new</span> PerRequestResourceProvider(CustomerService.class));
-</pre>
+sf.setResourceProvider(new PerRequestResourceProvider(CustomerService.class));
+]]></script>
 </div></div>
 
 <h2><a shape="rect" name="JAXRSServicesConfiguration-PostConstructandPreDestroy"></a>PostConstruct and PreDestroy</h2>
@@ -911,61 +919,61 @@ Since CXF 2.2.3 one can put them directl
 <p>One way to share multiple providers between multiple endpoints is to refer to the same provider bean from within jaxrs:provider sections:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;beans&gt;</span>
-  <span class="code-tag">&lt;jaxrs:server id=<span class="code-quote">"customerService"</span> address=<span class="code-quote">"/service1"</span>&gt;</span>
-    <span class="code-tag">&lt;jaxrs:serviceBeans&gt;</span>
-      <span class="code-tag">&lt;bean class=<span class="code-quote">"org.apache.cxf.systest.jaxrs.CustomerService"</span>/&gt;</span>
-    <span class="code-tag">&lt;/jaxrs:serviceBeans&gt;</span>
-    <span class="code-tag">&lt;jaxrs:providers&gt;</span>
-      <span class="code-tag">&lt;bean ref=<span class="code-quote">"customProvider"</span>/&gt;</span>
-    <span class="code-tag">&lt;/jaxrs:providers&gt;</span>
-
-  <span class="code-tag">&lt;/jaxrs:server&gt;</span>
-
-  <span class="code-tag">&lt;jaxrs:server id=<span class="code-quote">"customerService"</span> address=<span class="code-quote">"/service2"</span>&gt;</span>
-    <span class="code-tag">&lt;jaxrs:serviceBeans&gt;</span>
-      <span class="code-tag">&lt;bean class=<span class="code-quote">"org.apache.cxf.systest.jaxrs.CustomerService2"</span>/&gt;</span>
-    <span class="code-tag">&lt;/jaxrs:serviceBeans&gt;</span>
-    <span class="code-tag">&lt;jaxrs:providers&gt;</span>
-      <span class="code-tag">&lt;bean ref=<span class="code-quote">"customProvider"</span>/&gt;</span>
-    <span class="code-tag">&lt;/jaxrs:providers&gt;</span>
-  <span class="code-tag">&lt;/jaxrs:server&gt;</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;beans&gt;
+  &lt;jaxrs:server id="customerService" address="/service1"&gt;
+    &lt;jaxrs:serviceBeans&gt;
+      &lt;bean class="org.apache.cxf.systest.jaxrs.CustomerService"/&gt;
+    &lt;/jaxrs:serviceBeans&gt;
+    &lt;jaxrs:providers&gt;
+      &lt;bean ref="customProvider"/&gt;
+    &lt;/jaxrs:providers&gt;
+
+  &lt;/jaxrs:server&gt;
+
+  &lt;jaxrs:server id="customerService" address="/service2"&gt;
+    &lt;jaxrs:serviceBeans&gt;
+      &lt;bean class="org.apache.cxf.systest.jaxrs.CustomerService2"/&gt;
+    &lt;/jaxrs:serviceBeans&gt;
+    &lt;jaxrs:providers&gt;
+      &lt;bean ref="customProvider"/&gt;
+    &lt;/jaxrs:providers&gt;
+  &lt;/jaxrs:server&gt;
   
-  <span class="code-tag">&lt;bean id=<span class="code-quote">"customProvider"</span> class=<span class="code-quote">"org.apache.cxf.systest.jaxrs.CustomerProvider"</span>/&gt;</span>
-<span class="code-tag">&lt;/beans&gt;</span>
+  &lt;bean id="customProvider" class="org.apache.cxf.systest.jaxrs.CustomerProvider"/&gt;
+&lt;/beans&gt;
 
-</pre>
+]]></script>
 </div></div>
 
 <p>Starting from CXF 2.7.2 it is possible to register provider directly on the bus as the bus properties and share them between all the providers using this bus:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;beans&gt;</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;beans&gt;
   
-  <span class="code-tag">&lt;cxf:bus&gt;</span>
-        <span class="code-tag">&lt;cxf:properties&gt;</span>
-            <span class="code-tag">&lt;entry key=<span class="code-quote">"javax.ws.rs.ext.ExceptionMapper"</span> ref=<span class="code-quote">"exceptionMapper"</span>/&gt;</span>
-        <span class="code-tag">&lt;/cxf:properties&gt;</span>
+  &lt;cxf:bus&gt;
+        &lt;cxf:properties&gt;
+            &lt;entry key="javax.ws.rs.ext.ExceptionMapper" ref="exceptionMapper"/&gt;
+        &lt;/cxf:properties&gt;
   &lt;/cxf:bus
 
-  <span class="code-tag">&lt;bean id=<span class="code-quote">"exceptionMapper"</span> class=<span class="code-quote">"org.apache.cxf.systest.jaxrs.RuntimeExceptionMapper"</span>/&gt;</span>
+  &lt;bean id="exceptionMapper" class="org.apache.cxf.systest.jaxrs.RuntimeExceptionMapper"/&gt;
 
-  <span class="code-tag">&lt;jaxrs:server id=<span class="code-quote">"customerService"</span> address=<span class="code-quote">"/service1"</span>&gt;</span>
-    <span class="code-tag">&lt;jaxrs:serviceBeans&gt;</span>
-      <span class="code-tag">&lt;bean class=<span class="code-quote">"org.apache.cxf.systest.jaxrs.CustomerService"</span>/&gt;</span>
-    <span class="code-tag">&lt;/jaxrs:serviceBeans&gt;</span>
-  <span class="code-tag">&lt;/jaxrs:server&gt;</span>
-
-  <span class="code-tag">&lt;jaxrs:server id=<span class="code-quote">"customerService"</span> address=<span class="code-quote">"/service2"</span>&gt;</span>
-    <span class="code-tag">&lt;jaxrs:serviceBeans&gt;</span>
-      <span class="code-tag">&lt;bean class=<span class="code-quote">"org.apache.cxf.systest.jaxrs.CustomerService2"</span>/&gt;</span>
-    <span class="code-tag">&lt;/jaxrs:serviceBeans&gt;</span>
-  <span class="code-tag">&lt;/jaxrs:server&gt;</span>
+  &lt;jaxrs:server id="customerService" address="/service1"&gt;
+    &lt;jaxrs:serviceBeans&gt;
+      &lt;bean class="org.apache.cxf.systest.jaxrs.CustomerService"/&gt;
+    &lt;/jaxrs:serviceBeans&gt;
+  &lt;/jaxrs:server&gt;
+
+  &lt;jaxrs:server id="customerService" address="/service2"&gt;
+    &lt;jaxrs:serviceBeans&gt;
+      &lt;bean class="org.apache.cxf.systest.jaxrs.CustomerService2"/&gt;
+    &lt;/jaxrs:serviceBeans&gt;
+  &lt;/jaxrs:server&gt;
   
-  <span class="code-tag">&lt;/beans&gt;</span>
-</pre>
+  &lt;/beans&gt;
+]]></script>
 </div></div>
 
 <p>Note a global exception mapper has been registered using the name of interface, "javax.ws.rs.ext.ExceptionMapper", which all the exception mappers have to implement. </p>
@@ -975,39 +983,39 @@ Since CXF 2.2.3 one can put them directl
 <p>Alternatively, one can have all the providers (JAX-RS and CXF-specific) registered with a bus using "org.apache.cxf.jaxrs.bus.providers" list property:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;beans <span class="code-keyword">xmlns:util</span>=<span class="code-quote">"http://www.springframework.org/schema/util"</span>&gt;</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;beans xmlns:util="http://www.springframework.org/schema/util"&gt;
   
-  <span class="code-tag">&lt;cxf:bus&gt;</span>
-        <span class="code-tag">&lt;cxf:properties&gt;</span>
-            <span class="code-tag">&lt;entry key=<span class="code-quote">"org.apache.cxf.jaxrs.bus.providers"</span> ref=<span class="code-quote">"busProviders"</span>/&gt;</span>
-        <span class="code-tag">&lt;/cxf:properties&gt;</span>
+  &lt;cxf:bus&gt;
+        &lt;cxf:properties&gt;
+            &lt;entry key="org.apache.cxf.jaxrs.bus.providers" ref="busProviders"/&gt;
+        &lt;/cxf:properties&gt;
   &lt;/cxf:bus
 
-  <span class="code-tag">&lt;util:list id=<span class="code-quote">"busProviders"</span>&gt;</span>
-    <span class="code-tag">&lt;ref bean=<span class="code-quote">"exceptionMapper"</span>/&gt;</span>
-    <span class="code-tag">&lt;ref bean=<span class="code-quote">"customMessageBodyReader"</span>/&gt;</span>
-    <span class="code-tag">&lt;ref bean=<span class="code-quote">"customMessageBodyWriter"</span>/&gt;</span>
-  <span class="code-tag">&lt;/util:list&gt;</span>
-
-  <span class="code-tag">&lt;bean id=<span class="code-quote">"exceptionMapper"</span> class=<span class="code-quote">"org.apache.cxf.systest.jaxrs.RuntimeExceptionMapper"</span>/&gt;</span>
-  <span class="code-tag">&lt;bean id=<span class="code-quote">"customMessageBodyReader"</span> class=<span class="code-quote">"org.apache.cxf.systest.jaxrs.CustomReader"</span>/&gt;</span>
-  <span class="code-tag">&lt;bean id=<span class="code-quote">"customMessageBodyWriter"</span> class=<span class="code-quote">"org.apache.cxf.systest.jaxrs.CustomWriter"</span>/&gt;</span> 
-
-  <span class="code-tag">&lt;jaxrs:server id=<span class="code-quote">"customerService"</span> address=<span class="code-quote">"/service1"</span>&gt;</span>
-    <span class="code-tag">&lt;jaxrs:serviceBeans&gt;</span>
-      <span class="code-tag">&lt;bean class=<span class="code-quote">"org.apache.cxf.systest.jaxrs.CustomerService"</span>/&gt;</span>
-    <span class="code-tag">&lt;/jaxrs:serviceBeans&gt;</span>
-  <span class="code-tag">&lt;/jaxrs:server&gt;</span>
-
-  <span class="code-tag">&lt;jaxrs:server id=<span class="code-quote">"customerService"</span> address=<span class="code-quote">"/service2"</span>&gt;</span>
-    <span class="code-tag">&lt;jaxrs:serviceBeans&gt;</span>
-      <span class="code-tag">&lt;bean class=<span class="code-quote">"org.apache.cxf.systest.jaxrs.CustomerService2"</span>/&gt;</span>
-    <span class="code-tag">&lt;/jaxrs:serviceBeans&gt;</span>
-  <span class="code-tag">&lt;/jaxrs:server&gt;</span>
+  &lt;util:list id="busProviders"&gt;
+    &lt;ref bean="exceptionMapper"/&gt;
+    &lt;ref bean="customMessageBodyReader"/&gt;
+    &lt;ref bean="customMessageBodyWriter"/&gt;
+  &lt;/util:list&gt;
+
+  &lt;bean id="exceptionMapper" class="org.apache.cxf.systest.jaxrs.RuntimeExceptionMapper"/&gt;
+  &lt;bean id="customMessageBodyReader" class="org.apache.cxf.systest.jaxrs.CustomReader"/&gt;
+  &lt;bean id="customMessageBodyWriter" class="org.apache.cxf.systest.jaxrs.CustomWriter"/&gt; 
+
+  &lt;jaxrs:server id="customerService" address="/service1"&gt;
+    &lt;jaxrs:serviceBeans&gt;
+      &lt;bean class="org.apache.cxf.systest.jaxrs.CustomerService"/&gt;
+    &lt;/jaxrs:serviceBeans&gt;
+  &lt;/jaxrs:server&gt;
+
+  &lt;jaxrs:server id="customerService" address="/service2"&gt;
+    &lt;jaxrs:serviceBeans&gt;
+      &lt;bean class="org.apache.cxf.systest.jaxrs.CustomerService2"/&gt;
+    &lt;/jaxrs:serviceBeans&gt;
+  &lt;/jaxrs:server&gt;
   
-  <span class="code-tag">&lt;/beans&gt;</span>
-</pre>
+  &lt;/beans&gt;
+]]></script>
 </div></div>
 
 <h1><a shape="rect" name="JAXRSServicesConfiguration-DynamicservletsandasingleJAXRSendpoint"></a>Dynamic servlets and a single JAX-RS endpoint</h1>
@@ -1015,29 +1023,29 @@ Since CXF 2.2.3 one can put them directl
 <p>In some advanced cases you may want to dynamically add new servlets (CXFServlet or CXFNonSpringJaxrsServlet) with all of them serving the same JAX-RS endpoints. In this case you most likely want to configure servlets so that the CXF endpoint address is not overridden :</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
 {code:xml}
-<span class="code-tag">&lt;servlet&gt;</span>
- <span class="code-tag">&lt;servlet-name&gt;</span>CXFServlet<span class="code-tag">&lt;/servlet-name&gt;</span>
- <span class="code-tag">&lt;display-name&gt;</span>CXF Servlet<span class="code-tag">&lt;/display-name&gt;</span>
- <span class="code-tag">&lt;servlet-class&gt;</span>
+&lt;servlet&gt;
+ &lt;servlet-name&gt;CXFServlet&lt;/servlet-name&gt;
+ &lt;display-name&gt;CXF Servlet&lt;/display-name&gt;
+ &lt;servlet-class&gt;
      org.apache.cxf.transport.servlet.CXFServlet
- <span class="code-tag">&lt;/servlet-class&gt;</span>
- <span class="code-tag">&lt;init-param&gt;</span>
-    <span class="code-tag">&lt;param-name&gt;</span>config-location<span class="code-tag">&lt;/param-name&gt;</span>
-    <span class="code-tag">&lt;param-value&gt;</span>/WEB-INF/beans1.xml<span class="code-tag">&lt;/param-value&gt;</span>
- <span class="code-tag">&lt;/init-param&gt;</span>
- <span class="code-tag">&lt;init-param&gt;</span>
-    <span class="code-tag">&lt;param-name&gt;</span>disable-address-updates<span class="code-tag">&lt;/param-name&gt;</span>
-    <span class="code-tag">&lt;param-value&gt;</span>true<span class="code-tag">&lt;/param-value&gt;</span>
- <span class="code-tag">&lt;/init-param&gt;</span>
- <span class="code-tag">&lt;load-on-startup&gt;</span>1<span class="code-tag">&lt;/load-on-startup&gt;</span>
-<span class="code-tag">&lt;/servlet&gt;</span>
-</pre>
+ &lt;/servlet-class&gt;
+ &lt;init-param&gt;
+    &lt;param-name&gt;config-location&lt;/param-name&gt;
+    &lt;param-value&gt;/WEB-INF/beans1.xml&lt;/param-value&gt;
+ &lt;/init-param&gt;
+ &lt;init-param&gt;
+    &lt;param-name&gt;disable-address-updates&lt;/param-name&gt;
+    &lt;param-value&gt;true&lt;/param-value&gt;
+ &lt;/init-param&gt;
+ &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
+&lt;/servlet&gt;
+]]></script>
 </div></div>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java"></pre>
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[]]></script>
 </div></div>
 
 <h1><a shape="rect" name="JAXRSServicesConfiguration-ServletContainerConfiguration"></a>Servlet Container Configuration</h1>



Mime
View raw message