TheCoder4eu / BootsFaces-OSP

BootsFaces - Open Source Project
Apache License 2.0
247 stars 102 forks source link

RES_NOT_FOUND on TomEE 8.0.8 #1175

Closed macbl closed 2 years ago

macbl commented 2 years ago

When updating my Bootsfaces 1.5.0 project from TomEE plume 8.0.6. to TomEE plume 8.0.8 I suddenly experience error messages in the browser saying: "Unable to find resource javax,faces, jfs.js". When looking into browser console and generated page source I find this statement inside the page head section: <script type="text/javascript" src="RES_NOT_FOUND"></script>

On a test page withpot bootsfaces elements, everything seems to work fine (tested basic jsf elements like h:outputText). Also, some Bootsfaces elements seem to work, as long as no <h:head> section is loaded. Further some Bootsfaces elements show up despite the error, others are missing. Some also operate, others don't.

Is there any fix for this?

macbl commented 2 years ago

Some simple comparison (simple bootsfaces alert tag): Page code generated when using TomEE 8.0.8:

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition>
<html xmlns="http://www.w3.org/1999/xhtml"><head id="j_idt2"><meta name="viewport" content="width=device-width, initial-scale=1"/><link type="text/css" rel="stylesheet" href="/ui/javax.faces.resource/css/default/core.css?ln=bsf" /><link type="text/css" rel="stylesheet" href="/ui/javax.faces.resource/css/bsf.css?ln=bsf" /><!--[if lt IE 9]><script src="/ui/javax.faces.resource/js/html5shiv.js?ln=bsf"></script>
<script src="/ui/javax.faces.resource/js/respond.js?ln=bsf"></script><![endif]-->
<script type="text/javascript" src="/ui/javax.faces.resource/jq/jquery.js?ln=bsf"></script>
<script type="text/javascript" src="/ui/javax.faces.resource/js/jquery.blockUI.js?ln=bsf"></script>
<script type="text/javascript" src="RES_NOT_FOUND"></script>
<script type="text/javascript" src="/ui/javax.faces.resource/js/tooltip.js?ln=bsf"></script>
<script type="text/javascript" src="/ui/javax.faces.resource/js/bsf.js?ln=bsf"></script></head><div class="  "><div id="j_idt3" class="alert alert-warning fadein">Debug page</div></div>
</html>

Code generated when using TomEE 8.0.6:

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition>
<html xmlns="http://www.w3.org/1999/xhtml"><head id="j_idt2"><meta name="viewport" content="width=device-width, initial-scale=1"/><link type="text/css" rel="stylesheet" href="/ui/javax.faces.resource/css/default/core.css?ln=bsf" /><link type="text/css" rel="stylesheet" href="/ui/javax.faces.resource/css/bsf.css?ln=bsf" /><!--[if lt IE 9]><script src="/ui/javax.faces.resource/js/html5shiv.js?ln=bsf"></script><script src="/ui/javax.faces.resource/js/respond.js?ln=bsf"></script><![endif]-->
<script type="text/javascript" src="/ui/javax.faces.resource/jq/jquery.js?ln=bsf"></script>
<script type="text/javascript" src="/ui/javax.faces.resource/js/jquery.blockUI.js?ln=bsf"></script>
<script type="text/javascript" src="/ui/javax.faces.resource/jsf.js?ln=javax.faces&amp;stage=Development"></script>
<script type="text/javascript" src="/ui/javax.faces.resource/js/tooltip.js?ln=bsf"></script>
<script type="text/javascript" src="/ui/javax.faces.resource/js/bsf.js?ln=bsf"></script></head><div class="  "><div id="j_idt3" class="alert alert-warning fadein">Debug page</div></div>
</html>

As you can see the script source "javax.faces.resource/jsf.js" is replaces in 8.0.8 with "RES_NOT_FOUND" .

Any Idea why this happens in TomEE 8.0.8 (but not in 8.0.6)?

macbl commented 2 years ago

This this seems to be a TommEE 8.0.8 issue, as all JSF ajax calls are affected, not only bootsfaces.

stephanrauh commented 2 years ago

If so, let's wait until 8.09 arrives :(