का पता लगाने में असमर्थ वसंत मेरे पास वसंत एमवीसी प्रोजेक्ट है जो ग्रहण ओर्गजी प्लेटफ़ॉर्म पर चलता है। जब मैं <osgi:reference>
टैग मैं निम्नलिखित अपवाद का उपयोग कर एक OSGi सेवा आयात करने का प्रयास:ओएसजीआई नेमस्पेस हैंडलर
<?xml version="1.0" encoding="UTF-8"?>
<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">
<annotation-driven />
<resources mapping="/resources/**" location="/resources/" />
<beans:bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<beans:property name="prefix" value="/WEB-INF/views/" />
<beans:property name="suffix" value=".jsp" />
</beans:bean>
<context:component-scan base-package="com.apptivit.web" />
<osgi:reference id="entityService" interface="com.apptivit.db.service.AbstractEntityService"/>
</beans:beans>
और अंत में मेरी MANIFEST.MF फ़ाइल में मैं कर रहा हूँ:
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]
यह मेरा आवेदन प्रसंग फ़ाइल है ऐसा करना:
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]"
मैं क्या गलत कर रहा हूं ???
मुझे समझ में नहीं आता कि यह प्रश्न क्यों कम किया गया है ... –
मुझे भी। किसी ने मुझे जवाब नहीं दिया और मैं अभी भी समाधान के बिना हूं :( –
@HoucemBerrayana, प्रश्न साल पहले और अधिक पोस्ट किया गया था। क्या आपने समस्या का समाधान किया? यदि हां, तो क्या आप साझा कर सकते हैं कि आपने यह कैसे किया? क्या जार http://www.springframework.org/schema/osgi के लिए आवश्यक नेमस्पेस रीसोलवर? –