jaxrpc error: No engine configuration file - aborting!
Hi
I am trying to use spring jaxrpc remoting, when I run the client code I get the following exception:
Quote:
org.apache.axis.ConfigurationException: No engine configuration file - aborting!
at org.apache.axis.configuration.FileProvider.configu reEngine(FileProvider.java:224)
at org.apache.axis.AxisEngine.init(AxisEngine.java:19 9)
at org.apache.axis.AxisEngine.<init>(AxisEngine.java: 181)
at org.apache.axis.client.AxisClient.<init>(AxisClien t.java:90)
at org.apache.axis.client.Service.getAxisClient(Servi ce.java:374)
at org.apache.axis.client.Service.<init>(Service.java :184)
at org.apache.axis.client.ServiceFactory.createServic e(ServiceFactory.java:256)
at org.springframework.remoting.jaxrpc.LocalJaxRpcSer viceFactory.createJaxRpcService(LocalJaxRpcService Factory.java:152)
at org.springframework.remoting.jaxrpc.JaxRpcPortClie ntInterceptor.afterPropertiesSet(JaxRpcPortClientI nterceptor.java:263)
at org.springframework.remoting.jaxrpc.JaxRpcPortProx yFactoryBean.afterPropertiesSet(JaxRpcPortProxyFac toryBean.java:55)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:990)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:275)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:193)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:240)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:163)
at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:230)
at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:304)
at org.springframework.context.support.FileSystemXmlA pplicationContext.<init>(FileSystemXmlApplicationC ontext.java:82)
at org.springframework.context.support.FileSystemXmlA pplicationContext.<init>(FileSystemXmlApplicationC ontext.java:67)
at org.springframework.context.support.FileSystemXmlA pplicationContext.<init>(FileSystemXmlApplicationC ontext.java:58)
at za.co.rmb.spj.deals.session.DealViewWSClient.looku pSession(DealViewWSClient.java:41)
at za.co.rmb.spj.deals.session.DealViewWSClient.<init >(DealViewWSClient.java:35)
at za.co.rmb.spj.deals.session.DealViewWSClient.main( DealViewWSClient.java:69)
My client code looks like this:
Code:
public interface HelloWorldService extends BaseWebService
{
public String hello();
}
public class HelloWorldClient
{
private HelloWorldService service;
public HelloWorldClient() throws Exception
{
lookupSession();
}
protected void lookupSession() throws Exception
{
service = (HelloWorldService) new FileSystemXmlApplicationContext("wsContext.xml").getBean("helloWorldService", HelloWorldService.class);
}
public void sayHelloWordl()
{
service.hello();
}
public static void main(String[] args) throws Exception
{
new HelloWorldClient().sayHelloWordl();
}
}
and my wsContext is:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean id="helloWorldService" class="org.springframework.remoting.jaxrpc.JaxRpcPortProxyFactoryBean">
<property name="serviceFactoryClass"><value>org.apache.axis.client.ServiceFactory</value></property>
<property name="wsdlDocumentUrl"><value>http://maa5.rmb.co.za:8008/HelloWorld.wsdl</value></property>
<property name="namespaceUri"><value>http://maa5.rmb.co.za:8008/HelloWorld</value></property>
<property name="portName"><value>HelloWorldService</value></property>
<property name="serviceName"><value>HelloWorldService</value></property>
<property name="serviceInterface"><value>za.co.rmb.dv.webservice.client.HelloWorldService</value></property>
</bean>
</beans>
Does anybody have any suggestions?
thanks
Cliff