Skip to content

Configure embedded containers to load static resources from fat jar's BOOT-INF/classes/META-INF/resources #8324

@mcirikovic

Description

@mcirikovic

Might be related to: #7595 (or at least to a comment in this issue)

Starting with 1.4.3, our JSF application isn't processing JSF pages anymore.

  • The application still starts and seems to work, but when we call a JSF page, it returns an error:
    /index.xhtml Not Found in ExternalContext as a Resource
  • After reading JarLauncher configures the class path such that resources are found twice #7595, i switched back to 1.5.1, but used the spring-boot-maven-plugin from version 1.4.2. Now the application starts with version 1.5.1 but JSF is still working.

I've appended a small example application. After started, call http://localhost:8085/index.xhtml.

  • If Spring Boot <=1.4.2 is used, the page shows something like "--|test value|--".
  • If Spring Boot >= 1.4.3 is used, an error page is displayed
  • If Spring Boot >= 1.4.3 with spring-boot-maven-plugin:1.4.2 is used, no error occurs and the expected "--|test value|--" is shown

BugTest.zip

BTW: If you start the application in Eclipse with the Spring Plugin, the result depends on your eclipse environment (for some developers it works, for some not - guess it depends, which loader is used by eclipse),

Metadata

Metadata

Assignees

Labels

status: declinedA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions