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-conf
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.RateConfigurati
onPropertyManager.createInstance(RateConfigurationPropertyManager.java:6
4)
 at
com.rwsol.express.components.rateconfiguration.v1.config.RateConfigurati
onPropertyManager.createRateConfigurationHandlerFactory(RateConfiguratio
nPropertyManager.java:170)
 at
com.rwsol.express.components.rateconfiguration.v1.impl.RateConfiguration
Impl.<init>(RateConfigurationImpl.java:99)
 at
com.rwsol.express.components.rateconfiguration.v1.impl.RateConfiguration
Factory.createComponent(RateConfigurationFactory.java:22)
 at
com.rwsol.syb.spring.SpringExpressComponentFactory.getObject(SpringExpre
ssComponentFactory.java:39)
 at
org.springframework.beans.factory.support.AbstractBeanFactory.getObjectF
romFactoryBean(AbstractBeanFactory.java:1175)
 at
org.springframework.beans.factory.support.AbstractBeanFactory.getObjectF
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.AbstractAutowireCapableBeanFac
tory.createBean(AbstractAutowireCapableBeanFactory.java:337)
 at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObjec
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.getTypeFor
FactoryBean(AbstractBeanFactory.java:1075)
 
 
Your help is highly appreciated
 
thanks
 

Reply via email to