glassfish icon indicating copy to clipboard operation
glassfish copied to clipboard

"Cannot find specified Config Resource" error in Admin Console

Open tnagao7 opened this issue 1 year ago • 6 comments

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.

gui-config-resource-error

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.

tnagao7 avatar Aug 01 '24 02:08 tnagao7

Does this only happen in GlassFish 8.0.0-M6 or also in GlassFish 7?

OndroMih avatar Aug 02 '24 12:08 OndroMih

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.

tnagao7 avatar Aug 05 '24 02:08 tnagao7

I do see these errors in the browser console:

console

arjantijms avatar Aug 10 '24 08:08 arjantijms

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.

dmatej avatar Aug 10 '24 16:08 dmatej

A fix for this bug is proposed in https://github.com/eclipse-ee4j/mojarra/issues/5499

tnagao7 avatar Sep 06 '24 05:09 tnagao7

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)

dmatej avatar Sep 13 '24 20:09 dmatej

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.

OndroMih avatar Mar 14 '25 16:03 OndroMih