Hi I think you need upgrade the Spring version to 2.0. CXF internal components configuration is aready the Spring 2.0 formate.
BTW, if you do not use the servlet transport , you can use the CXFBusFactory instead of SpringBusFactory. Here[1] are some discussion about it. [1]http://www.nabble.com/CXF-without-Spring--tf4470086.html#a12745335 Willem. -----Original Message----- From: volume [mailto:[EMAIL PROTECTED] Sent: Thu 9/27/2007 20:32 To: [email protected] Subject: Re: Spring 1.2.7 "beans" configuration problems, XFire -> CXF migration. Hi Jeff, When trying the following <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans> <import resource="/cxf/cxf.xml" /> <import resource="/cxf/cxf-extension-soap.xml" /> <import resource="/cxf/cxf-servlet.xml" /> <bean class="uk.ltd.singles.datingengine.remoting.http.TestServiceImpl" > </bean> </beans> then exception occurs while parsing imported resources - 15:15:53,703 [ERROR] [org.springframework.web.context.ContextLoader] - Context initialization failed org.springframework.beans.factory.BeanDefinitionStoreException: Line 26 in XML document from ServletContext resource [/WEB-INF/cxf/cxf.xml] is invalid; nested exception is org.xml.sax.SAXParseException: Attribute "xmlns" must be declared for element type "beans". org.xml.sax.SAXParseException: Attribute "xmlns" must be declared for element type "beans". .... and the problem remains. Jeff.Yu wrote: > > Hi, > > AFAIK, You can not use the xml config extension "<jaxws:endpoint>..." > tag by using spring 1.x version. You need to translate it to the > traditional xml config > > <bean ...> > <....> > </bean> > > I haven't tried it, but you can give it a shot this way. > > Thanks > Jeff > > volume wrote: >> Hi, all! >> >> Now I'm trying to migrate from XFire 1.1.2 to CXF 2.0.2. >> All is under Spring 1.2.7, app-server Tomcat 5.5.14, Java - 1.5.0_09-b03 >>...... >> So, the questions are: >> 1) Is it possible to configure CFX with Spring less than 2.0 ? >> 2) Noticeable errors in code? >> >> Any help would be appreciated, thanks. >> > > -- View this message in context: http://www.nabble.com/Spring-1.2.7-%22beans%22-configuration-problems%2C-XFire--%3E-CXF-migration.-tf4527535.html#a12920280 Sent from the cxf-user mailing list archive at Nabble.com.
