[MAGNOLIA-6351] resource loader can only find classpath resources at root level when deploying in JBoss Created: 22/Aug/15  Updated: 15/Apr/16  Resolved: 24/Sep/15

Status: Closed
Project: Magnolia
Component/s: resource-loader
Affects Version/s: 5.4
Fix Version/s: 5.4.3

Type: Bug Priority: Critical
Reporter: Richard Gange Assignee: Aleksandr Pchelintcev
Resolution: Fixed Votes: 2
Labels: support
Remaining Estimate: 0d
Time Spent: 4d
Original Estimate: Not Specified
Environment:

Red Hat JBoss Enterprise Application Platform - Version 6.4.0.GA
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)


Issue Links:
Relates
relates to MAGNOLIA-6389 Re-iterate over the ClasspathScanner Closed
causality
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Sprint: Basel 13
Story Points: 5

 Description   

During the collection of resources located in the classpath only those resources at the root level can be found.

If you turn on DEBUG for info.magnolia.resourceloader.classpath.ClasspathResourceOrigin you can see that system finds 0 resources in mgnl-resources and ~5 in other areas.

This leads to errors like these:
https://gist.github.com/p4elkin/79e9f8a3f8fa0bf74a0d


Generated at Mon Feb 12 04:13:42 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.