Announcement Announcement Module
Collapse
No announcement yet.
jaxrpc error: No engine configuration file - aborting! Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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:

    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
    &#123;
      public String hello&#40;&#41;;
    &#125;
    
    
    
    public class HelloWorldClient
    &#123;
      private HelloWorldService service;
    
      public HelloWorldClient&#40;&#41; throws Exception
      &#123;
        lookupSession&#40;&#41;;
      &#125;
    
      protected void lookupSession&#40;&#41; throws Exception
      &#123;
          service = &#40;HelloWorldService&#41; new FileSystemXmlApplicationContext&#40;"wsContext.xml"&#41;.getBean&#40;"helloWorldService", HelloWorldService.class&#41;;
      &#125;
    
      public void sayHelloWordl&#40;&#41;
      &#123;
        service.hello&#40;&#41;;
      &#125;
    
      public static void main&#40;String&#91;&#93; args&#41; throws Exception
      &#123;
        new HelloWorldClient&#40;&#41;.sayHelloWordl&#40;&#41;;
      &#125;
    
    &#125;

    and my wsContext is:

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http&#58;//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&#58;//maa5.rmb.co.za&#58;8008/HelloWorld.wsdl</value></property>
    		<property name="namespaceUri"><value>http&#58;//maa5.rmb.co.za&#58;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
Working...
X