0 Replies Latest reply on Jan 28, 2004 12:16 PM by nagulapati

    Accessing a Webservice from a Stateless Session Bean

    nagulapati Newbie


      "nagulapati" wrote:
      Hello All,

      I am trying to deploy a stateless session bean which accesses a webservice. I have the jar file which has all the artifacts of bean along with the stubs to access the webservice.

      Now when I am trying to deploy the stateless session bean, it gives me a NoClassDefFoundError for the stub class even though I packed it inside the jar file.

      Here is my code snippet inside the bean class

      //Make a service using ServiceLocator
      AdminWebService admin = new AdminWebServiceLocator();

      //Get the stub using the Service
      AdminWebServiceSoap adminStub = admin.getAdminWebServiceSoap();


      It is throwing me the following error when I am deploying the EJB,

      10:43:27,465 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
      Cause: Incomplete Deployment listing:
      Packages waiting for a deployer:
      Incompletely deployed packages:
      MBeans waiting for classes:
      MBeans waiting for other MBeans:
      [ObjectName: jboss.j2ee:jndiName=HelloWorld,service=EJB
      state: FAILED
      I Depend On:
      Depends On Me: java.lang.NoClassDefFoundError: AdminClient/AdminWebService]

      Is there any other way by which one can deploy a stateless session bean which is webservice client?

      Thanks for your help in advance,