ग्रहण मेरी स्प्रिंग के applicationContext.xml में निम्न त्रुटियों को दिखा रहा है:वसंत-डीआईआर स्कीमा को ग्रहण क्यों नहीं कर सकता?
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dwr:configuration'. myappservlet-servlet.xml MyApp/src/main/webapp/WEB-INF line 23 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dwr:controller'. myappservlet-servlet.xml MyApp/src/main/webapp/WEB-INF line 21 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dwr:remote'. myappservlet-servlet.xml MyApp/src/main/webapp/WEB-INF line 41 XML Problem
जब मैं लाइन-आइटम त्रुटि पर मेरे माउस होवर करें, यह भी कहते हैं:
- schema_reference.4: Failed to read schema document 'http://www.directwebremoting.org/
schema/spring-dwr-3.0.xsd', because 1) could not find the document; 2) the document could not be
read; 3) the root element of the document is not <xsd:schema>.
मुझे लगता है कि इस बात की पुष्टि मूल तत्व वास्तव में < xsd: स्कीमा> है। जब मैं टाइप करके स्वत: पूर्ण का उपयोग < डीडब्ल्यूआर: विन्यास>, < डीडब्ल्यूआर: ग्रहण सही ढंग से मुझे < डीडब्ल्यूआर जैसे विभिन्न विकल्पों से पता चलता नियंत्रक>, आदि यह कैसे पता ग्रहण कर सकते हैं स्कीमा पढ़ने के बिना?
मैं बिना किसी मुद्दे के कई अलग-अलग नामस्थानों का उपयोग करता हूं; डीडब्लूआर स्कीमा एकमात्र ऐसा है जिसे हल नहीं किया जा रहा है।
<?xml version="1.0" encoding="utf-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.directwebremoting.org/schema/spring-dwr
http://www.directwebremoting.org/schema/spring-dwr-3.0.xsd"
default-autowire="byName">
मैं अपने classpath में नवीनतम डीडब्ल्यूआर 3.0.0.116.rc1 है: यहाँ घोषणा है। अगर मैं डीडब्ल्यूआर जार खोलने दरार, मैं META-INF/spring.handlers लगता है युक्त
http\://www.directwebremoting.org/schema/spring-dwr=org.directwebremoting.spring.DwrAnnotationNamespaceHandler
और META-INF/spring.schemas युक्त
http\://www.directwebremoting.org/schema/spring-dwr-2.0.xsd=org/directwebremoting/spring/spring-dwr-2.0.xsd
http\://www.directwebremoting.org/schema/spring-dwr-3.0.xsd=org/directwebremoting/spring/spring-dwr-3.0.xsd
की एस्केपिंग कोलन ने मुझे थोड़ा सा फेंक दिया, लेकिन मुझे लगता है कि यह सब सही है, अन्यथा हर किसी का डीडब्लूआर टूट जाएगा।
इससे पहले कि मैं डीडब्लूआर वेबसाइट से वास्तविक समय में इस विशेष स्कीमा को पकड़ रहा था, लेकिन जब मेरा उत्पादन सिस्टम दुर्घटनाग्रस्त हो गया तो मुझे थोड़ा सा पता चला क्योंकि डीडब्लूआर साइट डाउन थी।
क्या यह करने का कोई तरीका है जब .xsd .jar फ़ाइल के अंदर है? क्या '/ META-INF/spring.schemas' में कॉन्फ़िगरेशन पहले से ही इसका ख्याल रखेगा? – Stewart