Announcement Announcement Module
Collapse
No announcement yet.
OXM validating file error: White spaces are required btwn publicId and systemId??? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • OXM validating file error: White spaces are required btwn publicId and systemId???

    I am getting this Compile error in webmvc-config.xml.

    The errors below were detected when validating the file "oxm" via file "webmvc-config.xml". In most cases these errors can be detected by validating "oxm" directly. However, it is possible that errors will only occur when oxm is validated in the context of webmvc-config.xml.

    Description Location
    White Spaces are required between publicId and systemId. Line 1


    How can I get rid of this error in my webmvc-config.xml?

    Here's my webmvc-config.xml:
    Code:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <beans xmlns="http://www.springframework.org/schema/beans" 
    	   xmlns:context="http://www.springframework.org/schema/context"
    	   xmlns:mvc="http://www.springframework.org/schema/mvc"
    	   xmlns:p="http://www.springframework.org/schema/p"
    	   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    	   xmlns:util="http://www.springframework.org/schema/util"
    	   xsi:schemaLocation="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/mvc
    	   					   http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
    	   					   http://www.springframework.org/schema/util
    	   					   http://www.springframework.org/schema/oxm
        					   http://www.springframework.org/schema/oxm/spring-oxm-3.0.xsd">
    				
    	<!-- The controllers are auto detected POJOs labeled with the @Controller annotation. -->
    	<context:component-scan base-package="com.bzinc.demoBackup" use-default-filters="false">
    		<context:include-filter expression="org.springframework.stereotype.Controller" type="annotation"/>
    	</context:component-scan>
    ......
    	 <bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
            <property name="messageConverters">
                 <util:list id="beanList"> 
                    <bean class="org.springframework.http.converter.xml.MarshallingHttpMessageConverter">
                        <constructor-arg ref="marshaller"/>
                    </bean>
                    <bean class="org.springframework.http.converter.StringHttpMessageConverter"/>
                  </util:list> 
            </property>
    	</bean>
    
    	<oxm:jaxb2-marshaller id="marshaller">
            <oxm:class-to-be-bound name="location.model.City"/>
    	</oxm:jaxb2-marshaller>
    Any ideas will be much appreciated.
Working...
X