Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static file not served when there are no resource classes #4538

Closed
cescoffier opened this issue Oct 14, 2019 · 2 comments · Fixed by #4547
Closed

Static file not served when there are no resource classes #4538

cescoffier opened this issue Oct 14, 2019 · 2 comments · Fixed by #4547

Comments

@cescoffier
Copy link
Member

@cescoffier cescoffier commented Oct 14, 2019

Describe the bug

Static files from META-INF/resources are not served if you only have the RestEasy extension.

Expected behavior

They should be served.

Actual behavior
404.

Configuration

<dependency>
            <groupId>io.quarkus</groupId>
            <artifactId>quarkus-resteasy</artifactId>
        </dependency>
       <!-- fix it for now -->
        <dependency>
            <groupId>io.quarkus</groupId>
            <artifactId>quarkus-undertow</artifactId>
        </dependency>
@cescoffier cescoffier added the bug label Oct 14, 2019
cescoffier added a commit to quarkusio/quarkus-workshops that referenced this issue Oct 14, 2019
@cescoffier

This comment has been minimized.

Copy link
Member Author

@cescoffier cescoffier commented Oct 14, 2019

Even weirder, the resteasy extension is not enabled in the project I use to reproduce it:

[WARNING] The project's sources directory does not exist /Users/clement/Projects/sandbox/quarkus-workshops/quarkus-workshop-super-heroes/super-heroes/ui-super-heroes/src/main/java
Listening for transport dt_socket at address: 5005
2019-10-14 12:01:28,207 INFO  [io.qua.dep.QuarkusAugmentor] (main) Beginning quarkus augmentation
2019-10-14 12:01:28,811 INFO  [io.qua.resteasy] (build-13) Resteasy running without servlet container.
2019-10-14 12:01:28,811 INFO  [io.qua.resteasy] (build-13) - Add quarkus-undertow to run Resteasy within a servlet container
2019-10-14 12:01:28,842 INFO  [io.qua.dep.QuarkusAugmentor] (main) Quarkus augmentation completed in 635ms
2019-10-14 12:01:29,083 INFO  [io.quarkus] (main) Quarkus 0.24.0 started in 1.028s. Listening on: http://0.0.0.0:8080
2019-10-14 12:01:29,085 INFO  [io.quarkus] (main) Profile dev activated. Live Coding activated.
2019-10-14 12:01:29,085 INFO  [io.quarkus] (main) Installed features: [cdi]
@cescoffier

This comment has been minimized.

Copy link
Member Author

@cescoffier cescoffier commented Oct 14, 2019

no resource files...

@cescoffier cescoffier changed the title Static file not served without undertow Static file not served when there are no resource classes Oct 14, 2019
cescoffier added a commit to cescoffier/quarkus that referenced this issue Oct 14, 2019
@gsmet gsmet closed this in #4547 Oct 15, 2019
@cescoffier cescoffier added this to the 0.25.0 milestone Oct 15, 2019
CSTDev added a commit to CSTDev/quarkus that referenced this issue Oct 22, 2019
dufoli pushed a commit to dufoli/quarkus that referenced this issue Oct 23, 2019
vsevel added a commit to vsevel/quarkus that referenced this issue Nov 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.