title: Camel Spring Boot Actuator Not Working In Container
body: <p>I'm using <a href="https://github.com/apache/camel/tree/master/examples/camel-example-spring-boot" rel="nofollow noreferrer">this</a> Camel example as a reference and changed the Initializer to extend <code>SpringBootServletInitializer</code> so that I can deploy to JBoss EAP 6.4.</p>
  
  <p><strong>When running this as a SpringBoot application:</strong></p>
  
  <ul>
  <li>The Spring Actuator endpoints like <code>/info</code> work. <code>/health</code> even returns the health of the Camel Context, however Camel Actuator endpoints like <code>/routes</code> return http 404.</li>
  </ul>
  
  <p><strong>When deploying to JBoss:</strong></p>
  
  <ul>
  <li>None of the actuator endpoints work. They all return http 404.</li>
  </ul>
  
  <p>The problem is not unique to the demo, all of our Containerized Camel Spring Boot Applications running in JBoss have this same problem, and to be clear, these applications are entirely functional otherwise.</p>
  
  <hr>
  
  <p><em>bootstrap.yml</em></p>
  
  <pre><code>camel:
     springboot:
       name: Demo
    health:
      check:
        routes:
          enabled: true
        indicator:
          enabled: true
  endpoints:
    actuator:
      enabled: true
    health:
      enabled: true
  management:
    security:
      enabled: false
  </code></pre>
  
  <hr>
  
  <p><em>pom.xml</em></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &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 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;com.example&lt;/groupId&gt;
      &lt;artifactId&gt;demo&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;war&lt;/packaging&gt;
  
      &lt;parent&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
          &lt;version&gt;1.5.8.RELEASE&lt;/version&gt;
          &lt;relativePath/&gt;
      &lt;/parent&gt;
  
      &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;project.reporting.outputEncoding&gt;UTF-8&lt;/project.reporting.outputEncoding&gt;
          &lt;java.version&gt;1.8&lt;/java.version&gt;
      &lt;/properties&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-actuator&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
              &lt;artifactId&gt;camel-spring-boot-starter&lt;/artifactId&gt;
              &lt;version&gt;2.20.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
              &lt;artifactId&gt;camel-stream-starter&lt;/artifactId&gt;
              &lt;version&gt;2.20.0&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>