I updated spring-2.0.1 to 2.0.4. and got following excetion
2007-12-26 14:08:47,859 ERROR
[org.springframework.web.context.ContextLoader] Context initialization
failed
java.lang.ClassCastException:
org.springframework.beans.factory.config.TypedStringValue
at
com.rwsol.syb.spring.SpringPropertyRegistryFactory.postProcessBeanFactor
y(SpringPropertyRegistryFactory.java:107)
at
org.springframework.context.support.AbstractApplicationContext.invokeBea
nFactoryPostProcessors(AbstractApplicationContext.java:442)
at
org.springframework.context.support.AbstractApplicationContext.refresh(A
bstractApplicationContext.java:342)
at
org.springframework.web.context.ContextLoader.createWebApplicationContex
t(ContextLoader.java:241)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(
ContextLoader.java:184)
at
org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderS
ervlet.java:82)
thanks
Manoj
-----Original Message-----
From: Jeff Yu [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 25, 2007 9:19 PM
To: [email protected]
Subject: Re: help requested for cxf issue
I think it is caused by the jar version conflict, I can see that
spring-2.0.1.jar & spring-core-2.0.4.jar, which I believe the
spring-2.0.1.jar should be an all-in-one jar that already include the
spring-core.
could you try to remove the spring-*-2.0.4 or update spring-2.0.1 to
2.0.4.
HTH
Jeff
Patidar, Manoj wrote:
> Hi,
> i am facing one strange issue while working on cxf . cxf web services
> ran succesfully for me when i ran it stand alone. But it fails while i
> integrate with my application.
> My jboss did not start successfully when i intergrated.
>
> following are the relatvant content of my
> WEB-INF/applicationContext.xml
>
> xsi:schemaLocation="
> http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
> http://www.springframework.org/schema/webflow-config
> http://www.springframework.org/schema/webflow-config/spring-webflow-co
> nf
> ig-1.0.xsd
> http://cxf.apache.org/jaxws
> http://cxf.apache.org/schemas/jaxws.xsd"
> default-lazy-init="true" default-autowire="no">
>
> <!-- Include legacy express support --> <import
> resource="classpath:/applicationContext-express.xml" />
>
> <!-- Exemplar Process and Pager Beans --> <import
> resource="classpath:/applicationContext-session.xml" />
> <import resource="classpath:/applicationContext-process.xml" />
> <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="com.rwsol.exemplar.ws.kp.HelloWorldImpl"
> address="/HelloWorld">
> </jaxws:endpoint>
>
> my application using spring-2.0.1.jar along with many other jars i
> added following jars for cxf.
>
> Spring-2.0.1.jar ,Cxf-2.0.2-incubator.jar , aopalliance-1.0.jar ,
> commons-logging-1.1.jar , geronimo-activation_1.1_spec-1.0-M1.jar
> ,geronimo-annotation_1.0_spec-1.1.jar
> ,geronimo-javamail_1.4_spec-1.0-M1.jar ,
> geronimo-servlet_2.5_spec-1.1-M1.jar,
> geronimo-ws-metadata_2.0_spec-1.1.1.jar, jaxb-api-2.0.jar,
> jaxb-impl-2.0.5.jar, jaxws-api-2.0.jar, jetty-6.1.5.jar,
> neethi-2.0.2.jar, saaj-api-1.3.jar, saaj-impl-1.3.jar,
> spring-beans-2.0.4.jar, spring-context-2.0.4.jar,
> spring-core-2.0.4.jar, spring-web-2.0.4.jar, stax-api-1.0.1.jar,
> wsdl4j-1.6.1.jar, wstx-asl-3.2.1.jar, xml-resolver-1.2.jar,
> XmlSchema-1.2.jar
>
> my application have use some beans ( 'rateconfiguration' bean and
many
> more ) defined in applicationContext-express.xml. my application
run
> successfully if i do not integrate with the cxf.
>
> My jboss did not start successfully. I see following exception in log
> file.If i remove above three import statements and <jaxws:endpoint
> id="helloWorld" my jboss starts with no exception and application is
> up with all screens running.
>
> DEBUG 2007-12-24 15:59:31,434 [Thread:main] [Session: ]
> org.springframework.beans.factory.support.DefaultListableBeanFactory -
> Returning cached instance of singleton bean 'rateconfiguration'
> DEBUG 2007-12-24 15:59:31,434 [Thread:main] [Session: ]
> org.springframework.beans.factory.support.DefaultListableBeanFactory -
> Bean with name 'rateconfiguration' is a factory bean INFO 2007-12-24
> 15:59:31,434 [Thread:main] [Session: ]
> com.rwsol.syb.spring.SpringExpressComponentFactory - Creating expres
> component:rateconfiguration DEBUG 2007-12-24 15:59:31,434
> [Thread:main] [Session: ]
> org.springframework.beans.factory.support.DefaultListableBeanFactory -
> Ignoring bean creation exception on FactoryBean type check
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'rateconfiguration': FactoryBean threw
> exception on object creation; nested exception is
> java.lang.NullPointerException Caused by:
> java.lang.NullPointerException
> at
> com.rwsol.syb.system.SystemServices.getPropertyRegistry(SystemServices
> .j
> ava:197)
> at
> com.rwsol.express.components.rateconfiguration.v1.config.RateConfigura
> ti
> onPropertyManager.createInstance(RateConfigurationPropertyManager.java
> :6
> 4)
> at
> com.rwsol.express.components.rateconfiguration.v1.config.RateConfigura
> ti
> onPropertyManager.createRateConfigurationHandlerFactory(RateConfigurat
> io
> nPropertyManager.java:170)
> at
> com.rwsol.express.components.rateconfiguration.v1.impl.RateConfigurati
> on
> Impl.<init>(RateConfigurationImpl.java:99)
> at
> com.rwsol.express.components.rateconfiguration.v1.impl.RateConfigurati
> on
> Factory.createComponent(RateConfigurationFactory.java:22)
> at
> com.rwsol.syb.spring.SpringExpressComponentFactory.getObject(SpringExp
> re
> ssComponentFactory.java:39)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getObjec
> tF
> romFactoryBean(AbstractBeanFactory.java:1175)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getObjec
> tF
> orBeanInstance(AbstractBeanFactory.java:1141)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
> Ab
> stractBeanFactory.java:202)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
> Ab
> stractBeanFactory.java:156)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanF
> ac
> tory.createBean(AbstractAutowireCapableBeanFactory.java:337)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObj
> ec
> t(AbstractBeanFactory.java:245)
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry
> .g
> etSingleton(DefaultSingletonBeanRegistry.java:140)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
> Ab
> stractBeanFactory.java:242)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
> Ab
> stractBeanFactory.java:156)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getTypeF
> or
> FactoryBean(AbstractBeanFactory.java:1075)
>
>
> Your help is highly appreciated
>
> thanks
>
>
>