glassfish
glassfish copied to clipboard
"Cannot find specified Config Resource" error in Admin Console
Environment Details
- GlassFish Version (and build number): GlassFish 8.0.0-M6
- JDK version: OpenJDK 21.0.4
- OS: Windows 10
- Database: none
Problem Description
In the Administration Console, the following error is displayed after opening the "Clusters" page:
Cannot find specified Config Resource. Config may have been deleted.
This error sometimes occurs if the "Clusters" page is accessed multiple times.
Steps to reproduce
In the Administration Console, open the "Clusters" page multiple times.
Impact of issue
Though we can continue operations in the Administration Console, the error message is annoying.
Does this only happen in GlassFish 8.0.0-M6 or also in GlassFish 7?
This only happens in GlassFish 8.0.0-M6. This does not happen in GlassFish 7 (7.0.16).
Similar to #25064, if the META-INF/resources/jakarta.faces/faces.js file in glassfish/modules/jakarta.faces.jar in GlassFish 8.0.0-M6 is replaced with an older version (e.g. faces.js contained in GlassFish 7.0.16), this does not happen.
I do see these errors in the browser console:
Hmmm, I have to check, but wasn't this code I was fixing in Payara years ago? Number of parameters changed or something like that ... and it was possible to just define that function locally.
A fix for this bug is proposed in https://github.com/eclipse-ee4j/mojarra/issues/5499
TODO (note for myself): Close after upgrade of Mojarra which will contain
- https://github.com/eclipse-ee4j/mojarra/pull/5500 (for GF8)
- https://github.com/eclipse-ee4j/mojarra/pull/5501 (for GF7)
The fix is already in Mojarra 4.1.2, which is integrated to GF 8.0 branch. We can close this.
The notes above are wrong, this is correct:
- https://github.com/eclipse-ee4j/mojarra/pull/5500 (master branch - for Faces 5.0 SNAPSHOT, Jakarta EE 12)
- https://github.com/eclipse-ee4j/mojarra/pull/5501 (for Faces 4.1, released in Mojarra 4.1.2, for GF8)
This issue doesn't happen in GF7.