Issue Details (XML | Word | Printable)

Key: IDE-865
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Cannot Reproduce
Priority: Minor Minor
Assignee: Christian Dupuis
Reporter: zejun Wang
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Spring IDE

xmlns:dwr namespace validatin error in Spring IDE

Created: 08/May/08 12:37 AM   Updated: 17/Nov/08 05:57 AM
Component/s: None
Affects Version/s: 2.0.3
Fix Version/s: 2.0.5

Time Tracking:
Not Specified

Environment:
Eclipse Europa 3.3.1.1
JDK 1.5
Windows XP SP2
Spring 2.5.4
DWR 2.0.3



 Description  « Hide
When declear the the XML namespace xmlns:dwr in Spring IDE, For example:

<?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: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.directwebremoting.org/schema/spring-dwr http://www.directwebremoting.org/schema/spring-dwr-2.0.xsd">

Eclipse will report the following errors:
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dwr:configuration'.
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dwr:controller'.



 All   Comments   Work Log   Change History   FishEye   Builds      Sort Order: Ascending order - Click to sort in descending order
Christian Dupuis added a comment - 13/May/08 11:41 PM
I cannot reproduce this. Please make sure that you are connected to the Internet and Eclipse can download the XSD from http://www.directwebremoting.org/schema/spring-dwr-2.0.xsd.

Please note that there is no DWR support within Spring IDE. Once you have the XSD corrected imported you will get warnings like: Unable to locate Spring NamespaceHandler for element 'dwr:controller' of schema namespace 'http://www.directwebremoting.org/schema/spring-dwr'.

That basically means that the DWR team either needs to provide Eclipse support for their namespace or at the very least use the Spring tools annotation on their XSD.


zejun Wang added a comment - 19/May/08 07:09 AM
Thanks for your help!

My company is behind a firewall and it blocks the Eclipse download the XSD file from the internet. That's the reason xmlns:dwr namespace validatin error is displayed.


Christian Dupuis added a comment - 22/May/08 09:38 PM
You can manually download the file and add that to the XSD catalog of Eclipse. That should remove the validation problems even behind a firewall.

Batbayar Bazarragchaa added a comment - 17/Nov/08 05:57 AM
I got same issue on tomcat 6 without using eclipse.

Stack trace is:
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dwr:controller'.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:410)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3165)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1898)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyElement(XMLSchemaValidator.java:705)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:377)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:225)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:78)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:361)