OSGi Admin Service Configuration - not deploying in Fuse IDE
rvashishth Apr 14, 2014 3:02 AMHi,
I am trying to implement the OSGi admin service configuration as explained in the below link..
Issue with mine is that i am able to deploy on redhat-fuse-standalone-server but when i run my camel context in
fuse ide, it is not able to start there saying namespace not found exception
Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/osgi-compendium]
Offending resource: class path resource [META-INF/spring/UserProfileSpringContext.xml]
I have modified the osgi admin config accordingly..
Below my configuration ---
My Bean configuration file
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cxf="http://camel.apache.org/schema/cxf"
xmlns:osgi="http://www.springframework.org/schema/osgi"
xmlns:osgix="http://www.springframework.org/schema/osgi-compendium"
xmlns:ctx="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://camel.apache.org/schema/cxf
http://camel.apache.org/schema/cxf/camel-cxf.xsd
http://www.springframework.org/schema/osgi
http://www.springframework.org/schema/osgi/spring-osgi.xsd
http://www.springframework.org/schema/osgi-compendium
http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd">
<!-- Configuration Admin entry -->
<osgix:cm-properties id="cmProps"
persistent-id="com.my.fabric.lb">
<prop key="portNumber">10226</prop>
</osgix:cm-properties>
<!-- placeholder configurer -->
<ctx:property-placeholder properties-ref="cmProps" />
<cxf:rsServer id="userProfileService"
address="http://{{esb.license.service.host}}:${portNumber}/userProfile"
serviceClass="com.my.esb.service.licence.GetLicenceThresholdServiceImpl"
loggingFeatureEnabled="true">
<cxf:providers>
<bean class="org.codehaus.jackson.jaxrs.JacksonJsonProvider"/>
</cxf:providers>
</cxf:rsServer>
</beans>
in POM file i have added the following dependency
<dependency>
<groupId>org.fusesource.fabric</groupId>
<artifactId>fabric-cxf</artifactId>
<version>7.0.1.fuse-084</version>
</dependency>
My camel file has imported the bean configuration file.
Now when i deploy this into a standalone redhat-jboss-fuse-server it is working fine.
But after this i am not able to run it into my fuse ide. Is there any jar i am missing.
Please help me on this.