8 Replies Latest reply on Oct 2, 2007 3:47 AM by Richard Opalka

    Sample application

    Ambika Awanty Newbie

      Hi,
      Are there any opensource sample application which demonstrate the jboss web services?

      Regards,
      Ambika

        • 1. Re: Sample application
          Oskar Carlstedt Novice

          Hello!

          There are several examples in the JBossWS-distribution. Just download the normal distribution (src distribution is not required). The distribution zip file contains another zip file with lots of examples about how to do what in what situation.

          Build the examples, deploy them into JBoss and you have something to test/look at.

          Kind regards
          Oskar

          • 2. Re: Sample application
            Ilya Romanenko Newbie

            i have the same question, but i still can't find this .zip file :(

            i've tried in jbossws-native-2.0.0.GA and jbossws-native-2.0.1.GA

            • 3. Re: Sample application
              Alessio Soldano Newbie

               

              "rukus" wrote:
              i have the same question, but i still can't find this .zip file :(

              i've tried in jbossws-native-2.0.0.GA and jbossws-native-2.0.1.GA


              You have to download the src zip or checkout the src from svn.

              Alessio Soldano

              • 4. Re: Sample application
                Thomas Diesler Master

                The samples are included in the binary distribution

                ant deploy-jboss42
                ant tests
                


                • 5. Re: Sample application
                  Manny Nainu Newbie

                  Thomas,
                  The "ant tests" is failing here as below. I'm on jboss-eap-4.2. I think it needs some package for junit.framework.Testcase. Where would this be?

                  C:\cygwind\home\Manny\jboss-eap-4.2\jbossws-native-2.0.1.GA>ant tests
                  Buildfile: build.xml

                  prepare:

                  tests-prepare:

                  [echo] -----------------------------------------------
                  [echo] jboss.home = /cygwind/home/manny/jboss-eap-4.2/jboss-as
                  [echo] excludesfile = C:\cygwind\home\Manny\jboss-eap-4.2\jbossws-native-2.
                  0.1.GA/tests/resources/test-excludes-jboss42.txt
                  [echo] java.home = C:\Java\jdk1.5.0_11\jre
                  [echo] jboss.bind = localhost
                  [echo] -----------------------------------------------

                  tests-classpath-jboss50:

                  tests-classpath-jboss42:

                  tests-classpath-jboss40:

                  tests-classpath:

                  tests-init:

                  tests-compile:
                  [javac] Compiling 2 source files to C:\cygwind\home\Manny\jboss-eap-4.2\jbos
                  sws-native-2.0.1.GA\output\classes
                  [javac] C:\cygwind\home\Manny\jboss-eap-4.2\jbossws-native-2.0.1.GA\tests\ja
                  va\org\jboss\test\ws\jaxws\smoke\tools\WSConsumerTestCase.java:45: cannot find s
                  ymbol
                  [javac] symbol : constructor TestCase()
                  [javac] location: class junit.framework.TestCase
                  [javac] public class WSConsumerTestCase extends TestCase
                  [javac] ^
                  [javac] Note: Some input files use unchecked or unsafe operations.
                  [javac] Note: Recompile with -Xlint:unchecked for details.
                  [javac] 1 error

                  BUILD FAILED
                  C:\cygwind\home\Manny\jboss-eap-4.2\jbossws-native-2.0.1.GA\build.xml:117: The f
                  ollowing error occurred while executing this line:
                  C:\cygwind\home\Manny\jboss-eap-4.2\jbossws-native-2.0.1.GA\tests\ant-import\bui
                  ld-testsuite.xml:274: Compile failed; see the compiler error output for details.


                  Total time: 3 seconds
                  C:\cygwind\home\Manny\jboss-eap-4.2\jbossws-native-2.0.1.GA>

                  • 6. Re: Sample application
                    Manny Nainu Newbie

                    Note, I have already added junit.jar to 3rdParty (/lib) here.

                    • 7. Re: Sample application
                      Manny Nainu Newbie

                      I added junit.jar to the
                      entry in build.xml.

                      The compile is OK now but the test results are another matter!! (all failing)

                      • 8. Re: Sample application
                        Richard Opalka Newbie

                        Copy junit jar file to $ANT_HOME/lib directory. This will solve your problem ;-)

                        Richard