Glassfish 3: Space In Custom Resource Name Causes Error

I mistakenly added a custom JNDI resource in Glassfish through the administration console with a space in the name. It was ‘application_configuration /download-token’. The space caused an error when the JNDI>Custom Resource page loaded:

REST Request ‘http://localhost:4848/management/domain/servers/server/server/resource-ref/application_configuration+%2Fdownload-token’ failed with response code ‘404’.

Glassfish JNDI Custom Resource Error

Glassfish JNDI Custom Resource Error

Thereby failing to show any entries or allow for correction. As far as I can tell the only way to correct the entry is to remove it via asadmin:

delete-custom-resource ‘application_configuration /download-token’

Delete Custom JNDI Resource

Delete Custom JNDI Resource

This entry was posted in Programming and tagged , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *