title: JBoss Fuse CXF-RS REST Issue - 'No services have been found'
body: <p>I'm creating a REST Service with Apache Camel and CXF-RS, using the following tutorial: <a href="https://www.javainuse.com/camel/apache_camel_rest_cxfrs" rel="nofollow noreferrer">https://www.javainuse.com/camel/apache_camel_rest_cxfrs</a></p>
  
  <p>I've set up the code as shown in the tutorial and followed the steps correctly. After building the Maven project, I have successfully been able to install the bundle on Apache Karaf, using the SNAPSHOT file created. (A new Bundle ID was created).</p>
  
  <p>When I run the command to 'start' the newly created bundle, it seemingly works with no errors being shown. However, when I access <a href="http://localhost:8181/cxf" rel="nofollow noreferrer">http://localhost:8181/cxf</a> as mentioned towards the end of the tutorial, it says 'No services have been found':</p>
  
  <p><a href="https://i.stack.imgur.com/EGAo3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EGAo3.png" alt="enter image description here"></a></p>
  
  <p>Can you please advise me on what could be causing this problem?</p>
  
  <p>Thank you.</p>
  
  <p><strong>My Project Structure:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/EaK4R.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EaK4R.png" alt="enter image description here"></a></p>
  
  <p><strong>My Code:</strong></p>
  
  <blockquote>
    <p><strong><em>pom.xml:</em></strong></p>
  </blockquote>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;com.fuseproject&lt;/groupId&gt;
    &lt;artifactId&gt;camel-cxfrs-core&lt;/artifactId&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  
            &lt;packaging&gt;bundle&lt;/packaging&gt;
  
            &lt;repositories&gt;
                &lt;repository&gt;
                  &lt;id&gt;Central2&lt;/id&gt;
                  &lt;name&gt;Central2&lt;/name&gt;
                  &lt;url&gt;https://repo.maven.org/maven2&lt;/url&gt;
                &lt;/repository&gt;
            &lt;/repositories&gt;
  
            &lt;dependencies&gt;
                     &lt;dependency&gt;
                               &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
                               &lt;artifactId&gt;camel-core&lt;/artifactId&gt;
                               &lt;version&gt;2.12.0&lt;/version&gt;
                     &lt;/dependency&gt;
                     &lt;dependency&gt;
                               &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
                               &lt;artifactId&gt;camel-cxf&lt;/artifactId&gt;
                               &lt;version&gt;2.12.0&lt;/version&gt;
                     &lt;/dependency&gt;
            &lt;/dependencies&gt;
            &lt;build&gt;
                     &lt;plugins&gt;
                               &lt;plugin&gt;
                                        &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                                        &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                                        &lt;version&gt;3.1&lt;/version&gt;
                               &lt;/plugin&gt;
  
                               &lt;plugin&gt;
                                        &lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
                                        &lt;artifactId&gt;maven-bundle-plugin&lt;/artifactId&gt;
                                        &lt;extensions&gt;true&lt;/extensions&gt;
                                        &lt;version&gt;2.4.0&lt;/version&gt;
                               &lt;/plugin&gt;
                     &lt;/plugins&gt;
            &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <blockquote>
    <p><strong><em>CamelProcessor.java:</em></strong></p>
  </blockquote>
  
  <pre><code>package com.fuseproject.beans;
  
  import org.apache.camel.Exchange;
  import org.apache.camel.Processor;
  
  public class CamelProcessor implements Processor {
  
            public void process(Exchange exchange) throws Exception {
  
                     // Get input from exchange
                     String msg = exchange.getIn().getBody(String.class);
                     // set output in exchange
                     exchange.getOut().setBody("Hello World " + msg);
            }
  
  }
  </code></pre>
  
  <blockquote>
    <p><strong><em>EmployeeServiceResource.java:</em></strong></p>
  </blockquote>
  
  <pre><code>package com.fuseproject.beans;
  
  import javax.ws.rs.GET;
  import javax.ws.rs.Path;
  import javax.ws.rs.PathParam;
  
  @Path("/")
  public class EmployeeServiceResource {
  
            public EmployeeServiceResource() {
            }
  
            @GET
            @Path("/employees/{name}/")
            public String getCustomer(@PathParam("name") String name) {
                     return null;
            }
  
  }
  </code></pre>
  
  <blockquote>
    <p><strong><em>applicationContext.xml:</em></strong></p>
  </blockquote>
  
  <pre><code>&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:cxf="http://camel.apache.org/schema/cxf"
         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://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd
         http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd
         http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"&gt;
  
         &lt;cxf:rsServer id="restService" address="http://localhost:9000/employeeservice"
                serviceClass="com.fuseproject.beans.EmployeeServiceResource"&gt;
         &lt;/cxf:rsServer&gt;
  
         &lt;bean id="processor" class="com.fuseproject.beans.CamelProcessor" /&gt;
  
         &lt;camelContext id="camelId" xmlns="http://camel.apache.org/schema/spring"&gt;
                &lt;route&gt;
                       &lt;from uri="cxfrs://bean://restService" /&gt;
                       &lt;process ref="processor" /&gt;
                &lt;/route&gt;
         &lt;/camelContext&gt;
  
  &lt;/beans&gt;
  </code></pre>