0 Replies Latest reply on Jun 2, 2005 6:41 PM by bandini

    java.lang.IllegalStateException: Cannot obtain client config

    bandini Newbie

      My full error stack:

      
      g.IllegalStateException: Cannot obtain client config
       at org.jboss.webservice.client.ServiceImpl.getEngineConfiguration(ServiceImpl.java:323)
       at org.jboss.webservice.client.ServiceImpl.getAxisClient(ServiceImpl.java:308)
       at org.apache.axis.client.Service.<init>(Service.java:178)
       at org.jboss.webservice.client.ServiceImpl.<init>(ServiceImpl.java:106)
       at org.jboss.webservice.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:112)
       at com.tps.test.testWS1.testServletContextExactAccess(testWS1.java:24)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at junit.framework.TestCase.runTest(TestCase.java:154)
       at junit.framework.TestCase.runBare(TestCase.java:127)
       at junit.framework.TestResult$1.protect(TestResult.java:106)
       at junit.framework.TestResult.runProtected(TestResult.java:124)
       at junit.framework.TestResult.run(TestResult.java:109)
       at junit.framework.TestCase.run(TestCase.java:118)
       at junit.framework.TestSuite.runTest(TestSuite.java:208)
       at junit.framework.TestSuite.run(TestSuite.java:203)
       at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:474)
       at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:342)
       at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:194)
      
      


      My client code is as below:

      public void testServletContextExactAccess() throws Exception {
      
       log.debug("CLIENT COMPONENT TALKING TO SERVER: 1 ");
       URL url = new URL("http://localhost:8080/server-ejb/OrganizationServiceEJB?wsdl");
       QName qname = new QName("http://localhost:8080/ws4ee", "OrganizationServiceEJB");
      
       try {
       ServiceFactory factory = ServiceFactory.newInstance();
       Service service = factory.createService(url, qname);
       OrganizationEndpoint endpoint = (OrganizationEndpoint) service.getPort(OrganizationEndpoint.class);
      
       log.debug("CLIENT COMPONENT TALKING TO SERVER: 2 ");
       String info = endpoint.getContactInfo("TPS");
       log.debug("The boss is currently out of office, please call again." + info);
       log.debug("CLIENT COMPONENT TALKING TO SERVER: 3 ");
       } catch (Exception e) {
       log.error("Oops", e);
       }
       }
      
      


      Im running the client in jboss server, and the server-ejb.jar has been
      succesfully deployed...

      Any help is appreciated...
      Thanx in advance