3 Replies Latest reply on Aug 25, 2005 5:11 PM by thomas.diesler

    Client can?t connect to webservice

    semundseth

      Hi all,
      I have developed and deployed a webservice on JBoss (jboss-4.0.0).
      My problem is referred to calling a webservice by a client (just like the JBoss wiki http://wiki.jboss.org/wiki/Wiki.jsp?page=WSServerEJB at the bottom).

      When I try to run the client I get this error:

      Exception in thread "main" org.apache.axis.InternalException: org.apache.axis.ConfigurationException: org.apache.axis.ConfigurationException: No engine configuration file - aborting!
      org.apache.axis.ConfigurationException: No engine configuration file - aborting!
       at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:224)
       at org.apache.axis.AxisEngine.init(AxisEngine.java:199)
       at org.apache.axis.AxisEngine.<init>(AxisEngine.java:181)
       at org.apache.axis.client.AxisClient.<init>(AxisClient.java:90)
       at org.apache.axis.client.Service.getAxisClient(Service.java:374)
       at org.apache.axis.client.Service.<init>(Service.java:184)
       at org.apache.axis.client.ServiceFactory.createService(ServiceFactory.java:256)
       at dk.itu.carrental.ejb.client.CustomerWSClient.main(CustomerWSClient.java:19)
      ...
      


      In order to solve this problem I have tried to place the axis-client-config.xml file from under jboss/server/default/deploy/jboss-ws4ee.sar/META-INF and placed it under the directory from which my client is run under. I have also tried to rename the file axis-client-config.xml to client-config.wsdd without any luck.

      May this be a classpath problem? My classpath looks like this:

      %JAVA_HOME%/lib/tools.jar;
      %JAVA_HOME%/bin;
      %JBOSS_HOME%/server/default/deploy/jboss-ws4ee.sar/axis-ws4ee.jar;
      %JBOSS_HOME%/client/jboss-jaxrpc.jar;
      %JBOSS_HOME%/client/jboss-saaj.jar;
      %JBOSS_HOME%/client/axis-ws4ee.jar;
      %JBOSS_HOME%/client/jboss-common-client.jar;
      %JBOSS_HOME%/client/commons-discovery.jar;
      %JBOSS_HOME%/client/commons-logging.jar;
      %JBOSS_HOME%/client/wsdl4j.jar;
      %JWSDP-HOME%/lib/jaxrpc-api.jar;
      %JWSDP-HOME%/lib/jaxrpc-spi.jar;
      %JWSDP-HOME%/lib/jaxrpc-impl.jar;
      %JWSDP-HOME%/lib/jax-qname.jar;
      %JWSDP-HOME%/lib/activation.jar;
      %JWSDP-HOME%/lib/mail.jar;


      I am running JBoss version: jboss-4.0.0
      My webservice is deployed with no problems.
      I would be really thankful if anyone could help me out with this problem. Since I feel really stuck at the moment?.




        • 1. Re: Client can?t connect to webservice

          Hello,

          It sounds like you might have done this already, but, just in case, you diddn't.... If you're just wanting to connect plain ordinary Java objects (POJO) JAX-RPC stub derived clients to web services deployed under JBossWS, then you need to take the axis-client-config.xml file from under jboss/server/default/deploy/jboss-ws4ee.sar/META-INF and place it in the directory from which your client will be run, and rename it to the default name that axis uses, client-config.wsdd. If you don't do this, then you will receive an error message complaining about axis not finding 'No engine configuration file'. This is because when you run wsdl2java, it uses the org.apache.axis.client.Service class, which then looks for a configuration file.

          Also, make sure, of course, that this file is on the classpath.

          • 2. Re: Client can?t connect to webservice
            richiewalsh

            Hi,
            I am having the same problem. What I have done is integrated AXIS1.1 into JBoss.

            I keep getting the error :
            org.apache.axis.ConfigurationException: No engine configuration file - aborting!

            I have the server-config.wsdd and client-config.wsdd files in the correct directories and axis as deployed fine, as have my services. However, I still get this.

            You say to make sure that the file is on th classpath, how do I ensure that this is the case in JBoss.

            For further reference:

            My directory structure currently looks like this.

            axis.war
            WEB-INF
            server-config.wsdd
            classes
            wsdl
            client-config.wsdd
            core-services
            <contains several wsdl/wsdd files>
            lib
            <contains required jar files>

            thanks,
            Richie.

            • 3. Re: Client can?t connect to webservice
              thomas.diesler

              You're welcome to use Axis or for the matter of this argument any SOAP stack on the client. This forum is about J2EE-1.4 portable WS clients with JBossWS.

              The client jars to use can be found in the FAQ wiki. jboss-ws4ee-client.jar contains the client engine configuration.