cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fleming, Timothy" <Timothy.Flem...@finra.org>
Subject RE: JAXRSInInterceptor MissingResourceException
Date Wed, 23 Apr 2008 17:32:46 GMT
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" <Timothy.Fleming@finra.org>
To: <cxf-user@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.


Mime
View raw message