That worked!! Thanks
"Mick Knutson" <[EMAIL PROTECTED]> 02-06-08 01:14 PM Please respond to users@cxf.apache.org To users@cxf.apache.org cc Subject Re: In Eclipse/MyEclipse getting "the contents of the element type 'beans' must match 'description?,(import|alias|bean)*'" while editting CXF.xml file This is the beginning of my cxf applicationContext: <?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:context="http://www.springframework.org/schema/context" xmlns:cxf="http://cxf.apache.org/core" 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://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd " default-autowire="byName" default-lazy-init="false" > Remove from yours: <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> On Mon, Jun 2, 2008 at 12:56 PM, <[EMAIL PROTECTED]> wrote: > 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 -- --- Thank You… Mick Knutson BASE Logic, inc. Website: http://baselogic.com Blog: http://baselogic.com/blog BLiNC Magazine: http://blincmagazine.com Linked IN: http://linkedin.com/in/mickknutson DJ Mick: http://djmick.com MySpace: http://myspace.com/mickknutson Tahoe: http://tahoe.baselogic.com