Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account
List archives

Getting CXF to work properly in OSGi

Re: Good way to add link relations to REST responses
(19 lines)
Signature and encryption in security policy
(41 lines)
Feb 8, 2012
Isuru Suriarachchi
Isuru Suriarachchi
Hi all,

I'm trying to bring CXF into my OSGi container (equinox). So the spring
framework is a single bundle and cxf is a separate bundle. And my web.xml
has the following context param.

<context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>
      classpath:META-INF/cxf/cxf.xml
      classpath:META-INF/cxf/cxf-extension-soap.xml
      classpath:META-INF/cxf/cxf-servlet.xml
     </param-value>
  </context-param>

But when I try to deploy this, I get the following exception.

SEVERE: Exception sending context initialized event to listener instance of
class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanDefinitionStoreException: IOException
parsing XML document from class path resource [META-INF/cxf/cxf.xml];
nested exception is java.io.FileNotFoundException: class path resource
[META-INF/cxf/cxf.xml] cannot be opened because it does not exist
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:341)
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
        at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
        at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)

So it looks like the spring framework can't see the cxf.xml which is in the
CXF bundle. Is there a way to overcome this issue? Have anyone tried to use
CXF within OSGi?

Thanks,
~Isuru


Reply
Tags: cxfspring frameworkosgiequinoxxml
Messages in this thread
Getting CXF to work properly in OSGi
reply Re: Getting CXF to work properly in OSGi
(98 lines) Feb 8, 2012 10:08
reply Re: Getting CXF to work properly in OSGi
(136 lines) Feb 9, 2012 00:21
reply Re: Getting CXF to work properly in OSGi
(174 lines) Mar 1, 2012 04:04
reply Re: Getting CXF to work properly in OSGi
(232 lines) Mar 1, 2012 05:38
reply Re: Getting CXF to work properly in OSGi
(318 lines) Mar 2, 2012 08:02
reply Re: Getting CXF to work properly in OSGi
(69 lines) Mar 2, 2012 09:17
reply Re: Getting CXF to work properly in OSGi
(80 lines) Mar 2, 2012 09:58
get_range_slices does not work properly
December 15, 2010 11:46:14 PM
Hi! Using v0.6.6, I have a 16 node cluster. One column family has 16 keys(corresponding to node number) but only 9 get listed with get_range_slices with a predicate and a key_range with empty start and end. When I do a get_slice with one of the…
Getting Worker timeout to work properly
December 7, 2010 12:17:17 PM
Hi everyone, I'm having trouble implementing a proper worker timeout using the (latest) PECL gearman extension (gearmand 0.14) There are three types of timeouts to my understanding: 1) Socket I/O of the Worker - while waiting for accept jobs 2)…
camptocamp / puppet-apache can't get it to work properly.
December 20, 2011 03:08:34 AM
Hello, I'm attempting to use the camptocamp / puppet-apache module on one of my CentOS 6 hosts. I defined include apache on my node, imported the modules, and then executed puppetd to run. This is what I see when I run it: err: Could not retrieve…
New: spamd option --min-children doesn't work properly
February 1, 2012 07:48:33 AM
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6754 Bug #: 6754 Summary: spamd option --min-children doesn't work properly Product: Spamassassin Version: unspecified Platform: All …
Trying out geosearch feature, unable to get to work properly.
June 3, 2011 05:02:34 PM
Hi, I'm trying out the geosearch feature, but im unable to get it to work. I probably use it the wrong way, since i've only played around with ES / lucene for the last couple of weeks. I have been trying the examples provided in the online…
Updated: (HIVE-170) map-side aggregations does not work properly
July 23, 2010 01:13:56 PM
[ https://issues.apache.org/jira/browse/HIVE-170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carl Steinbach updated HIVE-170:
DO NOT REPLY SSL session resumption does not properly work with openssl > 0.9.8f
July 15, 2011 05:42:36 AM
https://issues.apache.org/bugzilla/show_bug.cgi?id=44961 Joe Orton <jor### @redhat.com> changed: What |Removed |Added
DO NOT REPLY SSL session resumption does not properly work with openssl > 0.9.8f
July 14, 2011 03:11:41 PM
https://issues.apache.org/bugzilla/show_bug.cgi?id=44961 strodgers <stro### @caci.com> changed: What |Removed |Added
Created] (MAPREDUCE-3173) MRV2 UI doesn't work properly without internet
October 12, 2011 05:23:59 AM
MRV2 UI doesn't work properly without internet
PATCH] (#5699) Facter does not work properly with zLinux (s390x)
December 28, 2010 03:47:06 PM
Modified the facts processorN, processorcount, is_virtual and virtual: * is_virtual=true and virtual=.zlinux. if architecture=s390x * /proc/cpuinfo has diferent syntax, matching /processor\s+(\d+):\s+(.*)/ --- lib/facter/processor.rb | 3 +++…
Updated: (HIVE-129) Fix aux.jar packaging to work properly with 0.17 and 0.18 versions of hadoop
July 23, 2010 04:59:02 AM
[ https://issues.apache.org/jira/browse/HIVE-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carl Steinbach updated HIVE-129:
Updated: (DAEMON-139) Stdout/Stderr redirection does not work properly
August 2, 2010 02:50:44 PM
[ https://issues.apache.org/jira/browse/DAEMON-139?page=com.atlassian.ji ra.plugin.system.issuetabpanels:all-tabpanel ] Mladen Turk updated DAEMON-139:
Created: (CAMEL-3079) job rescheduling and clustering does not work properly
August 25, 2010 10:27:10 AM
job rescheduling and clustering does not work properly
Created] (HIVE-2426) Test that views with joins work properly
September 2, 2011 12:46:06 AM
Test that views with joins work properly
Updated: (HIVE-421) union followed by multi-table insert does not work properly
July 23, 2010 11:57:05 AM
[ https://issues.apache.org/jira/browse/HIVE-421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carl Steinbach updated HIVE-421:
DO NOT REPLY New: Cross compiling causes multiple Listen directives to not work properly
August 19, 2011 11:48:03 AM
https://issues.apache.org/bugzilla/show_bug.cgi?id=51689 Bug #: 51689 Summary: Cross compiling causes multiple Listen directives to not work properly Product: Apache httpd-2 …
Created] (PIG-2099) AllLoader in trunk does not work properly with JSON schemas
May 27, 2011 01:53:55 PM
AllLoader in trunk does not work properly with JSON schemas
Created: (PIG-1658) ORDER BY does not work properly on integer/short keys that are -1
September 30, 2010 01:26:03 PM
ORDER BY does not work properly on integer/short keys that are -1
Created: (CAMEL-3162) Simple language work not properly together with Springs PropertyPlaceholderCon
September 26, 2010 10:45:27 AM
Simple language work not properly together with Springs PropertyPlaceholderConfigurer
Autocomplete doesn't work properly
June 16, 2011
I want to apply "Jquery UI Autocomplete with multiple values" to one registration forms input field. What i want to do exactly: When visitor types…
Regex doesn't work properly
February 14, 2011
I am trying to implement a regular expression to allow only one or two digits after a hyphen '-' and it doesn't work properly. It allows as many…
ASP.NET pagination - getting it to work properly?
June 12, 2011
I currently have an ASP.NET script for a TV guide which displays the data from the database properly in a tabl, as mentioned at…
How to Debug GWT Application that does not work properly in Tomcat?
May 9, 2011
My GWT application is working fine on Jetty. When I copy the war folder to tomcat one request is not working properly. The logs are empty. What to…
Php mysql LIKE with special characters does not work properly
June 9, 2011
So i am trying to do a LIKE query and get some results but the text that i pass has some special characters that break the query. if we assume that…
Apache2 on Windows, VirtualHost seems to not work properly
March 9, 2011
I have a domain which points to my IP address, now I want to do the following: if I access the server locally (localhost / 127.0.0.1) I want it to…
I Can't make RewriteBase and RewriteRule to work properly
May 23, 2011
My structure is the following: mywebsite/clubeadv/ Inside that folder I have a file called site.php which receives a parameter id. So, the physical…
GoDaddy mod_rewrite enabled but doesnt work properly
January 27, 2011
Hello everyone. About an hour ago, I Added Options +FollowSymLinks RewriteEngine On RewriteCond %{REQUEST_URI} ^(.*[^/])/?$ RewriteCond…
Can't get python logging using apache2 CustomLog to work properly
February 25, 2011
Hello, I'm trying to use apache's CustomLog directive to pass log lines into a python script (which should log into a django backend). I'm using the…
Mod_rewrite and htaccess, making relative paths work properly
April 6, 2011
I've tried to find an answer to this, but so far I've been unable to. I'd like to redirect all requests to a given path to a specific file. Here is…
PHP Files won't open in browser - only download. What do I need to change to make it work properly?
March 22, 2011
I have tried reinstalling PHP. PHP is working, and Apache2 is running. I don't know why it's not opening in a browser and displaying normally. Just…
JDBC Driver in OSGI (Eclipse IDE)
January 27, 2011
Hi, I am having some problems with getting my OSGI programs to recognzie/utilize the mysql jdbc driver. I have a bundle that is speficcally for…
Modularizing existing web applications with OSGi
April 7, 2011
I kind of need an advice here. I want to modularize my existing Java web applications. Tried to do it with maven and it worked somekind. I managed…
How to schedule an osgi bundle in fuse servicemix ?
February 22, 2011
i want to restart an osgi bundle at a particular time for the day .i am using apache-servicemix-4.3.0-fuse-02-00. console wise i want to do this .…
OSGI Class.forName fails when trying to locate the Oracle JDBC Driver
August 19, 2011
I'm a OSGI newbie looking for some help. I've been asked to create a simple REST bundle which invokes one of our databases to obtain information. I…
How to properly control chacter enocding in forms so frech accents are stored properly
May 13, 2011
I have a web form that for entering names. Sometimes, the names contain french characters. I am having a problem with, in particular, the é. When…
Sed: How can I make this bash command work/work better?
April 13, 2011
My objective is to simply to change a function call from one to another, anywhere the first one is found, recursively. In this case, mysql_error( to…
Why does this :id in Rails not work with Postgresql but it does work with MySQL?
February 25, 2011
I am using this method for search engine friendly URLs in Rails - http://jroller.com/obie/entry/seo_optimization_of_urls_in My model looks like…
My work laptop uses company DNS even when I'm not at work
February 22, 2011
My company gave me a laptop for work and I've noticed that it is using my company's DNS servers even when I'm at home and not on a VPN. I noticed…
Properly use preg_match?
June 10, 2011
How would I change the following preg_match() code to also block the index.html file, stead of only '.' , '..' , or '.htaccess'?…