You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by mule1 <ua...@yahoo.com> on 2007/11/28 19:58:03 UTC

error upgrading to 2.0.3 with cxf.xml

Hello,

I am using cxf.xml to configure all my beans and everything worked fine in
2.0.2. However, on upgrade to 2.0.3, while deploying the application, I get
these errors:

2007-11-28 13:58:06,230 DEBUG [main] (AbstractApplicationContext.java:636) -
Unable to locate MessageSource with name 'messageSource': using default
[org.springframework.context.support.DelegatingMessageSource@f864fe]
2007-11-28 13:58:06,230 DEBUG [main] (AbstractApplicationContext.java:636) -
Unable to locate MessageSource with name 'messageSource': using default
[org.springframework.context.support.DelegatingMessageSource@f864fe]
2007-11-28 13:58:06,230 DEBUG [main] (AbstractApplicationContext.java:660) -
Unable to locate ApplicationEventMulticaster with name
'applicationEventMulticaster': using default
[org.springframework.context.event.SimpleApplicationEventMulticaster@1ae9aaa]
2007-11-28 13:58:06,230 DEBUG [main] (AbstractApplicationContext.java:660) -
Unable to locate ApplicationEventMulticaster with name
'applicationEventMulticaster': using default
[org.springframework.context.event.SimpleApplicationEventMulticaster@1ae9aaa]
2007-11-28 13:58:06,240  INFO [main] (AbstractApplicationContext.java:400) -
Refreshing org.apache.cxf.bus.spring.BusApplicationContext@d9896e: display
name [org.apache.cxf.bus.spring.BusApplicationContext@d9896e]; startup date
[Wed Nov 28 13:58:06 EST 2007]; root of context hierarchy
2007-11-28 13:58:06,240  INFO [main] (AbstractApplicationContext.java:400) -
Refreshing org.apache.cxf.bus.spring.BusApplicationContext@d9896e: display
name [org.apache.cxf.bus.spring.BusApplicationContext@d9896e]; startup date
[Wed Nov 28 13:58:06 EST 2007]; root of context hierarchy
............
Nov 28, 2007 1:49:31 PM org.apache.cxf.configuration.spring.ConfigurerImpl
<init
>
WARNING: Failed to create application context.
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected
excep
tion parsing XML document from class path resource [cxf.xml]; nested
exception is java.lang.StackOverflowError
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:385)
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:313)
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:290)
        at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)
        at
org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:108)


Has anyone seen this problem?
-- 
View this message in context: http://www.nabble.com/error-upgrading-to-2.0.3-with-cxf.xml-tf4891749.html#a14007776
Sent from the cxf-user mailing list archive at Nabble.com.


RE: error upgrading to 2.0.3 with cxf.xml

Posted by Glen Mazza <gl...@verizon.net>.
Am Montag, den 03.12.2007, 05:43 -0800 schrieb mule1:

> Hello,
> 
> Yes I have looked at that configuration documentation at :
> http://cwiki.apache.org/CXF20DOC/configuration.html and I don't have my own
> cxf-servlet.xml defined at all. The one referenced in cxf.xml is the cxf's
> import.
> 
> My configuration is very similar and simple. 
> 1. In my web.xml, I have added:
>  <servlet>
>       <servlet-name>cxf</servlet-name>
>      
> <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
>       <load-on-startup>2</load-on-startup>
>    </servlet>
> 
> 2. I have defined my own cxf.xml in classpath with only these following
> lines for testing out this issue with 2.0.3 upgrade. I have removed all my
> configuration from cxf.xml to test out the issue:
> .......

There's two ways given on the config page (under "server configuration
files" section) you reference above for getting your web service to
work:

1.) use the cxf-servlet.xml

2.) use a Spring application context.

While it is true in certain cases you might be able to get it to work
with just a cxf.xml file, you haven't in your case here, so I would
recommend therefore switching to one of the two above "standard"
methods; both of them have examples provided.

HTH,
Glen



RE: error upgrading to 2.0.3 with cxf.xml

Posted by mule1 <ua...@yahoo.com>.
Hello,

Yes I have looked at that configuration documentation at :
http://cwiki.apache.org/CXF20DOC/configuration.html and I don't have my own
cxf-servlet.xml defined at all. The one referenced in cxf.xml is the cxf's
import.

My configuration is very similar and simple. 
1. In my web.xml, I have added:
 <servlet>
      <servlet-name>cxf</servlet-name>
     
<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
      <load-on-startup>2</load-on-startup>
   </servlet>

2. I have defined my own cxf.xml in classpath with only these following
lines for testing out this issue with 2.0.3 upgrade. I have removed all my
configuration from cxf.xml to test out the issue:
.......
<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-extension-xml.xml"/> 
        <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/> 

3. For upgrade to 2.0.3 from 2.0.2, I changed the necessary new libs and
restart my application. It goes into never ending loop trying load the beans
- I am not really sure what is happening:
Nov 28, 2007 1:49:31 PM org.apache.cxf.configuration.spring.ConfigurerImpl
<init 
> 
WARNING: Failed to create application context. 
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected
excep 
tion parsing XML document from class path resource [cxf.xml]; nested
exception is java.lang.StackOverflowError 
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:385) 
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:313) 
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:290) 
        at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142) 
        at
org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:108) 

It just seems that in 2.0.3's META-INF/cxf/cxf.xml, these new lines are
added:
    <bean id="org.apache.cxf.configuration.Configurer" 
    	class="org.apache.cxf.configuration.spring.ConfigurerImpl">
    </bean>   

and something is making some circular references while loading spring beans?
I am still using spring 2.0.6.




-- 
View this message in context: http://www.nabble.com/error-upgrading-to-2.0.3-with-cxf.xml-tf4891749.html#a14130243
Sent from the cxf-user mailing list archive at Nabble.com.


RE: error upgrading to 2.0.3 with cxf.xml

Posted by Glen Mazza <gl...@verizon.net>.
Am Freitag, den 30.11.2007, 11:20 -0500 schrieb Benson Margulies:
> I don't think that you should ever include cxf-servlet.xml, but I could
> be confused. Are you using the embedded jetty or deploying using the cxf
> servlet in a container? 
> 

Be careful here, this gets very confusing.  There are *two*
cxf-servlet.xml's unrelated to each other.  One is the cxf-servlet.xml
file that is kept in the WEB-INF directory that is read by the
CXFServlet class and loads all CXF modules. The other is a specific CXF
module manually loaded by a Spring application context file (if you're
using Spring config instead of the cxf-servlet.xml file).  You're
referring to the one, the original poster to the other.

Server Configuration Files here has more info:
http://cwiki.apache.org/CXF20DOC/configuration.html

Glen


> > -----Original Message-----
> > From: mule1 [mailto:uap001@yahoo.com] 
> > Sent: Friday, November 30, 2007 11:17 AM
> > To: cxf-user@incubator.apache.org
> > Subject: Re: error upgrading to 2.0.3 with cxf.xml
> > 
> > 
> > I am really stuck with this upgrade problem from 2.0.2 to 
> > 2.0.3 - Can someone provide input for this? I need to upgrade 
> > to 2.0.3 for some issues that are fixed in 2.0.3.
> > 
> > thanks.
> > 
> > 
> > mule1 wrote:
> > > 
> > > even with just the following in cxf.xml, I get those errors.
> > > 
> > > <code>
> > > <beans xmlns="http://www.springframework.org/schema/beans"
> > > 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > > 	xmlns:aop="http://www.springframework.org/schema/aop"
> > > 	xmlns:util="http://www.springframework.org/schema/util"
> > > 	xmlns:tx="http://www.springframework.org/schema/tx"
> > > 	xmlns:jaxws="http://cxf.apache.org/jaxws"
> > > 	xmlns:simple="http://cxf.apache.org/simple"
> > > 	xsi:schemaLocation="http://www.springframework.org/schema/beans
> > > http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
> > >            http://www.springframework.org/schema/tx
> > > http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
> > >            http://www.springframework.org/schema/util
> > > http://www.springframework.org/schema/util/spring-util-2.0.xsd
> > >            http://www.springframework.org/schema/aop
> > > http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
> > >            http://cxf.apache.org/simple 
> > > http://cxf.apache.org/schemas/simple.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-extension-xml.xml"/>
> > > 	<import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
> > > 
> > > 
> > > 	
> > > </beans>
> > > </code>
> > > 
> > > If I remove all those imports, the application starts up, 
> > but then I 
> > > don't have the cxf beans loaded. I need some guidance what I am 
> > > missing in my upgrade from 2.0.2 to 2.0.3.
> > > 
> > > mule1 wrote:
> > >> 
> > >> Hello,
> > >> 
> > >> I am using cxf.xml to configure all my beans and everything worked 
> > >> fine in 2.0.2. However, on upgrade to 2.0.3, while deploying the 
> > >> application, I get these errors:
> > >> 



RE: error upgrading to 2.0.3 with cxf.xml

Posted by Benson Margulies <bi...@basistech.com>.
I don't think that you should ever include cxf-servlet.xml, but I could
be confused. Are you using the embedded jetty or deploying using the cxf
servlet in a container? 

> -----Original Message-----
> From: mule1 [mailto:uap001@yahoo.com] 
> Sent: Friday, November 30, 2007 11:17 AM
> To: cxf-user@incubator.apache.org
> Subject: Re: error upgrading to 2.0.3 with cxf.xml
> 
> 
> I am really stuck with this upgrade problem from 2.0.2 to 
> 2.0.3 - Can someone provide input for this? I need to upgrade 
> to 2.0.3 for some issues that are fixed in 2.0.3.
> 
> thanks.
> 
> 
> mule1 wrote:
> > 
> > even with just the following in cxf.xml, I get those errors.
> > 
> > <code>
> > <beans xmlns="http://www.springframework.org/schema/beans"
> > 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > 	xmlns:aop="http://www.springframework.org/schema/aop"
> > 	xmlns:util="http://www.springframework.org/schema/util"
> > 	xmlns:tx="http://www.springframework.org/schema/tx"
> > 	xmlns:jaxws="http://cxf.apache.org/jaxws"
> > 	xmlns:simple="http://cxf.apache.org/simple"
> > 	xsi:schemaLocation="http://www.springframework.org/schema/beans
> > http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
> >            http://www.springframework.org/schema/tx
> > http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
> >            http://www.springframework.org/schema/util
> > http://www.springframework.org/schema/util/spring-util-2.0.xsd
> >            http://www.springframework.org/schema/aop
> > http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
> >            http://cxf.apache.org/simple 
> > http://cxf.apache.org/schemas/simple.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-extension-xml.xml"/>
> > 	<import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
> > 
> > 
> > 	
> > </beans>
> > </code>
> > 
> > If I remove all those imports, the application starts up, 
> but then I 
> > don't have the cxf beans loaded. I need some guidance what I am 
> > missing in my upgrade from 2.0.2 to 2.0.3.
> > 
> > mule1 wrote:
> >> 
> >> Hello,
> >> 
> >> I am using cxf.xml to configure all my beans and everything worked 
> >> fine in 2.0.2. However, on upgrade to 2.0.3, while deploying the 
> >> application, I get these errors:
> >> 
> >> 2007-11-28 13:58:06,230 DEBUG [main]
> >> (AbstractApplicationContext.java:636) - Unable to locate 
> >> MessageSource with name 'messageSource': using default 
> >> 
> [org.springframework.context.support.DelegatingMessageSource@f864fe]
> >> 2007-11-28 13:58:06,230 DEBUG [main]
> >> (AbstractApplicationContext.java:636) - Unable to locate 
> >> MessageSource with name 'messageSource': using default 
> >> 
> [org.springframework.context.support.DelegatingMessageSource@f864fe]
> >> 2007-11-28 13:58:06,230 DEBUG [main]
> >> (AbstractApplicationContext.java:660) - Unable to locate 
> >> ApplicationEventMulticaster with name 
> 'applicationEventMulticaster':
> >> using default
> >> 
> [org.springframework.context.event.SimpleApplicationEventMulticaster@
> >> 1ae9aaa]
> >> 2007-11-28 13:58:06,230 DEBUG [main]
> >> (AbstractApplicationContext.java:660) - Unable to locate 
> >> ApplicationEventMulticaster with name 
> 'applicationEventMulticaster':
> >> using default
> >> 
> [org.springframework.context.event.SimpleApplicationEventMulticaster@
> >> 1ae9aaa]
> >> 2007-11-28 13:58:06,240  INFO [main]
> >> (AbstractApplicationContext.java:400) - Refreshing
> >> org.apache.cxf.bus.spring.BusApplicationContext@d9896e: 
> display name 
> >> [org.apache.cxf.bus.spring.BusApplicationContext@d9896e]; startup 
> >> date [Wed Nov 28 13:58:06 EST 2007]; root of context hierarchy
> >> 2007-11-28 13:58:06,240  INFO [main]
> >> (AbstractApplicationContext.java:400) - Refreshing
> >> org.apache.cxf.bus.spring.BusApplicationContext@d9896e: 
> display name 
> >> [org.apache.cxf.bus.spring.BusApplicationContext@d9896e]; startup 
> >> date [Wed Nov 28 13:58:06 EST 2007]; root of context hierarchy 
> >> ............
> >> Nov 28, 2007 1:49:31 PM
> >> org.apache.cxf.configuration.spring.ConfigurerImpl <init
> >>>
> >> WARNING: Failed to create application context.
> >> org.springframework.beans.factory.BeanDefinitionStoreException:
> >> Unexpected excep
> >> tion parsing XML document from class path resource 
> [cxf.xml]; nested 
> >> exception is java.lang.StackOverflowError
> >>         at
> >> 
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.
> doLoadBeanDefinitions(XmlBeanDefinitionReader.java:385)
> >>         at
> >> 
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.
> loadBeanDefinitions(XmlBeanDefinitionReader.java:313)
> >>         at
> >> 
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.
> loadBeanDefinitions(XmlBeanDefinitionReader.java:290)
> >>         at
> >> 
> org.springframework.beans.factory.support.AbstractBeanDefiniti
> onReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)
> >>         at
> >> 
> org.springframework.context.support.AbstractXmlApplicationContext.loa
> >> dBeanDefinitions(AbstractXmlApplicationContext.java:108)
> >> 
> >> 
> >> Has anyone seen this problem?
> >> 
> > 
> > 
> 
> --
> View this message in context: 
> http://www.nabble.com/error-upgrading-to-2.0.3-with-cxf.xml-tf
4891749.html#a14077901
> Sent from the cxf-user mailing list archive at Nabble.com.
> 
> 

Re: error upgrading to 2.0.3 with cxf.xml

Posted by Jeff Yu <je...@gmail.com>.
It seems to me more than being caused by spring version, am not sure which
spring version are you used in your classpath..
AFAIK, cxf-2.0.3 shipped with spring 2.0.6..

Thanks
Jeff

On Dec 1, 2007 12:17 AM, mule1 <ua...@yahoo.com> wrote:

>
> I am really stuck with this upgrade problem from 2.0.2 to 2.0.3 - Can
> someone
> provide input for this? I need to upgrade to 2.0.3 for some issues that
> are
> fixed in 2.0.3.
>
> thanks.
>
>
> mule1 wrote:
> >
> > even with just the following in cxf.xml, I get those errors.
> >
> > <code>
> > <beans xmlns="http://www.springframework.org/schema/beans"
> >       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >       xmlns:aop="http://www.springframework.org/schema/aop"
> >       xmlns:util="http://www.springframework.org/schema/util"
> >       xmlns:tx="http://www.springframework.org/schema/tx"
> >       xmlns:jaxws="http://cxf.apache.org/jaxws"
> >       xmlns:simple="http://cxf.apache.org/simple"
> >       xsi:schemaLocation="http://www.springframework.org/schema/beans
> > http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
> >            http://www.springframework.org/schema/tx
> > http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
> >            http://www.springframework.org/schema/util
> > http://www.springframework.org/schema/util/spring-util-2.0.xsd
> >            http://www.springframework.org/schema/aop
> > http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
> >            http://cxf.apache.org/simple
> > http://cxf.apache.org/schemas/simple.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-extension-xml.xml"/>
> >       <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
> >
> >
> >
> > </beans>
> > </code>
> >
> > If I remove all those imports, the application starts up, but then I
> don't
> > have the cxf beans loaded. I need some guidance what I am missing in my
> > upgrade from 2.0.2 to 2.0.3.
> >
> > mule1 wrote:
> >>
> >> Hello,
> >>
> >> I am using cxf.xml to configure all my beans and everything worked fine
> >> in 2.0.2. However, on upgrade to 2.0.3, while deploying the
> application,
> >> I get these errors:
> >>
> >> 2007-11-28 13:58:06,230 DEBUG [main]
> >> (AbstractApplicationContext.java:636) - Unable to locate MessageSource
> >> with name 'messageSource': using default
> >> [org.springframework.context.support.DelegatingMessageSource@f864fe]
> >> 2007-11-28 13:58:06,230 DEBUG [main]
> >> (AbstractApplicationContext.java:636) - Unable to locate MessageSource
> >> with name 'messageSource': using default
> >> [org.springframework.context.support.DelegatingMessageSource@f864fe]
> >> 2007-11-28 13:58:06,230 DEBUG [main]
> >> (AbstractApplicationContext.java:660) - Unable to locate
> >> ApplicationEventMulticaster with name 'applicationEventMulticaster':
> >> using default
> >> [
> org.springframework.context.event.SimpleApplicationEventMulticaster@1ae9aaa
> ]
> >> 2007-11-28 13:58:06,230 DEBUG [main]
> >> (AbstractApplicationContext.java:660) - Unable to locate
> >> ApplicationEventMulticaster with name 'applicationEventMulticaster':
> >> using default
> >> [
> org.springframework.context.event.SimpleApplicationEventMulticaster@1ae9aaa
> ]
> >> 2007-11-28 13:58:06,240  INFO [main]
> >> (AbstractApplicationContext.java:400) - Refreshing
> >> org.apache.cxf.bus.spring.BusApplicationContext@d9896e: display name
> >> [org.apache.cxf.bus.spring.BusApplicationContext@d9896e]; startup date
> >> [Wed Nov 28 13:58:06 EST 2007]; root of context hierarchy
> >> 2007-11-28 13:58:06,240  INFO [main]
> >> (AbstractApplicationContext.java:400) - Refreshing
> >> org.apache.cxf.bus.spring.BusApplicationContext@d9896e: display name
> >> [org.apache.cxf.bus.spring.BusApplicationContext@d9896e]; startup date
> >> [Wed Nov 28 13:58:06 EST 2007]; root of context hierarchy
> >> ............
> >> Nov 28, 2007 1:49:31 PM
> >> org.apache.cxf.configuration.spring.ConfigurerImpl <init
> >>>
> >> WARNING: Failed to create application context.
> >> org.springframework.beans.factory.BeanDefinitionStoreException:
> >> Unexpected excep
> >> tion parsing XML document from class path resource [cxf.xml]; nested
> >> exception is java.lang.StackOverflowError
> >>         at
> >>
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions
> (XmlBeanDefinitionReader.java:385)
> >>         at
> >>
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
> (XmlBeanDefinitionReader.java:313)
> >>         at
> >>
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
> (XmlBeanDefinitionReader.java:290)
> >>         at
> >>
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions
> (AbstractBeanDefinitionReader.java:142)
> >>         at
> >>
> org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions
> (AbstractXmlApplicationContext.java:108)
> >>
> >>
> >> Has anyone seen this problem?
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/error-upgrading-to-2.0.3-with-cxf.xml-tf4891749.html#a14077901
> Sent from the cxf-user mailing list archive at Nabble.com.
>
>


-- 
Thanks
Jeff

Re: error upgrading to 2.0.3 with cxf.xml

Posted by mule1 <ua...@yahoo.com>.
I am really stuck with this upgrade problem from 2.0.2 to 2.0.3 - Can someone
provide input for this? I need to upgrade to 2.0.3 for some issues that are
fixed in 2.0.3.

thanks.


mule1 wrote:
> 
> even with just the following in cxf.xml, I get those errors.
> 
> <code>
> <beans xmlns="http://www.springframework.org/schema/beans"
> 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xmlns:aop="http://www.springframework.org/schema/aop"
> 	xmlns:util="http://www.springframework.org/schema/util"
> 	xmlns:tx="http://www.springframework.org/schema/tx"
> 	xmlns:jaxws="http://cxf.apache.org/jaxws"
> 	xmlns:simple="http://cxf.apache.org/simple"
> 	xsi:schemaLocation="http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
>            http://www.springframework.org/schema/tx
> http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
>            http://www.springframework.org/schema/util
> http://www.springframework.org/schema/util/spring-util-2.0.xsd
>            http://www.springframework.org/schema/aop
> http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
>            http://cxf.apache.org/simple
> http://cxf.apache.org/schemas/simple.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-extension-xml.xml"/>
> 	<import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
> 
> 
> 	
> </beans>
> </code>
> 
> If I remove all those imports, the application starts up, but then I don't
> have the cxf beans loaded. I need some guidance what I am missing in my
> upgrade from 2.0.2 to 2.0.3.
> 
> mule1 wrote:
>> 
>> Hello,
>> 
>> I am using cxf.xml to configure all my beans and everything worked fine
>> in 2.0.2. However, on upgrade to 2.0.3, while deploying the application,
>> I get these errors:
>> 
>> 2007-11-28 13:58:06,230 DEBUG [main]
>> (AbstractApplicationContext.java:636) - Unable to locate MessageSource
>> with name 'messageSource': using default
>> [org.springframework.context.support.DelegatingMessageSource@f864fe]
>> 2007-11-28 13:58:06,230 DEBUG [main]
>> (AbstractApplicationContext.java:636) - Unable to locate MessageSource
>> with name 'messageSource': using default
>> [org.springframework.context.support.DelegatingMessageSource@f864fe]
>> 2007-11-28 13:58:06,230 DEBUG [main]
>> (AbstractApplicationContext.java:660) - Unable to locate
>> ApplicationEventMulticaster with name 'applicationEventMulticaster':
>> using default
>> [org.springframework.context.event.SimpleApplicationEventMulticaster@1ae9aaa]
>> 2007-11-28 13:58:06,230 DEBUG [main]
>> (AbstractApplicationContext.java:660) - Unable to locate
>> ApplicationEventMulticaster with name 'applicationEventMulticaster':
>> using default
>> [org.springframework.context.event.SimpleApplicationEventMulticaster@1ae9aaa]
>> 2007-11-28 13:58:06,240  INFO [main]
>> (AbstractApplicationContext.java:400) - Refreshing
>> org.apache.cxf.bus.spring.BusApplicationContext@d9896e: display name
>> [org.apache.cxf.bus.spring.BusApplicationContext@d9896e]; startup date
>> [Wed Nov 28 13:58:06 EST 2007]; root of context hierarchy
>> 2007-11-28 13:58:06,240  INFO [main]
>> (AbstractApplicationContext.java:400) - Refreshing
>> org.apache.cxf.bus.spring.BusApplicationContext@d9896e: display name
>> [org.apache.cxf.bus.spring.BusApplicationContext@d9896e]; startup date
>> [Wed Nov 28 13:58:06 EST 2007]; root of context hierarchy
>> ............
>> Nov 28, 2007 1:49:31 PM
>> org.apache.cxf.configuration.spring.ConfigurerImpl <init
>>>
>> WARNING: Failed to create application context.
>> org.springframework.beans.factory.BeanDefinitionStoreException:
>> Unexpected excep
>> tion parsing XML document from class path resource [cxf.xml]; nested
>> exception is java.lang.StackOverflowError
>>         at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:385)
>>         at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:313)
>>         at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:290)
>>         at
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)
>>         at
>> org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:108)
>> 
>> 
>> Has anyone seen this problem?
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/error-upgrading-to-2.0.3-with-cxf.xml-tf4891749.html#a14077901
Sent from the cxf-user mailing list archive at Nabble.com.


Re: error upgrading to 2.0.3 with cxf.xml

Posted by mule1 <ua...@yahoo.com>.
even with just the following in cxf.xml, I get those errors.

<code>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:aop="http://www.springframework.org/schema/aop"
	xmlns:util="http://www.springframework.org/schema/util"
	xmlns:tx="http://www.springframework.org/schema/tx"
	xmlns:jaxws="http://cxf.apache.org/jaxws"
	xmlns:simple="http://cxf.apache.org/simple"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
           http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
           http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-2.0.xsd
           http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
           http://cxf.apache.org/simple
http://cxf.apache.org/schemas/simple.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-extension-xml.xml"/>
	<import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>


	
</beans>
</code>

If I remove all those imports, the application starts up, but then I don't
have the cxf beans loaded. I need some guidance what I am missing in my
upgrade from 2.0.2 to 2.0.3.

mule1 wrote:
> 
> Hello,
> 
> I am using cxf.xml to configure all my beans and everything worked fine in
> 2.0.2. However, on upgrade to 2.0.3, while deploying the application, I
> get these errors:
> 
> 2007-11-28 13:58:06,230 DEBUG [main] (AbstractApplicationContext.java:636)
> - Unable to locate MessageSource with name 'messageSource': using default
> [org.springframework.context.support.DelegatingMessageSource@f864fe]
> 2007-11-28 13:58:06,230 DEBUG [main] (AbstractApplicationContext.java:636)
> - Unable to locate MessageSource with name 'messageSource': using default
> [org.springframework.context.support.DelegatingMessageSource@f864fe]
> 2007-11-28 13:58:06,230 DEBUG [main] (AbstractApplicationContext.java:660)
> - Unable to locate ApplicationEventMulticaster with name
> 'applicationEventMulticaster': using default
> [org.springframework.context.event.SimpleApplicationEventMulticaster@1ae9aaa]
> 2007-11-28 13:58:06,230 DEBUG [main] (AbstractApplicationContext.java:660)
> - Unable to locate ApplicationEventMulticaster with name
> 'applicationEventMulticaster': using default
> [org.springframework.context.event.SimpleApplicationEventMulticaster@1ae9aaa]
> 2007-11-28 13:58:06,240  INFO [main] (AbstractApplicationContext.java:400)
> - Refreshing org.apache.cxf.bus.spring.BusApplicationContext@d9896e:
> display name [org.apache.cxf.bus.spring.BusApplicationContext@d9896e];
> startup date [Wed Nov 28 13:58:06 EST 2007]; root of context hierarchy
> 2007-11-28 13:58:06,240  INFO [main] (AbstractApplicationContext.java:400)
> - Refreshing org.apache.cxf.bus.spring.BusApplicationContext@d9896e:
> display name [org.apache.cxf.bus.spring.BusApplicationContext@d9896e];
> startup date [Wed Nov 28 13:58:06 EST 2007]; root of context hierarchy
> ............
> Nov 28, 2007 1:49:31 PM org.apache.cxf.configuration.spring.ConfigurerImpl
> <init
>>
> WARNING: Failed to create application context.
> org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected
> excep
> tion parsing XML document from class path resource [cxf.xml]; nested
> exception is java.lang.StackOverflowError
>         at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:385)
>         at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:313)
>         at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:290)
>         at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)
>         at
> org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:108)
> 
> 
> Has anyone seen this problem?
> 

-- 
View this message in context: http://www.nabble.com/error-upgrading-to-2.0.3-with-cxf.xml-tf4891749.html#a14007780
Sent from the cxf-user mailing list archive at Nabble.com.


Re: error upgrading to 2.0.3 with cxf.xml

Posted by mule1 <ua...@yahoo.com>.
It seems in 2.0.3, the META-INF/cxf/cxf.xml file has these lines added:
<bean id="org.apache.cxf.configuration.Configurer" 
    	class="org.apache.cxf.configuration.spring.ConfigurerImpl">
    </bean> 

and the class ConfigurerImpl has the default config filename as cxf.xml. I
have my configuration filename also as cxf.xml where I am importing "<import
resource="classpath:META-INF/cxf/cxf.xml"/>" - and it just seems that the
addition of that bean definition in the META-INF/cxf/cxf.xml is causing
never ending circular references. Please help to figure out what I need to
resolve this issue.


mule1 wrote:
> 
> Hello,
> 
> I am using cxf.xml to configure all my beans and everything worked fine in
> 2.0.2. However, on upgrade to 2.0.3, while deploying the application, I
> get these errors:
> 
> 2007-11-28 13:58:06,230 DEBUG [main] (AbstractApplicationContext.java:636)
> - Unable to locate MessageSource with name 'messageSource': using default
> [org.springframework.context.support.DelegatingMessageSource@f864fe]
> 2007-11-28 13:58:06,230 DEBUG [main] (AbstractApplicationContext.java:636)
> - Unable to locate MessageSource with name 'messageSource': using default
> [org.springframework.context.support.DelegatingMessageSource@f864fe]
> 2007-11-28 13:58:06,230 DEBUG [main] (AbstractApplicationContext.java:660)
> - Unable to locate ApplicationEventMulticaster with name
> 'applicationEventMulticaster': using default
> [org.springframework.context.event.SimpleApplicationEventMulticaster@1ae9aaa]
> 2007-11-28 13:58:06,230 DEBUG [main] (AbstractApplicationContext.java:660)
> - Unable to locate ApplicationEventMulticaster with name
> 'applicationEventMulticaster': using default
> [org.springframework.context.event.SimpleApplicationEventMulticaster@1ae9aaa]
> 2007-11-28 13:58:06,240  INFO [main] (AbstractApplicationContext.java:400)
> - Refreshing org.apache.cxf.bus.spring.BusApplicationContext@d9896e:
> display name [org.apache.cxf.bus.spring.BusApplicationContext@d9896e];
> startup date [Wed Nov 28 13:58:06 EST 2007]; root of context hierarchy
> 2007-11-28 13:58:06,240  INFO [main] (AbstractApplicationContext.java:400)
> - Refreshing org.apache.cxf.bus.spring.BusApplicationContext@d9896e:
> display name [org.apache.cxf.bus.spring.BusApplicationContext@d9896e];
> startup date [Wed Nov 28 13:58:06 EST 2007]; root of context hierarchy
> ............
> Nov 28, 2007 1:49:31 PM org.apache.cxf.configuration.spring.ConfigurerImpl
> <init
>>
> WARNING: Failed to create application context.
> org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected
> excep
> tion parsing XML document from class path resource [cxf.xml]; nested
> exception is java.lang.StackOverflowError
>         at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:385)
>         at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:313)
>         at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:290)
>         at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)
>         at
> org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:108)
> 
> 
> Has anyone seen this problem?
> 

-- 
View this message in context: http://www.nabble.com/error-upgrading-to-2.0.3-with-cxf.xml-tf4891749.html#a14018322
Sent from the cxf-user mailing list archive at Nabble.com.