cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r990260 - in /websites/production/cxf/content: cache/docs.pageCache docs/application-server-specific-configuration-guide.html docs/jax-rs-deployment.html docs/jaxrs-services-configuration.html docs/springboot.html
Date Thu, 09 Jun 2016 15:47:33 GMT
Author: buildbot
Date: Thu Jun  9 15:47:33 2016
New Revision: 990260

Log:
Production update by buildbot for cxf

Modified:
    websites/production/cxf/content/cache/docs.pageCache
    websites/production/cxf/content/docs/application-server-specific-configuration-guide.html
    websites/production/cxf/content/docs/jax-rs-deployment.html
    websites/production/cxf/content/docs/jaxrs-services-configuration.html
    websites/production/cxf/content/docs/springboot.html

Modified: websites/production/cxf/content/cache/docs.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/cxf/content/docs/application-server-specific-configuration-guide.html
==============================================================================
--- websites/production/cxf/content/docs/application-server-specific-configuration-guide.html
(original)
+++ websites/production/cxf/content/docs/application-server-specific-configuration-guide.html
Thu Jun  9 15:47:33 2016
@@ -118,11 +118,11 @@ Apache CXF -- Application Server Specifi
            <!-- Content -->
            <div class="wiki-content">
 <div id="ConfluenceContent"><p>This document provides app server-specific configuration
information for running Apache CXF.</p><p><style type="text/css">/*<![CDATA[*/
-div.rbtoc1465483619018 {padding: 0px;}
-div.rbtoc1465483619018 ul {list-style: disc;margin-left: 0px;padding-left: 20px;}
-div.rbtoc1465483619018 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1465487217732 {padding: 0px;}
+div.rbtoc1465487217732 ul {list-style: disc;margin-left: 0px;padding-left: 20px;}
+div.rbtoc1465487217732 li {margin-left: 0px;padding-left: 0px;}
 
-/*]]>*/</style></p><div class="toc-macro rbtoc1465483619018">
+/*]]>*/</style></p><div class="toc-macro rbtoc1465487217732">
 <ul class="toc-indentation"><li><a shape="rect" href="#ApplicationServerSpecificConfigurationGuide-JBossApplicationServer">JBoss
Application Server</a></li><li><a shape="rect" href="#ApplicationServerSpecificConfigurationGuide-SpringBoot">SpringBoot</a></li><li><a
shape="rect" href="#ApplicationServerSpecificConfigurationGuide-WebLogic">WebLogic</a>
 <ul class="toc-indentation"><li><a shape="rect" href="#ApplicationServerSpecificConfigurationGuide-Putjarsinendorsedfolder">Put
jars in endorsed folder</a></li><li><a shape="rect" href="#ApplicationServerSpecificConfigurationGuide-Packwarinanear,deploytheearwithweblogic-application.xml">Pack
war in an ear, deploy the ear with weblogic-application.xml</a></li></ul>
 </li><li><a shape="rect" href="#ApplicationServerSpecificConfigurationGuide-Websphere">Websphere</a>
@@ -147,7 +147,7 @@ div.rbtoc1465483619018 li {margin-left:
     &lt;/deployment&gt;
 &lt;/jboss-deployment-structure&gt;
 </pre>
-</div></div><p>this approach offers the fastest route to deploying CXF
apps on JBoss AS; the drawback is that no special ws integration with JBoss AS internals is
available</p></li></ul><ul><li>rely on JBossWS integration and
the Apache CXF libraries included in the application server (<a shape="rect" class="external-link"
href="https://docs.jboss.org/author/display/AS71/Webservices+reference+guide" rel="nofollow">documentation</a>):
this implies removing any Apache CXF libs from the ws deployment as well as any other dependencies
which is already included in JBoss AS (including any Java EE API jar); if included, the optional
web.xml descriptor is to be rewritten according to JBossWS convention (see <a shape="rect"
class="external-link" href="https://docs.jboss.org/author/display/AS71/JAX-WS+User+Guide"
rel="nofollow">documentation</a>); the Spring support is optional in JBoss AS and
Spring based endpoint declaration is not the default/preferred configuration approach for
ws endpoin
 ts, hence users willing to declare endpoints using Spring needs to create a org.springframework.spring
module and put their endpoint declarations in a jbossws-cxf.xml descriptor; if the user application
makes use of any lib besides tha JavaEE api, proper module <a shape="rect" class="external-link"
href="https://docs.jboss.org/author/display/AS71/Class+Loading+in+AS7" rel="nofollow">dependencies</a>
are to be declared either using the jboss-deployment-structure.xml descriptor or the archive
MANIFEST.MF (few directions on ws modules available <a shape="rect" class="external-link"
href="https://docs.jboss.org/author/display/AS71/JBoss+Modules+and+WS+applications" rel="nofollow">here</a>)</li></ul><p>The
second approach allows leveraging the full JavaEE 6 stack (including e.g. JSR-109) as well
as specific ws integration with JBoss AS internals.</p><h2 id="ApplicationServerSpecificConfigurationGuide-SpringBoot">SpringBoot</h2><p>Please
see CXF <a shape="rect" href="springboot.html">Spri
 ngBoot</a> documenation.</p><h2 id="ApplicationServerSpecificConfigurationGuide-WebLogic">WebLogic</h2><p>There
are two ways to deploy a CXF WAR archive in WebLogic. (<strong>Note: This has been validated
on WebLogic9.2.</strong>)</p><h4 id="ApplicationServerSpecificConfigurationGuide-Putjarsinendorsedfolder">Put
jars in endorsed folder</h4><ul><li>Put the geronimo-ws-metadata_2.0_spec-1.1.1.jar
in the $Weblogic_Home/jdk_../jre/lib/endorsed folder.</li><li>Deploy the CXF war
in weblogic.<br clear="none"> (This way is not recommended, since it might break the
application server itself. The method below is preferred, as it impacts a single module only.)</li></ul><h4
id="ApplicationServerSpecificConfigurationGuide-Packwarinanear,deploytheearwithweblogic-application.xml">Pack
war in an ear, deploy the ear with weblogic-application.xml</h4><ul><li><p>Create
a standard J2EE application.xml file in the META-INF folder. (Take $CXF_HOME/samples/java_first_spring_support
for example)</p><div 
 class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
+</div></div><p>this approach offers the fastest route to deploying CXF
apps on JBoss AS; the drawback is that no special ws integration with JBoss AS internals is
available</p></li></ul><ul><li>rely on JBossWS integration and
the Apache CXF libraries included in the application server (<a shape="rect" class="external-link"
href="https://docs.jboss.org/author/display/AS71/Webservices+reference+guide" rel="nofollow">documentation</a>):
this implies removing any Apache CXF libs from the ws deployment as well as any other dependencies
which is already included in JBoss AS (including any Java EE API jar); if included, the optional
web.xml descriptor is to be rewritten according to JBossWS convention (see <a shape="rect"
class="external-link" href="https://docs.jboss.org/author/display/AS71/JAX-WS+User+Guide"
rel="nofollow">documentation</a>); the Spring support is optional in JBoss AS and
Spring based endpoint declaration is not the default/preferred configuration approach for
ws endpoin
 ts, hence users willing to declare endpoints using Spring needs to create a org.springframework.spring
module and put their endpoint declarations in a jbossws-cxf.xml descriptor; if the user application
makes use of any lib besides tha JavaEE api, proper module <a shape="rect" class="external-link"
href="https://docs.jboss.org/author/display/AS71/Class+Loading+in+AS7" rel="nofollow">dependencies</a>
are to be declared either using the jboss-deployment-structure.xml descriptor or the archive
MANIFEST.MF (few directions on ws modules available <a shape="rect" class="external-link"
href="https://docs.jboss.org/author/display/AS71/JBoss+Modules+and+WS+applications" rel="nofollow">here</a>)</li></ul><p>The
second approach allows leveraging the full JavaEE 6 stack (including e.g. JSR-109) as well
as specific ws integration with JBoss AS internals.</p><h2 id="ApplicationServerSpecificConfigurationGuide-SpringBoot">SpringBoot</h2><p>Please
see CXF <a shape="rect" href="springboot.html">Spri
 ngBoot</a> documenation.</p><p>JAX-WS: see&#160;<a shape="rect"
class="external-link" href="https://github.com/apache/cxf/tree/master/distribution/src/main/release/samples/jaxws_spring_boot"
rel="nofollow">JAX-WS Spring Boot</a>&#160;demo.</p><p>JAX-RS: &#160;see&#160;<a
shape="rect" class="external-link" href="https://github.com/apache/cxf/tree/master/distribution/src/main/release/samples/jax_rs/jaxrs_spring_boot"
rel="nofollow">JAX-RS Spring Boot</a>&#160;and&#160;<a shape="rect" class="external-link"
href="https://github.com/apache/cxf/tree/master/distribution/src/main/release/samples/jax_rs/jaxrs_spring_boot_scan"
rel="nofollow">JAX-RS Spring Boot Scan</a>&#160;demos.</p><h2 id="ApplicationServerSpecificConfigurationGuide-WebLogic">WebLogic</h2><p>There
are two ways to deploy a CXF WAR archive in WebLogic. (<strong>Note: This has been validated
on WebLogic9.2.</strong>)</p><h4 id="ApplicationServerSpecificConfigurationGuide-Putjarsinendorsedfolder">Put
jars in endorsed folder</h
 4><ul><li>Put the geronimo-ws-metadata_2.0_spec-1.1.1.jar in the $Weblogic_Home/jdk_../jre/lib/endorsed
folder.</li><li>Deploy the CXF war in weblogic.<br clear="none"> (This way
is not recommended, since it might break the application server itself. The method below is
preferred, as it impacts a single module only.)</li></ul><h4 id="ApplicationServerSpecificConfigurationGuide-Packwarinanear,deploytheearwithweblogic-application.xml">Pack
war in an ear, deploy the ear with weblogic-application.xml</h4><ul><li><p>Create
a standard J2EE application.xml file in the META-INF folder. (Take $CXF_HOME/samples/java_first_spring_support
for example)</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
 <pre class="brush: xml; gutter: false; theme: Default" style="font-size:12px;">&lt;?xml
version="1.0" encoding="UTF-8"?&gt;
 &lt;!DOCTYPE application PUBLIC
 		"-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"

Modified: websites/production/cxf/content/docs/jax-rs-deployment.html
==============================================================================
--- websites/production/cxf/content/docs/jax-rs-deployment.html (original)
+++ websites/production/cxf/content/docs/jax-rs-deployment.html Thu Jun  9 15:47:33 2016
@@ -117,11 +117,11 @@ Apache CXF -- JAX-RS Deployment
            <!-- Content -->
            <div class="wiki-content">
 <div id="ConfluenceContent"><p>&#160;</p><p>&#160;</p><p>&#160;</p><p>&#160;</p><p>&#160;<span
class="inline-first-p" style="font-size:2em;font-weight:bold">JAX-RS : Deployment</span>&#160;</p><p>&#160;</p><p>&#160;</p><p>&#160;</p><p>&#160;</p><p><style
type="text/css">/*<![CDATA[*/
-div.rbtoc1465483620428 {padding: 0px;}
-div.rbtoc1465483620428 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1465483620428 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1465487219060 {padding: 0px;}
+div.rbtoc1465487219060 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1465487219060 li {margin-left: 0px;padding-left: 0px;}
 
-/*]]>*/</style></p><div class="toc-macro rbtoc1465483620428">
+/*]]>*/</style></p><div class="toc-macro rbtoc1465487219060">
 <ul class="toc-indentation"><li><a shape="rect" href="#JAX-RSDeployment-SpringBoot">Spring
Boot</a></li><li><a shape="rect" href="#JAX-RSDeployment-ServletContainers">Servlet
Containers</a>
 <ul class="toc-indentation"><li><a shape="rect" href="#JAX-RSDeployment-Tomcat">Tomcat</a></li></ul>
 </li><li><a shape="rect" href="#JAX-RSDeployment-ApplicationServers">Application
Servers</a>
@@ -131,7 +131,7 @@ div.rbtoc1465483620428 li {margin-left:
 <ul class="toc-indentation"><li><a shape="rect" href="#JAX-RSDeployment-CXFRuntimeDelegate.1">CXF
RuntimeDelegate</a></li></ul>
 </li></ul>
 </li></ul>
-</div><p>This page provides the tips on how to deploy CXF JAX-RS applications
packaged as WAR archives or OSGI bundles into Java EE application servers and OSGI containers.</p><h1
id="JAX-RSDeployment-SpringBoot">Spring Boot</h1><p>Please see CXF&#160;<a
shape="rect" href="springboot.html">SpringBoot</a>&#160;documenation.&#160;</p><h1
id="JAX-RSDeployment-ServletContainers">Servlet Containers</h1><h2 id="JAX-RSDeployment-Tomcat">Tomcat</h2><p>1.
System "org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH"<br clear="none"> and
"org.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLASH" properties may have to be set
to "true" to support URIs containing encoded forward or backward slashes.<br clear="none">
2. When using mod_jk - ensure that the JkOptions setting has +ForwardURICompatUnparsed set.
<br clear="none"> 3. Windows: upgrade isapi_redirect.dll if you see URI containing encoded
spaces being decoded by Tomcat.</p><h1 id="JAX-RSDeployment-ApplicationServers">Application
Se
 rvers</h1><h2 id="JAX-RSDeployment-Glassfish">Glassfish</h2><p><strong>Verified
with Glassfish Server Open Source Edition 3.1.1</strong></p><p>1. Make sure
a cxf-rt-transport-http-jetty dependency is excluded during the war build</p><p>2.
If a custom JAX-RS <a shape="rect" class="external-link" href="http://jsr311.java.net/nonav/releases/1.1/index.html"
rel="nofollow">Application</a> is included then<br clear="none"> use a <a
shape="rect" href="http://cxf.apache.org/docs/jaxrs-services-configuration.html#JAXRSServicesConfiguration-ConfiguringJAXRSservicesincontainerwithoutSpring">CXFNonSpringJaxrsServlet</a>
to reference the Application implementation class and either <br clear="none"> 2.1 Disable
the Jersey scanning the custom web applications. Setting the following system property may
help:<br clear="none"> "-Dcom.sun.enterprise.overrideablejavaxpackages=javax.ws.rs,javax.ws.rs.core,javax.ws.rs.ext"</p><p>2.2
Remove jersey-gf-server.jar from $GLASSFISH_HOME/glassfish/modules</p><h
 2 id="JAX-RSDeployment-JBoss">JBoss</h2><p><strong>Verified with JBoss
AS 7.1.0.CR1b</strong></p><p>1. If a custom JAX-RS <a shape="rect" class="external-link"
href="http://jsr311.java.net/nonav/releases/1.1/index.html" rel="nofollow">Application</a>
is included then<br clear="none"> use a <a shape="rect" href="http://cxf.apache.org/docs/jaxrs-services-configuration.html#JAXRSServicesConfiguration-ConfiguringJAXRSservicesincontainerwithoutSpring">CXFNonSpringJaxrsServlet</a>
to reference the Application implementation class and either</p><p>1.1 Disable
the RestEasy scanning the custom web applications (TODO: specify how this actually can be
done)<br clear="none"> 1.2 Modify $JBOSS_HOME/standalone/configuration/standalone.xml
by commenting out a "org.jboss.as.jaxrs" extension and a "urn:jboss:domain:jaxrs:1.0" sybsystem.</p><p>2.
JBoss does not support URI path slashes by default: <a shape="rect" class="external-link"
href="http://securitytracker.com/id/1018110" rel="nofollow">http:/
 /securitytracker.com/id/1018110</a></p><h2 id="JAX-RSDeployment-WebLogic">WebLogic</h2><p><strong>Verified
with WebLogic Server 12c (12.1.1)</strong></p><h3 id="JAX-RSDeployment-SpecifyingaWebLogicspecificJSPservlet">Specifying
a WebLogic specific JSP servlet</h3><p>If you configure CXFServlet to redirect
to custom JSP pages then you need to add the following declaration to web.xml:</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
+</div><p>This page provides the tips on how to deploy CXF JAX-RS applications
packaged as WAR archives or OSGI bundles into Java EE application servers and OSGI containers.</p><h1
id="JAX-RSDeployment-SpringBoot">Spring Boot</h1><p>Please see CXF&#160;<a
shape="rect" href="springboot.html">SpringBoot</a>&#160;documenation.&#160;</p><p>Please
see&#160;<a shape="rect" class="external-link" href="https://github.com/apache/cxf/tree/master/distribution/src/main/release/samples/jax_rs/jaxrs_spring_boot"
rel="nofollow">JAX-RS Spring Boot</a>&#160;and&#160;<a shape="rect" class="external-link"
href="https://github.com/apache/cxf/tree/master/distribution/src/main/release/samples/jax_rs/jaxrs_spring_boot_scan"
rel="nofollow">JAX-RS Spring Boot Scan</a>&#160;demos.</p><h1 id="JAX-RSDeployment-ServletContainers">Servlet
Containers</h1><h2 id="JAX-RSDeployment-Tomcat">Tomcat</h2><p>1. System
"org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH"<br clear="none"> and "org.apache.catalina.conne
 ctor.CoyoteAdapter.ALLOW_BACKSLASH" properties may have to be set to "true" to support URIs
containing encoded forward or backward slashes.<br clear="none"> 2. When using mod_jk
- ensure that the JkOptions setting has +ForwardURICompatUnparsed set. <br clear="none">
3. Windows: upgrade isapi_redirect.dll if you see URI containing encoded spaces being decoded
by Tomcat.</p><h1 id="JAX-RSDeployment-ApplicationServers">Application Servers</h1><h2
id="JAX-RSDeployment-Glassfish">Glassfish</h2><p><strong>Verified with
Glassfish Server Open Source Edition 3.1.1</strong></p><p>1. Make sure a
cxf-rt-transport-http-jetty dependency is excluded during the war build</p><p>2.
If a custom JAX-RS <a shape="rect" class="external-link" href="http://jsr311.java.net/nonav/releases/1.1/index.html"
rel="nofollow">Application</a> is included then<br clear="none"> use a <a
shape="rect" href="http://cxf.apache.org/docs/jaxrs-services-configuration.html#JAXRSServicesConfiguration-ConfiguringJAXRSservicesin
 containerwithoutSpring">CXFNonSpringJaxrsServlet</a> to reference the Application
implementation class and either <br clear="none"> 2.1 Disable the Jersey scanning the
custom web applications. Setting the following system property may help:<br clear="none">
"-Dcom.sun.enterprise.overrideablejavaxpackages=javax.ws.rs,javax.ws.rs.core,javax.ws.rs.ext"</p><p>2.2
Remove jersey-gf-server.jar from $GLASSFISH_HOME/glassfish/modules</p><h2 id="JAX-RSDeployment-JBoss">JBoss</h2><p><strong>Verified
with JBoss AS 7.1.0.CR1b</strong></p><p>1. If a custom JAX-RS <a shape="rect"
class="external-link" href="http://jsr311.java.net/nonav/releases/1.1/index.html" rel="nofollow">Application</a>
is included then<br clear="none"> use a <a shape="rect" href="http://cxf.apache.org/docs/jaxrs-services-configuration.html#JAXRSServicesConfiguration-ConfiguringJAXRSservicesincontainerwithoutSpring">CXFNonSpringJaxrsServlet</a>
to reference the Application implementation class and either</p><p>1.1 Disable
the 
 RestEasy scanning the custom web applications (TODO: specify how this actually can be done)<br
clear="none"> 1.2 Modify $JBOSS_HOME/standalone/configuration/standalone.xml by commenting
out a "org.jboss.as.jaxrs" extension and a "urn:jboss:domain:jaxrs:1.0" sybsystem.</p><p>2.
JBoss does not support URI path slashes by default: <a shape="rect" class="external-link"
href="http://securitytracker.com/id/1018110" rel="nofollow">http://securitytracker.com/id/1018110</a></p><h2
id="JAX-RSDeployment-WebLogic">WebLogic</h2><p><strong>Verified with
WebLogic Server 12c (12.1.1)</strong></p><h3 id="JAX-RSDeployment-SpecifyingaWebLogicspecificJSPservlet">Specifying
a WebLogic specific JSP servlet</h3><p>If you configure CXFServlet to redirect
to custom JSP pages then you need to add the following declaration to web.xml:</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
 <pre class="brush: xml; gutter: false; theme: Default" style="font-size:12px;">&lt;servlet&gt;
  &lt;servlet-name&gt;jsp&lt;/servlet-name&gt;
  &lt;servlet-class&gt;weblogic.servlet.JSPServlet&lt;/servlet-class&gt;

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 Thu Jun  9 15:47:33
2016
@@ -118,11 +118,11 @@ Apache CXF -- JAXRS Services Configurati
            <!-- Content -->
            <div class="wiki-content">
 <div id="ConfluenceContent"><p>&#160;</p><p>&#160;</p><p>&#160;</p><p>&#160;<span
class="inline-first-p" style="font-size:2em;font-weight:bold">JAX-RS : Services Configuration</span>&#160;</p><p>&#160;</p><p>&#160;</p><p>&#160;</p><p><style
type="text/css">/*<![CDATA[*/
-div.rbtoc1465483620070 {padding: 0px;}
-div.rbtoc1465483620070 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1465483620070 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1465487218687 {padding: 0px;}
+div.rbtoc1465487218687 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1465487218687 li {margin-left: 0px;padding-left: 0px;}
 
-/*]]>*/</style></p><div class="toc-macro rbtoc1465483620070">
+/*]]>*/</style></p><div class="toc-macro rbtoc1465487218687">
 <ul class="toc-indentation"><li><a shape="rect" href="#JAXRSServicesConfiguration-ConfiguringJAX-RSservicesprogrammatically">Configuring
JAX-RS services programmatically</a></li><li><a shape="rect" href="#JAXRSServicesConfiguration-OSGI">OSGI</a>
 <ul class="toc-indentation"><li><a shape="rect" href="#JAXRSServicesConfiguration-Blueprint">Blueprint</a></li><li><a
shape="rect" href="#JAXRSServicesConfiguration-Spring">Spring</a></li></ul>
 </li><li><a shape="rect" href="#JAXRSServicesConfiguration-SpringBoot">Spring
Boot</a></li><li><a shape="rect" href="#JAXRSServicesConfiguration-ConfiguringJAX-RSendpointsprogrammaticallywithoutSpring">Configuring
JAX-RS endpoints programmatically without Spring</a></li><li><a shape="rect"
href="#JAXRSServicesConfiguration-BlueprintWeb">Blueprint Web</a>
@@ -203,7 +203,7 @@ sf.create();
 &lt;/beans&gt;
 
 </pre>
-</div></div><h1 id="JAXRSServicesConfiguration-SpringBoot">Spring Boot</h1><p>Please
see CXF&#160;<a shape="rect" href="springboot.html">SpringBoot</a>&#160;documenation.&#160;</p><p>&#160;</p><h1
id="JAXRSServicesConfiguration-ConfiguringJAX-RSendpointsprogrammaticallywithoutSpring">Configuring
JAX-RS endpoints programmatically without Spring</h1><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 pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
+</div></div><h1 id="JAXRSServicesConfiguration-SpringBoot">Spring Boot</h1><p>Please
see CXF&#160;<a shape="rect" href="springboot.html">SpringBoot</a>&#160;documenation.&#160;</p><p>Please
see <a shape="rect" class="external-link" href="https://github.com/apache/cxf/tree/master/distribution/src/main/release/samples/jax_rs/jaxrs_spring_boot"
rel="nofollow">JAX-RS Spring Boot</a> and <a shape="rect" class="external-link"
href="https://github.com/apache/cxf/tree/master/distribution/src/main/release/samples/jax_rs/jaxrs_spring_boot_scan"
rel="nofollow">JAX-RS Spring Boot Scan</a> demos.</p><h1 id="JAXRSServicesConfiguration-ConfiguringJAX-RSendpointsprogrammaticallywithoutSpring">Configuring
JAX-RS endpoints programmatically without Spring</h1><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 t
 hen please follow the following example :</p><div class="code panel pdl" style="border-width:
1px;"><div class="codeContent panelContent pdl">
 <pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">JAXRSServerFactoryBean
sf = new JAXRSServerFactoryBean();
 sf.setResourceClasses(CustomerService.class);
 sf.setResourceProvider(CustomerService.class, new SingletonResourceProvider(new CustomerService()));

Modified: websites/production/cxf/content/docs/springboot.html
==============================================================================
--- websites/production/cxf/content/docs/springboot.html (original)
+++ websites/production/cxf/content/docs/springboot.html Thu Jun  9 15:47:33 2016
@@ -28,6 +28,15 @@
 <meta name="description" content="Apache CXF, Services Framework - SpringBoot">
 
 
+<link type="text/css" rel="stylesheet" href="/resources/highlighter/styles/shCoreCXF.css">
+<link type="text/css" rel="stylesheet" href="/resources/highlighter/styles/shThemeCXF.css">
+
+<script src='/resources/highlighter/scripts/shCore.js'></script>
+<script src='/resources/highlighter/scripts/shBrushXml.js'></script>
+<script>
+  SyntaxHighlighter.defaults['toolbar'] = false;
+  SyntaxHighlighter.all();
+</script>
 
 
     <title>
@@ -108,17 +117,29 @@ Apache CXF -- SpringBoot
            <!-- Content -->
            <div class="wiki-content">
 <div id="ConfluenceContent"><p><style type="text/css">/*<![CDATA[*/
-div.rbtoc1465483620692 {padding: 0px;}
-div.rbtoc1465483620692 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1465483620692 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1465487219371 {padding: 0px;}
+div.rbtoc1465487219371 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1465487219371 li {margin-left: 0px;padding-left: 0px;}
 
-/*]]>*/</style></p><div class="toc-macro rbtoc1465483620692">
+/*]]>*/</style></p><div class="toc-macro rbtoc1465487219371">
 <ul class="toc-indentation"><li><a shape="rect" href="#SpringBoot-SpringBootCXFJAX-WSStarter">Spring
Boot CXF JAX-WS Starter</a>
 <ul class="toc-indentation"><li><a shape="rect" href="#SpringBoot-Features">Features</a></li><li><a
shape="rect" href="#SpringBoot-Setup">Setup</a></li><li><a shape="rect"
href="#SpringBoot-AdditionalConfiguration">Additional Configuration</a></li></ul>
 </li><li><a shape="rect" href="#SpringBoot-SpringBootCXFJAX-RSStarter">Spring
Boot CXF&#160;JAX-RS Starter</a>
 <ul class="toc-indentation"><li><a shape="rect" href="#SpringBoot-Features.1">Features</a></li><li><a
shape="rect" href="#SpringBoot-Setup.1">Setup</a></li><li><a shape="rect"
href="#SpringBoot-AdditionalConfiguration.1">Additional Configuration</a></li></ul>
 </li></ul>
-</div><h1 id="SpringBoot-SpringBootCXFJAX-WSStarter">Spring Boot CXF JAX-WS Starter</h1><h2
id="SpringBoot-Features">Features</h2><h2 id="SpringBoot-Setup">Setup</h2><h2
id="SpringBoot-AdditionalConfiguration">Additional Configuration</h2><h1 id="SpringBoot-SpringBootCXFJAX-RSStarter">Spring
Boot CXF&#160;JAX-RS Starter</h1><h2 id="SpringBoot-Features.1">Features</h2><h2
id="SpringBoot-Setup.1">Setup</h2><h2 id="SpringBoot-AdditionalConfiguration.1">Additional
Configuration</h2></div>
+</div><h1 id="SpringBoot-SpringBootCXFJAX-WSStarter">Spring Boot CXF JAX-WS Starter</h1><h2
id="SpringBoot-Features">Features</h2><p>Registers CXFServlet with a &#160;"/services/*"
URL pattern for serving CXF JAX-WS endpoints.</p><h2 id="SpringBoot-Setup">Setup</h2><div
class="code panel pdl" style="border-width: 1px;"><div class="codeHeader panelHeader
pdl" style="border-bottom-width: 1px;"><b>JAX-WS Starter</b></div><div
class="codeContent panelContent pdl">
+<pre class="brush: xml; gutter: false; theme: Default" style="font-size:12px;">&lt;dependency&gt;
+    &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
+    &lt;artifactId&gt;cxf-spring-boot-starter-jaxws&lt;/artifactId&gt;
+    &lt;version&gt;3.1.7&lt;/version&gt;
+&lt;/dependency&gt;</pre>
+</div></div><p>&#160;</p><h2 id="SpringBoot-AdditionalConfiguration">Additional
Configuration</h2><p>Use "cxf.path" property to customize a CXFServlet URL pattern.</p><h1
id="SpringBoot-SpringBootCXFJAX-RSStarter">Spring Boot CXF&#160;JAX-RS Starter</h1><h2
id="SpringBoot-Features.1">Features</h2><p>Registers CXF Servlet with a &#160;"/services/*"
URL pattern for serving CXF JAX-RS endpoints.</p><p>Optionally auto-discovers
JAX-RS root resources and providers abd creates a JAX-RS endpoint.</p><h2 id="SpringBoot-Setup.1">Setup</h2><div
class="code panel pdl" style="border-width: 1px;"><div class="codeHeader panelHeader
pdl" style="border-bottom-width: 1px;"><b>JAX-RS Starter</b></div><div
class="codeContent panelContent pdl">
+<pre class="brush: xml; gutter: false; theme: Default" style="font-size:12px;">&lt;dependency&gt;
+    &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
+    &lt;artifactId&gt;cxf-spring-boot-starter-jaxrs&lt;/artifactId&gt;
+    &lt;version&gt;3.1.7&lt;/version&gt;
+&lt;/dependency&gt;</pre>
+</div></div><h2 id="SpringBoot-AdditionalConfiguration.1">Additional Configuration</h2><p>Use
"cxf.path" property to customize a CXFServlet URL pattern.</p><p>Use "cxf.jaxrs.component-scan"
property to create a JAX-RS endpoint from the auto-discovered&#160;JAX-RS root resources
and providers.</p></div>
            </div>
            <!-- Content -->
          </td>



Mime
View raw message