Note that there are some explanatory texts on larger screens.

plurals
  1. POSpring unable to locate OSGi namespace handler
    primarykey
    data
    text
    <p>I have a spring MVC projet that runs on eclipse virgo OSGi platform. When I attempt to import an OSGi service using <code>&lt;osgi:reference&gt;</code> tag I get the following exception : </p> <pre><code>Servlet /Web threw load() exception org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/osgi] </code></pre> <p>This is my application context file : </p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;beans:beans xmlns="http://www.springframework.org/schema/mvc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:osgi="http://www.springframework.org/schema/osgi" xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd"&gt; &lt;annotation-driven /&gt; &lt;resources mapping="/resources/**" location="/resources/" /&gt; &lt;beans:bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt; &lt;beans:property name="prefix" value="/WEB-INF/views/" /&gt; &lt;beans:property name="suffix" value=".jsp" /&gt; &lt;/beans:bean&gt; &lt;context:component-scan base-package="com.apptivit.web" /&gt; &lt;osgi:reference id="entityService" interface="com.apptivit.db.service.AbstractEntityService"/&gt; &lt;/beans:beans&gt; </code></pre> <p>And finally in my MANIFEST.MF file I'm doing this : </p> <pre><code>Manifest-Version: 1.0 Export-Package: com.apptivit.web;uses:="org.springframework.stereotype ,org.springframework.ui,org.springframework.web.bind.annotation" Tool: Bundlor 1.0.0.RELEASE Import-Package: com.apptivit.db.service, org.apache.log4j, org.slf4j, org.springframework.context;version="[3.0.5.RELEASE,3.0.5.RELEASE]", org.springframework.stereotype, org.springframework.ui, org.springframework.web.bind.annotation, org.springframework.web.context, org.springframework.web.servlet, org.springframework.web.servlet.view Bundle-SymbolicName: webs Bundle-Version: 0.0.1 Bundle-Name: WebSample Bundle-Vendor: ApptivIT Import-Bundle: org.springframework.osgi.core;version="[1.2.1,1.2.1]", org.springframework.beans;version="[3.0.5.RELEASE,3.0.5.RELEASE]", org.springframework.core;version="[3.0.5.RELEASE,3.0.5.RELEASE]" </code></pre> <p>What am I doing wrong ???</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload