Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
JS/CSS files not loaded on JBoss #9
I have installed Sling 7 webapp on JBoss EAP 6.4.0
I see only HTML elements (forms), but JS and CSS files are not loaded. In the Sling logs I see this error:
How can I fix this issue? I've tried version 1.3.1 but it doesn't start because of a wrong bundle version:
added a commit
Dec 7, 2015
The new Bugfix Release 1.3.2 should solve the bundle version problem. The other problem is mostly a result of insufficient permissions of the current user (of the anonymous user); to handle this a check is added and delivered with release 1.3.2 which displays a simple login form if the initialization is not done properly. To use the console app read access to the paths '/libs/composum' and '/libs/jslibs' is needed.
Sorry I've tested quickly and didn't respond immediately.
No it doesn't seem to solve my problem. First, the login form action is "/j_security_check" so it's missing the context name.
I've edited the source to add "/sling" and when submitting the form with admin credentials (default from Sling install) I'm redirected to "http://localhost:8080/sling/index.html/" with a 403 error. If I go to browser.html again I briefly see the page without assets and then I'm redirected to the login form, displaying:
Console assets not accessible...
Do I have to manually edit ACLs or should the admin user work already?
I think we have a general gap in our implementation - we don't support a context path; if such a path is configured for the Http-Service of the standalone application all the symptoms are reproducible. In the JBoss context such a context path is essential and we must solve this problem. But it's a bigger change with some test effort and we take a little bit of time to do that, sorry.