dev@glassfish.java.net

Re: URGENT and ACTION: changes to logger code will affect you.

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Wed, 10 Sep 2008 18:33:28 -0700

On 09/10/08 05:55 PM, Jan Luehe wrote:
> Hi Carla,
>
> after adding com.sun.logging.enterprise.system.container.web (which is
> the
> package containing LogStrings.properties) to web/war-util's list of
> exported
> packages (as per the attached diffs), all is well. :)

I spoke too early, I'm still seeing the failure.

It can be reproduced as follows:

- start the domain
- deploy a war file
- stop and restart the domain

The restart will fail with this error:

Caused by: java.util.MissingResourceException: Can't find bundle for
base name com.sun.logging.enterprise.system.container.web.LogStrings,
locale en
       at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:836)
       at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:805)
       at java.util.ResourceBundle.getBundle(ResourceBundle.java:699)
       at
com.sun.logging.LogDomains$1.getResourceBundle(LogDomains.java:260)
       at
com.sun.enterprise.web.connector.coyote.PECoyoteConnector.<clinit>(PECoyoteConnector.java:88)
       ... 25 more


If I copy the LogStrings.properties from web/war-util to web/web-glue,
all is fine.

So it seems the classloader for web/web-glue (which is responsible for
loading PECoyoteConnector)
does not have access to the LogStrings.properties in web/war-util.

So I tried to have web/war-util export the package in which
LogStrings.properties resides,
but that does not seem to help.


Jan