7 Replies Latest reply on Aug 18, 2010 11:39 AM by cash1981

    What WS stacks can I use with Jboss 4.2 Seam 2.1?

    maxradin

      I am having a lot of difficulty getting a jax-ws to deploy in our current environment (JAXB).


      What WS stacks can I use safely with Jboss 4.2 and Seam 2.1?


      JBossWS - Native? What version?
      JBossWS - Metro? What version?


      thank you
      Max


        • 1. Re: What WS stacks can I use with Jboss 4.2 Seam 2.1?
          cash1981

          Not exactly JAX-WS (which I know is possible to use), however if you can use Axis 2, I did a blog a while back describing step by step how you can do this with JBoss 4 and Seam 2.1


          Here is the link


          Shervin

          • 2. Re: What WS stacks can I use with Jboss 4.2 Seam 2.1?
            maxradin

            Hi Shervin-


            Thanks. Since I am having issues with JAXB and JAX-WS I will give this a try.


            My question re: AXIS2 - don't I need to deploy the AXIS2 servlet in JBOSS?


            thanks again
            Max 

            • 3. Re: What WS stacks can I use with Jboss 4.2 Seam 2.1?
              cash1981

              No. The wsdl file which is generated will be automatically deployed by JBoss. Then you only need to locate exactly where the webservice is located.

              • 4. Re: What WS stacks can I use with Jboss 4.2 Seam 2.1?
                maxradin

                Hi Shervin
                Thanks for your replies:


                As I look at you AXIS2 sample I believe it's for an AXIS 2 client for a JAX-WS Native WS (default) - or am I mistaken?


                This is what I want to do with Seam and Jboss 4.2:


                I have tried to generate a NotifyConsumer WS using wsconsume (JBoss JAX-WS import tool) and wsdl (top down) for the Oasis WSN Specification.


                This creates stubs which I used to create my WS in seam (JAXB stubs). Due to problems with JAXB lmititations I have been unable to deploy my WS. After much effort I have come to the conclusion that the JBoss JAX-WS native tool won't generate the WS artifacts top down (from wsdl).


                Now I want to try and generate AXIS2 stubs (using XMLBEAN for marshaling) in Soapui and deploy the stubs to Seam and write my WS using AXIS2 (Instead of JAX-WS and JAXB).


                What do I need to do to Jboss/Seam to do this? Deploy the AXIS2 servlet in Jboss? Anything else?


                many thanks
                Max



                • 5. Re: What WS stacks can I use with Jboss 4.2 Seam 2.1?
                  cash1981

                  Max Tomlinson wrote on Aug 17, 2010 21:03:

                  As I look at you AXIS2 sample I believe it's for an AXIS 2 client for a JAX-WS Native WS (default) - or am I mistaken?


                  Actually it does exactly what you want to do with wsconsume. When you deploy the Webservice, JBoss will generate the wsdl files for you, and then you run a program that will read this wsdl, and generate the stubs for you (client.java)


                  Something like this:



                  ./wsdl2java.sh -uri http://localhost:8080/myapp/myWebservice?wsdl -o build



                  Or did I misunderstand that this is what you want?



                  Max Tomlinson wrote on Aug 17, 2010 21:03:


                  What do I need to do to Jboss/Seam to do this? Deploy the AXIS2 servlet in Jboss? Anything else?

                  many thanks
                  Max


                  When you run your deploy your @Webservice in JBoss, you should see in the logs that it has identified it and generated wsdl file for it. You don't need to do anything else other than locate the wsdl file and run the wsdl2java program in axis2.

                  • 6. Re: What WS stacks can I use with Jboss 4.2 Seam 2.1?
                    maxradin
                    Hi Shervin

                    your quote:

                    "Actually it does exactly what you want to do with wsconsume. When you deploy the Webservice, JBoss will generate the wsdl files for you, and then you run a program that will read this wsdl, and generate the stubs for you (client.java)"

                    I have not had any luck after quite some effort with wsconsume (which generates JAXB stubs). I suspect the native implementation for 4.2 does not work right for the top down process and complex wsdl.
                    The process might work with simpler wsdl but this is fairly extensive (WSN Notification spec) and I have no control over it.

                    We are on JBoss 4.2 which has the native JAX-WS stack - JAX-WS 2.1.n. We are using JDK 1.5.

                    When I run wsconsume on the wsdl I get errors on the wsconsume (fails with little or no error message) or JAXB stubs that are problematic. This includes failing to recognize how to marshal QNames etc. If I hack the generated code to get past these, then I get errors in the wsdl created by the WS.

                    So I wanted to try using AXIS2 - generate AXIS2 stubs using XMLBEANS and NOT JAXB.

                    Can I do this? Generate AXIS2 stubs and use that instead of the native stack?

                    thanks again
                    Max
                    • 7. Re: What WS stacks can I use with Jboss 4.2 Seam 2.1?
                      cash1981

                      Yes I believe you can do that.


                      I found this and this is for Axis2 version 1.1.1


                      You should try it out.