quarkifynet / quarkus-vuejs

Simple example how to run, watch and delpoy Vuejs app on Quarkus
5 stars 3 forks source link

404 - Resource Not Found #1

Open stefanwendelmann opened 4 years ago

stefanwendelmann commented 4 years ago

Hi @dmi3coder,

i just read your article about https://quarkify.net/build-run-and-deploy-vuejs-app-with-quarkus/

And i wanted to give it a try by cloning your repo and ./mvnw exec:exec@npm-watch quarkus:dev

But i got a 404 Error.

What am i doing wrong, where is the bug?

image

> ./mvnw exec:exec@npm-watch quarkus:dev
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for tech.donau.quarkify:quarkus-vuejs:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:exec-maven-plugin is missing. @ line 114, column 15
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] 
[INFO] -----------------< tech.donau.quarkify:quarkus-vuejs >------------------
[INFO] Building quarkus-vuejs 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- exec-maven-plugin:3.0.0:exec (npm-watch) @ quarkus-vuejs ---
[INFO] 
[INFO] --- quarkus-maven-plugin:1.4.1.Final:dev (default-cli) @ quarkus-vuejs ---
[INFO] Nothing to compile - all classes are up to date

> webapp@0.1.0 watch C:\Daten\nbprojects\test\quarkify\quarkus-vuejs\src\main\webapp
> vue-cli-service build --mode=development --watch --dest ../resources/META-INF/resources/

-  Building for development...
Listening for transport dt_socket at address: 5005
 DONE  Compiled successfully in 2182ms10:51:13

  File                                      Size             Gzipped

  ..\resources\META-INF\resources\js\chu    368.90 KiB       85.31 KiB
  nk-vendors.js
  ..\resources\META-INF\resources\js\app    55.31 KiB        5.54 KiB
  .js

  Images and other types of assets omitted.

 DONE  Build complete. Watching for changes...
__  ____  __  _____   ___  __ ____  ______
 --/ __ \/ / / / _ | / _ \/ //_/ / / / __/
 -/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \
--\___\_\____/_/ |_/_/|_/_/|_|\____/___/
2020-08-12 10:51:17,275 WARN  [io.qua.net.run.NettyRecorder] (Thread-23) Localhost lookup took more than one second, you need to add a /etc/hosts entry to improve Quarkus startup time. On Windows the path is C:\Windows\System32\Drivers\etc\hosts. See https://thoeni.io/post/macos-sierra-java/ for macOS details.
2020-08-12 10:51:17,297 INFO  [io.quarkus] (Quarkus Main Thread) quarkus-vuejs 1.0-SNAPSHOT (powered by Quarkus 1.4.1.Final) started in 5.764s. Listening on: http://0.0.0.0:8080
2020-08-12 10:51:17,307 INFO  [io.quarkus] (Quarkus Main Thread) Profile dev activated. Live Coding activated.
2020-08-12 10:51:17,308 INFO  [io.quarkus] (Quarkus Main Thread) Installed features: [cdi, resteasy]

The index.html and the other files are in the target/classes/META-INF/resources folder

PS C:\Daten\nbprojects\test\quarkify\quarkus-vuejs> tree /a /f .\target\classes\
Auflistung der Ordnerpfade für Volume Windows
Volumeseriennummer : 8472-0BE0
C:\DATEN\NBPROJECTS\TEST\QUARKIFY\QUARKUS-VUEJS\TARGET\CLASSES
+---META-INF
|   \---resources
|       |   favicon.ico
|       |   index.html
|       |
|       +---css
|       +---img
|       |       logo.82b9c7a5.png
|       |
|       \---js
|               app.js
|               chunk-vendors.js
|
\---tech
    \---donau
        \---quarkify
                GreetingResource.class

Best Regards Stefan Höltker

Edit: added tree of target/classes

dmi3coder commented 4 years ago

Good day @stefanwendelmann. Might be some issue with Windows, I've never checked this plugin with windows. You do have index.html and additional files, So I feel like it's some issue with routing. What happens if you open http://localhost:8080/index.html ? Thank you very much for the info, I'll try to check within the week.