title: Quarkus project once covered to mutli-module form got 404 when hit the existing endpoints
body: <p><strong>quarkus.version</strong>:1.0.1.Final</p>
  
  <p>Used to have working <code>quarkus</code> web project with rest-easy end-points.</p>
  
  <p>Converted it to multi-module one. </p>
  
  <p>Still use <code>maven</code>.</p>
  
  <p>This way:</p>
  
  <pre><code> my-project-service
     - my-project-api
       - data-api-object.java
       - pom.xml // dep on `quarkus-core` as `provided`
     - my-project-backend
       - pom.xml  + depends on my-project-api
     - pom.xml // managed dependencies defined
  </code></pre>
  
  <p>Similar to <a href="https://github.com/Charlesleonius/Quarkus-Multi-Module" rel="nofollow noreferrer">this example</a>, actually.</p>
  
  <p>All compiles and runs. </p>
  
  <pre><code>./mvnw compile quarkus:dev
  </code></pre>
  
  <p>I see log:</p>
  
  <pre><code>- [io.quarkus] (main) Quarkus 1.0.1.Final started in 1.595s. Listening on: http://0.0.0.0:8080
  - [io.quarkus] (main) Installed features: [agroal, cdi, infinispan-client, jaeger, narayana-jta, reactive-pg-client, rest-client, resteasy, resteasy-jackson, smallrye-context-propagation, smallrye-fault-tolerance, smallrye-health, smallrye-metrics, smallrye-openapi, smallrye-opentracing, swagger-ui, vertx]
  </code></pre>
  
  <p>But when I hit once worked end-point:</p>
  
  <p><a href="http://localhost:8080/my-project-service/stuff" rel="nofollow noreferrer">http://localhost:8080/my-project-service/stuff</a></p>
  
  <p>I got: <code>404</code></p>
  
  <p>If I check my health-check url:
  <a href="http://localhost:8080/my-project-service/health/ready" rel="nofollow noreferrer">http://localhost:8080/my-project-service/health/ready</a></p>
  
  <p>In my-project-backend / ... / resources/application.properties </p>
  
  <pre><code>quarkus.application.name=my-project-service
  quarkus.http.root-path=/my-project-service
  </code></pre>
  
  <p>so I actually have to call <a href="http://localhost:8080/my-project-service/" rel="nofollow noreferrer">http://localhost:8080/my-project-service/</a>. This has has not been changed.</p>
  
  <p>I guess, the call never reached the app.</p>
  
  <p><strong>Q:</strong> What could be the problem? </p>
  
  <p><strong>UPDATE:</strong> </p>
  
  <p>I got that null-pointer ex when run.</p>
  
  <p>FYI: may /src/main/etc folders is empty - no sources in parent pom project (  pom).</p>
  
  <pre><code>Listening for transport dt_socket at address: 5005
  Exception in thread "main" java.lang.RuntimeException: java.lang.NullPointerException
          at io.quarkus.dev.DevModeMain.main(DevModeMain.java:70)
  Caused by: java.lang.NullPointerException
          at sun.nio.fs.UnixPath.normalizeAndCheck(UnixPath.java:77)
  </code></pre>
  
  <p>I did clean /target folder etc... did not help.</p>
  
  <p>I can reach the <a href="http://localhost:8080/swagger-ui/" rel="nofollow noreferrer">http://localhost:8080/swagger-ui/</a> - it works but empty. once worked <a href="http://localhost:8080/my-project-service/swagger-ui/" rel="nofollow noreferrer">http://localhost:8080/my-project-service/swagger-ui/</a> get 404 as well.</p>
  
  <p>(maybe related to this <a href="https://github.com/quarkusio/quarkus/commit/bc1ffba31f9979b4b60f2bcb6a122a6298649744" rel="nofollow noreferrer">fix</a>)</p>
  
  <p>I tried to move resources/application.properties (not sure where it should be) to my root project. no effect.</p>
  
  <p>P.S.
   I converted all (also) to <code>Gralde</code>. Same issue.</p>
  
  <p><strong>UPDATE 2:</strong></p>
  
  <ul>
  <li>switched to latest (now 1.1.0.CR1) version</li>
  <li><p>now I see some new exceptions:
  -<code>Failed to start Quarkus: java.lang.IllegalArgumentException: Multiple matching properties for name "datasource.url"</code> even though I have one per env, only one for dev: %dev.quarkus.datasource.url</p>
  
  <p>I guess it is just a new bug. Rolling back where I was.</p></li>
  </ul>
  
  <p><strong>UPDATE3:</strong>
   If I compile native, application works/reacts on rest requests. Seems it is only about dev (and probably hot reload thing).</p>