You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by ravikantagarwal <ag...@gmail.com> on 2016/09/03 09:38:09 UTC

Websocket Integration in Karaf 3.0.3

I am trying to integrate the Websocket in Karaf 3.0.3

I have following feature installed:
<feature name="test-standard" description="Jobs - Standard Features"
version="${project.version}" resolver="(obr)">
        <feature>jdbc</feature>
        <feature>pax-jdbc-pool-dbcp2</feature>
        <feature>jndi</feature>
        <feature>openjpa</feature>
        <bundle
start-level="30">mvn:org.codehaus.jackson/jackson-core-asl/1.9.13</bundle>
        <bundle
start-level="30">mvn:org.codehaus.jackson/jackson-mapper-asl/1.9.13</bundle>
        <bundle
start-level="30">mvn:com.fasterxml.jackson.core/jackson-core/2.1.4</bundle>
        <bundle
start-level="30">mvn:com.fasterxml.jackson.core/jackson-annotations/2.1.4</bundle>
        <bundle
start-level="30">mvn:com.fasterxml.jackson.core/jackson-databind/2.1.4</bundle>
        <bundle start-level="30">mvn:commons-io/commons-io/2.4</bundle>
        <bundle
start-level="30">mvn:commons-fileupload/commons-fileupload/1.3.1</bundle>
        <feature version="3.2.11.RELEASE_1">spring</feature>
        <feature>spring-dm</feature>
        <feature version="3.2.11.RELEASE_1">spring-web</feature>
        <feature>spring-dm-web</feature>
        <feature version="3.2.11.RELEASE_1">spring-jdbc</feature>
        <feature version="3.2.11.RELEASE_1">spring-tx</feature>
        <feature>spring-security</feature>
        <feature version="4.1.2.RELEASE_1">spring-websocket</feature>
        <feature>webconsole</feature>
    </feature>


Also pom.xml has added the following dependency:
<dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-messaging</artifactId>
            <version>4.1.2.RELEASE</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-websocket</artifactId>
            <version>4.1.2.RELEASE</version>
        </dependency>

But every time when I deploy the kar, I get following error:

org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
Configuration problem: Unable to locate Spring NamespaceHandler for XML
schema namespace [http://www.springframework.org/schema/websocket]
Offending resource: URL
[bundle://227.0:0/WEB-INF/NotificationService-servlet.xml]

	at
org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)[143:org.apache.servicemix.bundles.spring-beans:3.2.11.RELEASE_1]
	at
org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)[143:org.apache.servicemix.bundles.spring-beans:3.2.11.RELEASE_1]
	at
org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80)[143:org.apache.servicemix.bundles.spring-beans:3.2.11.RELEASE_1]
	at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:318)[143:org.apache.servicemix.bundles.spring-beans:3.2.11.RELEASE_1]
	at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1435)[143:org.apache.servicemix.bundles.spring-beans:3.2.11.RELEASE_1]
	at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1428)[143:org.apache.servicemix.bundles.spring-beans:3.2.11.RELEASE_1]
	at
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:195)[143:org.apache.servicemix.bundles.spring-beans:3.2.11.RELEASE_1]
	at
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:139)[143:org.apache.servicemix.bundles.spring-beans:3.2.11.RELEASE_1]
	at
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:108)[143:org.apache.servicemix.bundles.spring-beans:3.2.11.RELEASE_1]
	at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493)[143:org.apache.servicemix.bundles.spring-beans:3.2.11.RELEASE_1]
	at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)[143:org.apache.servicemix.bundles.spring-beans:3.2.11.RELEASE_1]
	at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[143:org.apache.servicemix.bundles.spring-beans:3.2.11.RELEASE_1]
	at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)[143:org.apache.servicemix.bundles.spring-beans:3.2.11.RELEASE_1]
	at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)[143:org.apache.servicemix.bundles.spring-beans:3.2.11.RELEASE_1]
	at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)[143:org.apache.servicemix.bundles.spring-beans:3.2.11.RELEASE_1]
	at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)[143:org.apache.servicemix.bundles.spring-beans:3.2.11.RELEASE_1]
	at
org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:164)[148:org.springframework.osgi.core:1.2.1]
	at
org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:136)[148:org.springframework.osgi.core:1.2.1]
	at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)[145:org.apache.servicemix.bundles.spring-context:3.2.11.RELEASE_1]
	at
org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:539)[145:org.apache.servicemix.bundles.spring-context:3.2.11.RELEASE_1]
	at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)[145:org.apache.servicemix.bundles.spring-context:3.2.11.RELEASE_1]
	at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$301(AbstractDelegatedExecutionApplicationContext.java:69)[148:org.springframework.osgi.core:1.2.1]
	at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$1.run(AbstractDelegatedExecutionApplicationContext.java:186)[148:org.springframework.osgi.core:1.2.1]
	at
org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[148:org.springframework.osgi.core:1.2.1]
	at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.normalRefresh(AbstractDelegatedExecutionApplicationContext.java:182)[148:org.springframework.osgi.core:1.2.1]
	at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$NoDependenciesWaitRefreshExecutor.refresh(AbstractDelegatedExecutionApplicationContext.java:89)[148:org.springframework.osgi.core:1.2.1]
	at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)[148:org.springframework.osgi.core:1.2.1]
	at
org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:651)[153:org.apache.servicemix.bundles.spring-webmvc:3.2.11.RELEASE_1]
	at
org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:602)[153:org.apache.servicemix.bundles.spring-webmvc:3.2.11.RELEASE_1]
	at
org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:665)[153:org.apache.servicemix.bundles.spring-webmvc:3.2.11.RELEASE_1]
	at
org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:521)[153:org.apache.servicemix.bundles.spring-webmvc:3.2.11.RELEASE_1]
	at
org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:462)[153:org.apache.servicemix.bundles.spring-webmvc:3.2.11.RELEASE_1]
	at
org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)[153:org.apache.servicemix.bundles.spring-webmvc:3.2.11.RELEASE_1]
	at
javax.servlet.GenericServlet.init(GenericServlet.java:161)[60:org.apache.geronimo.specs.geronimo-servlet_3.0_spec:1.0.0]
	at
org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:532)[66:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
	... 33 more

Kindly suggest how I can resolve the same



--
View this message in context: http://karaf.922171.n3.nabble.com/Websocket-Integration-in-Karaf-3-0-3-tp4047853.html
Sent from the Karaf - User mailing list archive at Nabble.com.