I tried to create and call a service located in another machine using the following method (which is referenced from this link: [http://docs.huihoo.com/apache/cxf/2.0/jax-ws-configuration.html|http://docs.huihoo.com/apache/cxf/2.0/jax-ws-configuration.html]).
<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.0.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schema/jaxws.xsd">
<bean id="proxyFactory" class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">
<property name="serviceClass" value="demo.spring.HelloWorld"/>
<property name="address" value="http://remotehost:9002/HelloWorld"/>
</bean>
<bean id="client" class="demo.spring.HelloWorld"
factory-bean="proxyFactory" factory-method="create"/>
</beans>
It runs well on Apache. But when I use the code in Websphere 6.1 it fails with the following exception:
*.... Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public java.lang.Object org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create()] threw exception; nested exception is java.lang.NullPointerException*
What can I do if I need to run on Websphere 6.1?
Thanks!!
Edited by: cheukyung on Oct 12, 2008 8:41 PM