You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by "Fleming, Timothy" <Ti...@finra.org> on 2008/04/23 16:44:15 UTC

JAXRSInInterceptor MissingResourceException

I'm attempting to deploy a simple JAX-RS servlet service under
Geronimo/Jetty using Spring for initialization.  During startup I get:

java.lang.ExceptionInInitializerError
	at
org.apache.cxf.jaxrs.JAXRSBindingFactory.createBinding(JAXRSBindingFacto
ry.java:43)
	at
org.apache.cxf.endpoint.EndpointImpl.createBinding(EndpointImpl.java:130
)
	at
org.apache.cxf.endpoint.EndpointImpl.<init>(EndpointImpl.java:81)
	at
org.apache.cxf.jaxrs.JAXRSServerFactoryBean.createEndpoint(JAXRSServerFa
ctoryBean.java:134)
	at
org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBea
n.java:80)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	...
Caused by: java.util.MissingResourceException: Can't find bundle for
base name org.apache.cxf.jaxrs.interceptor.Messages, locale en_US
	at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.ja
va:836)
	at
java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:805)
	at java.util.ResourceBundle.getBundle(ResourceBundle.java:549)
	at
org.apache.cxf.common.i18n.BundleUtils.getBundle(BundleUtils.java:75)
	at
org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.<clinit>(JAXRSInInte
rceptor.java:49)

The exception itself is pretty simple.  The JAXRSInInterceptor class has
a static initializer that loads a resource bundle.  For some reason the
load fails.  

I'm using 2.1 snapshot and have confirmed the
org.apache.cxf.jaxrs.interceptor.Messages.properties file is present in
the deployed jar.  Any ideas what could be causing this?  Thanks

--
Tim Fleming
FINRA
Sr Developer




This email, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity
to which it is addressed.  If the reader of this email is not the 
intended recipient or his or her authorized agent, the reader is 
hereby notified that any dissemination, distribution or copying of this 
email is prohibited. If you have received this email in error, 
please notify the sender by replying to this message and delete this 
email immediately.


Re: JAXRSInInterceptor MissingResourceException [SOLVED]

Posted by Sergey Beryozkin <se...@iona.com>.
Hi,

Thanks, it can be of help even for users not relying on CXF JAX-RS but on its JAX-WS implementation too...or for users combining JAX-WS and JAX-RS CXF services in Geronimo...

Cheers, Sergey

 
----- Original Message ----- 
From: "Fleming, Timothy" <Ti...@finra.org>
To: <cx...@incubator.apache.org>
Sent: Wednesday, April 23, 2008 6:53 PM
Subject: RE: JAXRSInInterceptor MissingResourceException [SOLVED]


The full geronimo/jetty installation includes cxf 2.0.2.  If you go to
the Geronimo console -> Application -> System Modules you will find 4
cxf modules running.  After uninstalling these the exception below went
away.

-----Original Message-----
From: Fleming, Timothy [mailto:Timothy.Fleming@finra.org] 
Sent: Wednesday, April 23, 2008 1:33 PM
To: cxf-user@incubator.apache.org
Subject: RE: JAXRSInInterceptor MissingResourceException

I think it must be.  What's also interesting is the line number

org.apache.cxf.common.i18n.BundleUtils.getBundle(BundleUtils.java:75)

Line 75 in current BundleUtils is not an executable line.  Further I've
checked out the cxf code, added some debugging to BundleUtils, built
cxf-commons-utilities and removed the classes from the cxf snapshot jar.
Still the exception references line 75 in BundleUtils.  It must be
picking up this class somewhere else.  One would have to go back to
revision 447762 (19 months old) to find BundleUtils.getBundle at line
75.  

I'll report back whatever I find.

-----Original Message-----
From: Sergey Beryozkin [mailto:sergey.beryozkin@iona.com]
Sent: Wednesday, April 23, 2008 12:54 PM
To: cxf-user@incubator.apache.org
Subject: Re: JAXRSInInterceptor MissingResourceException

Hi,

I'm just wondering can it be some class loader/path issue known to the
Geronimo community ?
May be you can ask the guys there and let us know what might've caused
it ? Other users seem to have no problems when running it under Tomcat
and when running it in standalone mode with Jetty. 

Cheers, Sergey


----- Original Message -----
From: "Fleming, Timothy" <Ti...@finra.org>
To: <cx...@incubator.apache.org>
Sent: Wednesday, April 23, 2008 3:44 PM
Subject: JAXRSInInterceptor MissingResourceException


I'm attempting to deploy a simple JAX-RS servlet service under
Geronimo/Jetty using Spring for initialization.  During startup I get:

java.lang.ExceptionInInitializerError
at
org.apache.cxf.jaxrs.JAXRSBindingFactory.createBinding(JAXRSBindingFacto
ry.java:43)
at
org.apache.cxf.endpoint.EndpointImpl.createBinding(EndpointImpl.java:130
)
at
org.apache.cxf.endpoint.EndpointImpl.<init>(EndpointImpl.java:81)
at
org.apache.cxf.jaxrs.JAXRSServerFactoryBean.createEndpoint(JAXRSServerFa
ctoryBean.java:134)
at
org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBea
n.java:80)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ...
Caused by: java.util.MissingResourceException: Can't find bundle for
base name org.apache.cxf.jaxrs.interceptor.Messages, locale en_US at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.ja
va:836)
at
java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:805)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:549)
at
org.apache.cxf.common.i18n.BundleUtils.getBundle(BundleUtils.java:75)
at
org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.<clinit>(JAXRSInInte
rceptor.java:49)

The exception itself is pretty simple.  The JAXRSInInterceptor class has
a static initializer that loads a resource bundle.  For some reason the
load fails.  

I'm using 2.1 snapshot and have confirmed the
org.apache.cxf.jaxrs.interceptor.Messages.properties file is present in
the deployed jar.  Any ideas what could be causing this?  Thanks

--
Tim Fleming
FINRA
Sr Developer




This email, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed.  If the reader of this email is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this email is
prohibited. If you have received this email in error, please notify the
sender by replying to this message and delete this email immediately.

----------------------------
IONA Technologies PLC (registered in Ireland) Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4,
Ireland


This email, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed.  If the reader of this email is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this email is
prohibited. If you have received this email in error, please notify the
sender by replying to this message and delete this email immediately.




This email, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity
to which it is addressed.  If the reader of this email is not the 
intended recipient or his or her authorized agent, the reader is 
hereby notified that any dissemination, distribution or copying of this 
email is prohibited. If you have received this email in error, 
please notify the sender by replying to this message and delete this 
email immediately.

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland

RE: JAXRSInInterceptor MissingResourceException [SOLVED]

Posted by "Fleming, Timothy" <Ti...@finra.org>.
The full geronimo/jetty installation includes cxf 2.0.2.  If you go to
the Geronimo console -> Application -> System Modules you will find 4
cxf modules running.  After uninstalling these the exception below went
away.

-----Original Message-----
From: Fleming, Timothy [mailto:Timothy.Fleming@finra.org] 
Sent: Wednesday, April 23, 2008 1:33 PM
To: cxf-user@incubator.apache.org
Subject: RE: JAXRSInInterceptor MissingResourceException

I think it must be.  What's also interesting is the line number

org.apache.cxf.common.i18n.BundleUtils.getBundle(BundleUtils.java:75)

Line 75 in current BundleUtils is not an executable line.  Further I've
checked out the cxf code, added some debugging to BundleUtils, built
cxf-commons-utilities and removed the classes from the cxf snapshot jar.
Still the exception references line 75 in BundleUtils.  It must be
picking up this class somewhere else.  One would have to go back to
revision 447762 (19 months old) to find BundleUtils.getBundle at line
75.  

I'll report back whatever I find.

-----Original Message-----
From: Sergey Beryozkin [mailto:sergey.beryozkin@iona.com]
Sent: Wednesday, April 23, 2008 12:54 PM
To: cxf-user@incubator.apache.org
Subject: Re: JAXRSInInterceptor MissingResourceException

Hi,

I'm just wondering can it be some class loader/path issue known to the
Geronimo community ?
May be you can ask the guys there and let us know what might've caused
it ? Other users seem to have no problems when running it under Tomcat
and when running it in standalone mode with Jetty. 

Cheers, Sergey


----- Original Message -----
From: "Fleming, Timothy" <Ti...@finra.org>
To: <cx...@incubator.apache.org>
Sent: Wednesday, April 23, 2008 3:44 PM
Subject: JAXRSInInterceptor MissingResourceException


I'm attempting to deploy a simple JAX-RS servlet service under
Geronimo/Jetty using Spring for initialization.  During startup I get:

java.lang.ExceptionInInitializerError
at
org.apache.cxf.jaxrs.JAXRSBindingFactory.createBinding(JAXRSBindingFacto
ry.java:43)
at
org.apache.cxf.endpoint.EndpointImpl.createBinding(EndpointImpl.java:130
)
at
org.apache.cxf.endpoint.EndpointImpl.<init>(EndpointImpl.java:81)
at
org.apache.cxf.jaxrs.JAXRSServerFactoryBean.createEndpoint(JAXRSServerFa
ctoryBean.java:134)
at
org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBea
n.java:80)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ...
Caused by: java.util.MissingResourceException: Can't find bundle for
base name org.apache.cxf.jaxrs.interceptor.Messages, locale en_US at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.ja
va:836)
at
java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:805)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:549)
at
org.apache.cxf.common.i18n.BundleUtils.getBundle(BundleUtils.java:75)
at
org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.<clinit>(JAXRSInInte
rceptor.java:49)

The exception itself is pretty simple.  The JAXRSInInterceptor class has
a static initializer that loads a resource bundle.  For some reason the
load fails.  

I'm using 2.1 snapshot and have confirmed the
org.apache.cxf.jaxrs.interceptor.Messages.properties file is present in
the deployed jar.  Any ideas what could be causing this?  Thanks

--
Tim Fleming
FINRA
Sr Developer




This email, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed.  If the reader of this email is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this email is
prohibited. If you have received this email in error, please notify the
sender by replying to this message and delete this email immediately.

----------------------------
IONA Technologies PLC (registered in Ireland) Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4,
Ireland


This email, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed.  If the reader of this email is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this email is
prohibited. If you have received this email in error, please notify the
sender by replying to this message and delete this email immediately.




This email, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity
to which it is addressed.  If the reader of this email is not the 
intended recipient or his or her authorized agent, the reader is 
hereby notified that any dissemination, distribution or copying of this 
email is prohibited. If you have received this email in error, 
please notify the sender by replying to this message and delete this 
email immediately.


RE: JAXRSInInterceptor MissingResourceException

Posted by "Fleming, Timothy" <Ti...@finra.org>.
I think it must be.  What's also interesting is the line number

org.apache.cxf.common.i18n.BundleUtils.getBundle(BundleUtils.java:75)

Line 75 in current BundleUtils is not an executable line.  Further I've
checked out the cxf code, added some debugging to BundleUtils, built
cxf-commons-utilities and removed the classes from the cxf snapshot jar.
Still the exception references line 75 in BundleUtils.  It must be
picking up this class somewhere else.  One would have to go back to
revision 447762 (19 months old) to find BundleUtils.getBundle at line
75.  

I'll report back whatever I find.

-----Original Message-----
From: Sergey Beryozkin [mailto:sergey.beryozkin@iona.com] 
Sent: Wednesday, April 23, 2008 12:54 PM
To: cxf-user@incubator.apache.org
Subject: Re: JAXRSInInterceptor MissingResourceException

Hi,

I'm just wondering can it be some class loader/path issue known to the
Geronimo community ?
May be you can ask the guys there and let us know what might've caused
it ? Other users seem to have no problems when running it under Tomcat
and when running it in standalone mode with Jetty. 

Cheers, Sergey


----- Original Message -----
From: "Fleming, Timothy" <Ti...@finra.org>
To: <cx...@incubator.apache.org>
Sent: Wednesday, April 23, 2008 3:44 PM
Subject: JAXRSInInterceptor MissingResourceException


I'm attempting to deploy a simple JAX-RS servlet service under
Geronimo/Jetty using Spring for initialization.  During startup I get:

java.lang.ExceptionInInitializerError
at
org.apache.cxf.jaxrs.JAXRSBindingFactory.createBinding(JAXRSBindingFacto
ry.java:43)
at
org.apache.cxf.endpoint.EndpointImpl.createBinding(EndpointImpl.java:130
)
at
org.apache.cxf.endpoint.EndpointImpl.<init>(EndpointImpl.java:81)
at
org.apache.cxf.jaxrs.JAXRSServerFactoryBean.createEndpoint(JAXRSServerFa
ctoryBean.java:134)
at
org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBea
n.java:80)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...
Caused by: java.util.MissingResourceException: Can't find bundle for
base name org.apache.cxf.jaxrs.interceptor.Messages, locale en_US
at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.ja
va:836)
at
java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:805)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:549)
at
org.apache.cxf.common.i18n.BundleUtils.getBundle(BundleUtils.java:75)
at
org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.<clinit>(JAXRSInInte
rceptor.java:49)

The exception itself is pretty simple.  The JAXRSInInterceptor class has
a static initializer that loads a resource bundle.  For some reason the
load fails.  

I'm using 2.1 snapshot and have confirmed the
org.apache.cxf.jaxrs.interceptor.Messages.properties file is present in
the deployed jar.  Any ideas what could be causing this?  Thanks

--
Tim Fleming
FINRA
Sr Developer




This email, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity
to which it is addressed.  If the reader of this email is not the 
intended recipient or his or her authorized agent, the reader is 
hereby notified that any dissemination, distribution or copying of this 
email is prohibited. If you have received this email in error, 
please notify the sender by replying to this message and delete this 
email immediately.

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4,
Ireland


This email, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity
to which it is addressed.  If the reader of this email is not the 
intended recipient or his or her authorized agent, the reader is 
hereby notified that any dissemination, distribution or copying of this 
email is prohibited. If you have received this email in error, 
please notify the sender by replying to this message and delete this 
email immediately.


Re: JAXRSInInterceptor MissingResourceException

Posted by Sergey Beryozkin <se...@iona.com>.
Hi,

I'm just wondering can it be some class loader/path issue known to the Geronimo community ?
May be you can ask the guys there and let us know what might've caused it ? Other users seem to have no problems when running it under Tomcat and when running it in standalone mode with Jetty. 

Cheers, Sergey


----- Original Message ----- 
From: "Fleming, Timothy" <Ti...@finra.org>
To: <cx...@incubator.apache.org>
Sent: Wednesday, April 23, 2008 3:44 PM
Subject: JAXRSInInterceptor MissingResourceException


I'm attempting to deploy a simple JAX-RS servlet service under
Geronimo/Jetty using Spring for initialization.  During startup I get:

java.lang.ExceptionInInitializerError
at
org.apache.cxf.jaxrs.JAXRSBindingFactory.createBinding(JAXRSBindingFacto
ry.java:43)
at
org.apache.cxf.endpoint.EndpointImpl.createBinding(EndpointImpl.java:130
)
at
org.apache.cxf.endpoint.EndpointImpl.<init>(EndpointImpl.java:81)
at
org.apache.cxf.jaxrs.JAXRSServerFactoryBean.createEndpoint(JAXRSServerFa
ctoryBean.java:134)
at
org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBea
n.java:80)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...
Caused by: java.util.MissingResourceException: Can't find bundle for
base name org.apache.cxf.jaxrs.interceptor.Messages, locale en_US
at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.ja
va:836)
at
java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:805)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:549)
at
org.apache.cxf.common.i18n.BundleUtils.getBundle(BundleUtils.java:75)
at
org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.<clinit>(JAXRSInInte
rceptor.java:49)

The exception itself is pretty simple.  The JAXRSInInterceptor class has
a static initializer that loads a resource bundle.  For some reason the
load fails.  

I'm using 2.1 snapshot and have confirmed the
org.apache.cxf.jaxrs.interceptor.Messages.properties file is present in
the deployed jar.  Any ideas what could be causing this?  Thanks

--
Tim Fleming
FINRA
Sr Developer




This email, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity
to which it is addressed.  If the reader of this email is not the 
intended recipient or his or her authorized agent, the reader is 
hereby notified that any dissemination, distribution or copying of this 
email is prohibited. If you have received this email in error, 
please notify the sender by replying to this message and delete this 
email immediately.

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland