I am trying to edit a beans.xml file using Eclipse/MyEclipse and I get the 


Severity and Description        Path    Resource        Location Creation 
Time    Id
Attribute "xmlns:jaxws" must be declared for element type "beans". MMI 
CXF/webapps/mmi/WEB-INF application-cxf.xml     line 8  1212436442518 
2354561
Attribute "xmlns:xsi" must be declared for element type "beans". MMI 
CXF/webapps/mmi/WEB-INF application-cxf.xml     line 8  1212436442518 
2354560
Attribute "xmlns" must be declared for element type "beans".    MMI 
CXF/webapps/mmi/WEB-INF application-cxf.xml     line 8  1212436442518 
2354559
Attribute "xsi:schemaLocation" must be declared for element type "beans". 
MMI CXF/webapps/mmi/WEB-INF     application-cxf.xml     line 8 
1212436442518   2354562
The content of element type "beans" must match 
"(description?,(import|alias|bean)*)".  MMI CXF/webapps/mmi/WEB-INF 
application-cxf.xml     line 8  1212436442518   2354563

This is the file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" 
"http://www.springframework.org/dtd/spring-beans.dtd";>

<!-- Configuration File for CXF -->
<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:jaxws="http://cxf.apache.org/jaxws";
       xsi:schemaLocation="http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd 
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd";>
 
    <import resource="classpath:META-INF/cxf/cxf.xml" />
    <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
    <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />

    <jaxws:endpoint id="helloWorld" 
                    implementor="demo.spring.HelloWorldImpl" 
                    address="/HelloWorld" />

</beans>


What do I need to tell Eclipse/MyEclipse so it does not complain about it? 
I think the editor is trying to process Spring's XSD and there are no 
attributes that match "xmlns" in the beans element.

Thanks,

Juan

Reply via email to