You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wookie.apache.org by Darren Jones <da...@gmail.com> on 2013/11/18 12:07:45 UTC

Has WOOKIE-420 broken Wookie on Linux?

I raised WOOKIE-420 because I was having ResourceBundle exceptions on a
Windows, Java 7, JBoss 7.2.0.Final combination. (Briefly, the fix was in
LocaleHandler, to look for org.apache.wookie.Messages with an upper-case M).

I've just had cause to try out this fix on a Linux, WildFly Beta1 (~JBoss
8), Java 7 combination, and found a different exception (below). I can fix
this latest exception by renaming the files "messages.properties" and
"messages_nl.properties" to have an upper-case "M", but after WOOKIE-420, I
can't be sure it doesn't break something else, so I thought I'd check here
first.

Please let me know if I need to raise another Jira.

Thanks.


10:32:37,117 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3)
MSC000001: Failed to start service
jboss.undertow.deployment.default-host./wookie:
org.jboss.msc.service.StartException in service
jboss.undertow.deployment.default-host./wookie: Failed to start service
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1900)
[jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[rt.jar:1.7.0_21]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[rt.jar:1.7.0_21]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_21]
Caused by: java.lang.RuntimeException: java.util.MissingResourceException:
Can't find bundle for base name org.apache.wookie.Messages, locale en
at
io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:189)
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:86)
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:71)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1944)
[jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1877)
[jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]
... 3 more
Caused by: java.util.MissingResourceException: Can't find bundle for base
name org.apache.wookie.Messages, locale en
at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1499)
[rt.jar:1.7.0_21]
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1322)
[rt.jar:1.7.0_21]
at java.util.ResourceBundle.getBundle(ResourceBundle.java:796)
[rt.jar:1.7.0_21]
at
org.apache.wookie.server.LocaleHandler.initResourceBundles(LocaleHandler.java:100)
at org.apache.wookie.server.LocaleHandler.initialize(LocaleHandler.java:72)
at
org.apache.wookie.server.ContextListener.contextInitialized(ContextListener.java:113)
at
io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:173)
at
io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:166)
... 7 more
Caused by: java.lang.ClassCastException: org.apache.wookie.Messages cannot
be cast to ResourceBundle
at java.util.ResourceBundle$Control.newBundle(ResourceBundle.java:2573)
[rt.jar:1.7.0_21]
at java.util.ResourceBundle.loadBundle(ResourceBundle.java:1436)
[rt.jar:1.7.0_21]
at java.util.ResourceBundle.findBundle(ResourceBundle.java:1400)
[rt.jar:1.7.0_21]
at java.util.ResourceBundle.findBundle(ResourceBundle.java:1354)
[rt.jar:1.7.0_21]
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1296)
[rt.jar:1.7.0_21]
... 13 more

Re: Has WOOKIE-420 broken Wookie on Linux?

Posted by Scott Wilson <sc...@gmail.com>.
On 26 Nov 2013, at 15:38, Darren Jones wrote:

> I've tried the upper case 'M' Messages properties files on Windows, and
> there appear to be no problems with that.

Thanks! I'll make the changes.

(Not that easy to do on a Mac as it turns out - svn hates doing a rename that is just a case change)

> 
> 
> On 25 November 2013 09:54, Scott Wilson <sc...@gmail.com>wrote:
> 
>> Hi Darren,
>> 
>> On 18 Nov 2013, at 11:07, Darren Jones wrote:
>> 
>>> I raised WOOKIE-420 because I was having ResourceBundle exceptions on a
>>> Windows, Java 7, JBoss 7.2.0.Final combination. (Briefly, the fix was in
>>> LocaleHandler, to look for org.apache.wookie.Messages with an upper-case
>> M).
>>> 
>>> I've just had cause to try out this fix on a Linux, WildFly Beta1 (~JBoss
>>> 8), Java 7 combination, and found a different exception (below). I can
>> fix
>>> this latest exception by renaming the files "messages.properties" and
>>> "messages_nl.properties" to have an upper-case "M", but after
>> WOOKIE-420, I
>>> can't be sure it doesn't break something else, so I thought I'd check
>> here
>>> first.
>> 
>> Everything seems OK on my local version (OS X, Jetty) however Macs are
>> sometimes case sensitive, and sometimes not : /
>> 
>> Changing the messages_**.properties files to Messages_**.properties
>> certainly doesn't seem to break anything for me, so seems reasonable.
>> 
>> Maybe if someone is willing to do a quick check on Windows too? It'll
>> probably work OK, but is worth checking.
>> 
>>> 
>>> Please let me know if I need to raise another Jira.
>>> 
>>> Thanks.
>>> 
>>> 
>>> 10:32:37,117 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3)
>>> MSC000001: Failed to start service
>>> jboss.undertow.deployment.default-host./wookie:
>>> org.jboss.msc.service.StartException in service
>>> jboss.undertow.deployment.default-host./wookie: Failed to start service
>>> at
>>> 
>> org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1900)
>>> [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]
>>> at
>>> 
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>> [rt.jar:1.7.0_21]
>>> at
>>> 
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>> [rt.jar:1.7.0_21]
>>> at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_21]
>>> Caused by: java.lang.RuntimeException:
>> java.util.MissingResourceException:
>>> Can't find bundle for base name org.apache.wookie.Messages, locale en
>>> at
>>> 
>> io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:189)
>>> at
>>> 
>> org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:86)
>>> at
>>> 
>> org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:71)
>>> at
>>> 
>> org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1944)
>>> [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]
>>> at
>>> 
>> org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1877)
>>> [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]
>>> ... 3 more
>>> Caused by: java.util.MissingResourceException: Can't find bundle for base
>>> name org.apache.wookie.Messages, locale en
>>> at
>>> 
>> java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1499)
>>> [rt.jar:1.7.0_21]
>>> at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1322)
>>> [rt.jar:1.7.0_21]
>>> at java.util.ResourceBundle.getBundle(ResourceBundle.java:796)
>>> [rt.jar:1.7.0_21]
>>> at
>>> 
>> org.apache.wookie.server.LocaleHandler.initResourceBundles(LocaleHandler.java:100)
>>> at
>> org.apache.wookie.server.LocaleHandler.initialize(LocaleHandler.java:72)
>>> at
>>> 
>> org.apache.wookie.server.ContextListener.contextInitialized(ContextListener.java:113)
>>> at
>>> 
>> io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:173)
>>> at
>>> 
>> io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:166)
>>> ... 7 more
>>> Caused by: java.lang.ClassCastException: org.apache.wookie.Messages
>> cannot
>>> be cast to ResourceBundle
>>> at java.util.ResourceBundle$Control.newBundle(ResourceBundle.java:2573)
>>> [rt.jar:1.7.0_21]
>>> at java.util.ResourceBundle.loadBundle(ResourceBundle.java:1436)
>>> [rt.jar:1.7.0_21]
>>> at java.util.ResourceBundle.findBundle(ResourceBundle.java:1400)
>>> [rt.jar:1.7.0_21]
>>> at java.util.ResourceBundle.findBundle(ResourceBundle.java:1354)
>>> [rt.jar:1.7.0_21]
>>> at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1296)
>>> [rt.jar:1.7.0_21]
>>> ... 13 more
>> 
>> 


Re: Has WOOKIE-420 broken Wookie on Linux?

Posted by Darren Jones <da...@gmail.com>.
I've tried the upper case 'M' Messages properties files on Windows, and
there appear to be no problems with that.


On 25 November 2013 09:54, Scott Wilson <sc...@gmail.com>wrote:

> Hi Darren,
>
> On 18 Nov 2013, at 11:07, Darren Jones wrote:
>
> > I raised WOOKIE-420 because I was having ResourceBundle exceptions on a
> > Windows, Java 7, JBoss 7.2.0.Final combination. (Briefly, the fix was in
> > LocaleHandler, to look for org.apache.wookie.Messages with an upper-case
> M).
> >
> > I've just had cause to try out this fix on a Linux, WildFly Beta1 (~JBoss
> > 8), Java 7 combination, and found a different exception (below). I can
> fix
> > this latest exception by renaming the files "messages.properties" and
> > "messages_nl.properties" to have an upper-case "M", but after
> WOOKIE-420, I
> > can't be sure it doesn't break something else, so I thought I'd check
> here
> > first.
>
> Everything seems OK on my local version (OS X, Jetty) however Macs are
> sometimes case sensitive, and sometimes not : /
>
> Changing the messages_**.properties files to Messages_**.properties
> certainly doesn't seem to break anything for me, so seems reasonable.
>
> Maybe if someone is willing to do a quick check on Windows too? It'll
> probably work OK, but is worth checking.
>
> >
> > Please let me know if I need to raise another Jira.
> >
> > Thanks.
> >
> >
> > 10:32:37,117 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3)
> > MSC000001: Failed to start service
> > jboss.undertow.deployment.default-host./wookie:
> > org.jboss.msc.service.StartException in service
> > jboss.undertow.deployment.default-host./wookie: Failed to start service
> > at
> >
> org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1900)
> > [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]
> > at
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> > [rt.jar:1.7.0_21]
> > at
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> > [rt.jar:1.7.0_21]
> > at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_21]
> > Caused by: java.lang.RuntimeException:
> java.util.MissingResourceException:
> > Can't find bundle for base name org.apache.wookie.Messages, locale en
> > at
> >
> io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:189)
> > at
> >
> org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:86)
> > at
> >
> org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:71)
> > at
> >
> org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1944)
> > [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]
> > at
> >
> org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1877)
> > [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]
> > ... 3 more
> > Caused by: java.util.MissingResourceException: Can't find bundle for base
> > name org.apache.wookie.Messages, locale en
> > at
> >
> java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1499)
> > [rt.jar:1.7.0_21]
> > at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1322)
> > [rt.jar:1.7.0_21]
> > at java.util.ResourceBundle.getBundle(ResourceBundle.java:796)
> > [rt.jar:1.7.0_21]
> > at
> >
> org.apache.wookie.server.LocaleHandler.initResourceBundles(LocaleHandler.java:100)
> > at
> org.apache.wookie.server.LocaleHandler.initialize(LocaleHandler.java:72)
> > at
> >
> org.apache.wookie.server.ContextListener.contextInitialized(ContextListener.java:113)
> > at
> >
> io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:173)
> > at
> >
> io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:166)
> > ... 7 more
> > Caused by: java.lang.ClassCastException: org.apache.wookie.Messages
> cannot
> > be cast to ResourceBundle
> > at java.util.ResourceBundle$Control.newBundle(ResourceBundle.java:2573)
> > [rt.jar:1.7.0_21]
> > at java.util.ResourceBundle.loadBundle(ResourceBundle.java:1436)
> > [rt.jar:1.7.0_21]
> > at java.util.ResourceBundle.findBundle(ResourceBundle.java:1400)
> > [rt.jar:1.7.0_21]
> > at java.util.ResourceBundle.findBundle(ResourceBundle.java:1354)
> > [rt.jar:1.7.0_21]
> > at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1296)
> > [rt.jar:1.7.0_21]
> > ... 13 more
>
>

Re: Has WOOKIE-420 broken Wookie on Linux?

Posted by Scott Wilson <sc...@gmail.com>.
Hi Darren,

On 18 Nov 2013, at 11:07, Darren Jones wrote:

> I raised WOOKIE-420 because I was having ResourceBundle exceptions on a
> Windows, Java 7, JBoss 7.2.0.Final combination. (Briefly, the fix was in
> LocaleHandler, to look for org.apache.wookie.Messages with an upper-case M).
> 
> I've just had cause to try out this fix on a Linux, WildFly Beta1 (~JBoss
> 8), Java 7 combination, and found a different exception (below). I can fix
> this latest exception by renaming the files "messages.properties" and
> "messages_nl.properties" to have an upper-case "M", but after WOOKIE-420, I
> can't be sure it doesn't break something else, so I thought I'd check here
> first.

Everything seems OK on my local version (OS X, Jetty) however Macs are sometimes case sensitive, and sometimes not : / 

Changing the messages_**.properties files to Messages_**.properties certainly doesn't seem to break anything for me, so seems reasonable.

Maybe if someone is willing to do a quick check on Windows too? It'll probably work OK, but is worth checking.

> 
> Please let me know if I need to raise another Jira.
> 
> Thanks.
> 
> 
> 10:32:37,117 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3)
> MSC000001: Failed to start service
> jboss.undertow.deployment.default-host./wookie:
> org.jboss.msc.service.StartException in service
> jboss.undertow.deployment.default-host./wookie: Failed to start service
> at
> org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1900)
> [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> [rt.jar:1.7.0_21]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> [rt.jar:1.7.0_21]
> at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_21]
> Caused by: java.lang.RuntimeException: java.util.MissingResourceException:
> Can't find bundle for base name org.apache.wookie.Messages, locale en
> at
> io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:189)
> at
> org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:86)
> at
> org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:71)
> at
> org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1944)
> [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]
> at
> org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1877)
> [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]
> ... 3 more
> Caused by: java.util.MissingResourceException: Can't find bundle for base
> name org.apache.wookie.Messages, locale en
> at
> java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1499)
> [rt.jar:1.7.0_21]
> at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1322)
> [rt.jar:1.7.0_21]
> at java.util.ResourceBundle.getBundle(ResourceBundle.java:796)
> [rt.jar:1.7.0_21]
> at
> org.apache.wookie.server.LocaleHandler.initResourceBundles(LocaleHandler.java:100)
> at org.apache.wookie.server.LocaleHandler.initialize(LocaleHandler.java:72)
> at
> org.apache.wookie.server.ContextListener.contextInitialized(ContextListener.java:113)
> at
> io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:173)
> at
> io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:166)
> ... 7 more
> Caused by: java.lang.ClassCastException: org.apache.wookie.Messages cannot
> be cast to ResourceBundle
> at java.util.ResourceBundle$Control.newBundle(ResourceBundle.java:2573)
> [rt.jar:1.7.0_21]
> at java.util.ResourceBundle.loadBundle(ResourceBundle.java:1436)
> [rt.jar:1.7.0_21]
> at java.util.ResourceBundle.findBundle(ResourceBundle.java:1400)
> [rt.jar:1.7.0_21]
> at java.util.ResourceBundle.findBundle(ResourceBundle.java:1354)
> [rt.jar:1.7.0_21]
> at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1296)
> [rt.jar:1.7.0_21]
> ... 13 more