2 Replies Latest reply on Jul 5, 2005 3:51 PM by bsheward

    Questions about the Wiki Page WSServerEJB

      Hi,

      I have a couple of questions about the WSServerEJB Wiki Page (http://wiki.jboss.org/wiki/Wiki.jsp?page=WSServerEJB).

      There is a section that states:

      When you deploy the jar that contains all the artifacts we just taked about, you should see something like this
      in the JBoss console


      14:49:49,656 INFO [EjbModule] Deploying OrganizationSLSB
      14:49:49,906 INFO [EJBDeployer] Deployed: file:/.../server/default/deploy/samples-server-ejb.jar
      14:49:49,921 INFO [WSDLFilePublisher] WSDL published to: file:/.../server/default/data/wsdl/samples-server-ejb.jar/OrganizationServiceEJB.wsdl
      14:49:50,062 INFO [AxisService] WSDD published to: ...\server\default\data\wsdl\samples-server-ejb.jar\Organization.wsdd
      14:49:50,062 INFO [AxisService] Web Service deployed: http://TDDELL:8080/samples-server-ejb/Organization


      Firstly, what type of JAR are we talking about? An EAR, WAR or a straight JAR? I guess I'm also asking whether the WSDL files, jaxrpc-mapping.xml, webservices.xml files etc need to be in a jar file within the ear, or in the ear file itself.

      Secondly, what is the OrganizationSLSB that is mentioned?

      From the log output, it seems like there are no EAR files used, just JAR files in the deploy directory. I'm trying to understand the structure of where all the WSEE files should go.

      Thanks and Regards,

      Barry

        • 1. Re: Questions about the Wiki Page WSServerEJB
          clairecostello

          Hi Barry,

          Basic structure of JAR is:

          META-INF/MANIFEST.MF
          META-INF/webservices.xml
          META-INF/jboss.xml
          META-INF/ejb-jar.xml
          META-INF/jaxrpc-mapping.xml
          META-INF/wsdl/servicesfilename.wsdl

          Followed by all the packages and classes.

          http://www.dcl.hpi.uni-potsdam.de/research/asg/ws4ejb/ has a diagram schematic showing this structure.

          Also the stateless session bean, OrganizationSLSB is the implementation class for the service endpoint interface listed on the WIKI page. It contains the actual code for the method getContactInfo.

          HTH, Claire.

          • 2. Re: Questions about the Wiki Page WSServerEJB

            Claire,

            Thanks. I'm now able to call a really simple web service.

            I think the problem was that I had a lot of these files at the EAR level, rather than the JAR level. Once I changed things to:

            test.ear
            test.ear/META-INF/MANIFEST.MF
            test.ear/META-INF/application.xml
            test.ear/test.jar
            test.ear/test.jar/META-INF/MANIFEST.MF
            test.ear/test.jar/META-INF/webservices.xml
            test.ear/test.jar/META-INF/jboss.xml
            test.ear/test.jar/META-INF/ejb-jar.xml
            test.ear/test.jar/META-INF/jaxrpc-mapping.xml
            test.ear/test.jar/META-INF/wsdl/servicesfilename.wsdl

            things started working!

            Thanks for your help,

            Barry