5 Replies Latest reply on Mar 8, 2005 7:45 AM by thomas.diesler

    Problem with workbook example ex15_1

    gpnewton

      I'm trying to run the example where an EJB has a webservice endpoint. The build file is trying to include a SAR (jboss-net.sar) that does not show up in my clean JBoss 4.0 installation.

      Here's the snippet from the build file:





      Though I'm new to JBoss, I thought I read that JBoss 4.0 no longer uses the jboss-net package, but had something new. Any chance the example should actually be trying to use jboss-4.0.0\server\default\deploy\jboss-ws4ee.sar in the build file?

      Greg

        • 1. Re: first experiences with JBossWS: no serializer found
          bill.burke

          Please beware, that SOAP encoding is essentially deprecated and should not be used ws4ee. That leaves you with the choice of document/literal and rpc/literal. There are some useful links on the WIKI if you want to know more about the encoding styles.

          SOAP encoding is explicitly forbidden in the WSI-BasicProfile-1.0 for interoperability reasons. See BP-1.0 (R2706)

          If your remote party uses SOAP encoding, you have of course no choice. But if you are in control of both sides, you should stick to literal encoding.

          cheers

          • 2. Re: Problem with workbook example ex15_1
            gpnewton

            FYI... I modified the build file to include jboss-ws4ee.sar and things built fine. I did find one other problem though...

            The book says that the WSDL can be pretty much anywhere in the JAR, and in fact the samples put it directly into the META-INF directory. JBoss doesn't like it there, and outputs an error message saying that it must be in the META-INF/wsdl directory. Once I moved the file, the web service deployed correctly.

            • 3. Re: Problem with workbook example ex15_1
              shel

              hello,

              after corrections concerning "jboss-ws4ee.sar" and "/wsdl" (which in fact are obvious) i got in server.log:
              [AxisServlet] Exception:
              java.lang.IllegalAccessException: /ws4ee/services/TravelAgentService

              does anybody know the reason?

              thanks.

              • 4. Re: Problem with workbook example ex15_1
                shel

                i also figured out that this is a jboss-4.0.1 related problem, jboss-4.0.0 works fine.

                • 5. Re: Problem with workbook example ex15_1
                  thomas.diesler

                  Access to the generic path '/ws4ee/services' has been discontinued for security reasons. Every endpoint should use its own dedicated context instead of the generic /ws4ee context.

                  There was a bug denying access to '/anycontext/services' that has been fixed for jboss-4.0.2

                  http://jira.jboss.com/jira/browse/JBWS-82