6 Replies Latest reply on Jul 11, 2002 4:34 PM by ludovic

    Java:RPC deployment

    drobert_bfm

      I'm trying to deploy a very simple hello world service using the java:RPC provider, with no luck (keep hitting the same error, with no error logging, so no way to trace the problem: NullPointerException). All the examples seem to focus exclusively on deploying Session Beans and MBeans as Web Services. Useful, but not always what is required.

      Could anyone post an example or two (e.g. the InventoryCheck example from Graham et al.)

      BTW: a solid description of the web-service.xml file is sorely needed. The examples in the testsuite are not sufficient to understand what this file should look like in all cases.

        • 1. 3724111
          ludovic

          I created the attached wsr in an attempt to deploy example3 from the Axis distribution. However, when running the test client I get the following:

          C:\apache\xml-axis-beta2\samples\userguide\example3>java samples.userguide.example3.Client "test me!"
          The AXIS engine could not find a target service to invoke! targetService is MyService

          What have I done wrong?

          • 2. Re: Java:RPC deployment

            You'll find the code and steps involved in setting up a simple hello world example at http://www.csd.abdn.ac.uk/~bscharla/jboss-net-helloWorld.html.

            The other thing to remember is that some of the JBoss.NET stuff is the same as for Axis, but with a different name, ie the Axis wsdd files are web-services.xml files under JBoss.NET.

            I'm working on a simple EJB/JSP example and will post the details when I have it ready.
            cheers

            Bruce

            • 3. Re: Java:RPC deployment
              ludovic

              I'm trying to deply this helloworld exemple but I've got this message when I compile :

              symbol : variable IN
              location: class javax.xml.rpc.ParameterMode
              ParameterMode.IN);
              ^
              1 error

              I don't understand because I put the axis.jar in my classpath and it contains the fine library.

              • 4. Re: Java:RPC deployment
                cgjung

                Then it looks like the wrong axis.jar? I think Bruce used axis.jar BETA2 ... But be aware that this may cause incompatibilities with jboss.net until I´ve done the migration in head.

                • 5. Re: Java:RPC deployment
                  cgjung

                  Robert,

                  if you look at the (ok, very shallow) docu of jboss.net, it states that web-service.xml basically is Axis-WSDD with a few extensions for jboss-specific things.

                  CGJ

                  • 6. Re: Java:RPC deployment

                    Robert,

                    Two things.

                    1) Yes, you can use the axis-beta2 jar of axis, and it will work sometimes (ie parse wsdl files and show their contents in the browser- kinda cool).

                    2) As jboss.net is compiled with axis-beta1 jar of axis, you need to code to that API, so download the axis-beta one files and use that API for reference. Oh yes, and don't forget to ensure that your java files are compiled against that axis-beta1 jar too.

                    You'll find an example of this stuff at http://www.csd.abdn.ac.uk/~bscharla/jboss-net-helloWorld-EJB.html

                    cheers

                    Bruce