4 Replies Latest reply on Feb 29, 2004 10:26 AM by david-av

    Getting WS/EJB Example from Ch. 12 of the pd docs to work

    natebowler

       

      "natebowler" wrote:
      "natebowler" wrote:
      I am following the step-by-step tutorial on how to wrap a stateless session bean with a Web Service. I believe I am following all of the steps, but I am getting the following error:

      Packages waiting for a deployer:
      [org.jboss.deployment.DeploymentInfo@4944719d { url=file:/D:/jboss-3.2.3/server/default/deploy/redrock.ear/redrock-ws.ws
      r/ }
      deployer: null
      status: Starting
      state: START_SUBDEPLOYMENTS
      watch: file:/D:/jboss-3.2.3/server/default/deploy/redrock.ear/redrock-ws.wsr/
      lastDeployed: 1074799037873
      lastModified: 1074799008651
      mbeans:
      ]Incompletely deployed packages:
      <none>
      MBeans waiting for classes:
      <none>
      MBeans waiting for other MBeans:
      <none>

      12:17:26,676 INFO [STDOUT] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
      Cause: Incomplete Deployment listing:
      Packages waiting for a deployer:
      [org.jboss.deployment.DeploymentInfo@4944719d { url=file:/D:/jboss-3.2.3/server/default/deploy/redrock.ear/redrock-ws.ws
      r/ }
      deployer: null
      status: Starting
      state: START_SUBDEPLOYMENTS
      watch: file:/D:/jboss-3.2.3/server/default/deploy/redrock.ear/redrock-ws.wsr/
      lastDeployed: 1074799037873
      lastModified: 1074799008651
      mbeans:
      ]Incompletely deployed packages:
      <none>
      MBeans waiting for classes:

      I hate to post the contents of all of my config files because it would result in a really big post. My basic question is, has anybody gotten this to work? Did you see a msg like this when you were setting it up?

      Any ideas or is there other information that would be helpful/necessary to resolve this?



        • 1. Re: Getting WS/EJB Example from Ch. 12 of the pd docs to wor
          natebowler

           

          "natebowler" wrote:
          "natebowler" wrote:
          I didn't have jboss-net.sar in the default package. oops. It looks like I can get a WSDL, but I haven't tried client code yet.

          I wish simple things like this were spelled out a little better for noobies.


          • 2. Re: Getting WS/EJB Example from Ch. 12 of the pd docs to wor
            kbottner

             

            "kbottner" wrote:
            I am working through the same example and after struggling a little bit I finally started to make progress when I ran into a problem compiling the client application.

            The WSDL2Java will not generate the files I keep getting a

            java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java

            whenever I try to use the client-stubs target and they do not even mention the build.xml entries necessary for compiling the HelloClient. At the beginning of this chapter they mention that all of this is contained within ws-ex directory of the ws-ex.zip file but I can't find that file either.

            Are you having any problems generating the client stubs or building the HelloClient? And do you know where to get the ws-ex.zip by any chance?

            Thanks in advance,

            Keith


            • 3. Re: Getting WS/EJB Example from Ch. 12 of the pd docs to wor
              natebowler

              AFAIK, ws-ex.zip only exists in the documentation. I didn't find it anywhere. I contacted someone at JBoss about this, but so for I've received nothing.

              I've got everything working, but I didn't set up the AXIS client stuff in the ant build. I've already got my Axis client environment set up, so I just run:
              java org.apache.axis.wsdl.WSDL2Java -v -p client.soap.axis http://localhost:8080/jboss-net/services/MyAPI?wsdl

              This command generates all the appropriate stubs. Once you get this working, you can put it in an ant task.

              Right now, everything is working great with 1 exception. The custom type mapper (@jboss-net.xml-schema urn="mytypes:MyBean"), will allow for the WSDL to be generated with my complexType, but it follows different rules than the JAX-RPC spec (or at least Axis 1.1) does. It shouldn't publish read-only properties (methods with only a get vs. get/set pair). This is causing me some pain. If anybody has a workaround for this, please let me know.

              Nate

              • 4. Re: Getting WS/EJB Example from Ch. 12 of the pd docs to wor
                david-av

                Please tell me where can I get those ws-ex files.