title: Spring Boot with Jetty+Jersey always shows 404
body: <p>I have strange issue. I developed project with Spring boot 1.3.3 and modules mvc (excluded tomcat), jetty and jersey (JAX-RS annotations). My endpoints worked perfectly for running from IDEA and running assembled java - jar .JAR.</p>
  
  <p>But then I tried to make my JAR executable with help of executable option in spring-boot-maven-plugin. My project still make correct requests if I start it from IDEA, but compiled executable .JAR always sends 404 error.</p>
  
  <p>Ok, I maked some changes in JerseyConfig class. I replaced </p>
  
  <pre><code>packages(ru.finnetrolle.telebot.restful.JerseyConfig::class.java.`package`.name)
  </code></pre>
  
  <p>with </p>
  
  <pre><code>register(BroadcastResource::class.java)
  </code></pre>
  
  <p>and executable JAR works correct on my developer's PC. But when I try to assemble it on my linux server and add simlink to init.d - all endpoints again starts say 404 for all requests. I have 404 if I ask from local and from remote host. I also add </p>
  
  <pre><code>spring.jersey.application-path=/
  server.servlet-path=/monitoring
  </code></pre>
  
  <p>into my application.properties file (I using Spring actuator as well) but nothing changes - All is working without and isn't working with</p>
  
  <pre><code>&lt;plugin&gt;
    &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
    &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
    &lt;configuration&gt;
      &lt;executable&gt;true&lt;/executable&gt;
    &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>I also found an issue with description of my problem but no help <a href="https://github.com/spring-projects/spring-boot/issues/3413" rel="nofollow">https://github.com/spring-projects/spring-boot/issues/3413</a></p>
  
  <p>P.S. I'm using Kotlin, but this shouldn't affect this</p>