4 Replies Latest reply on Nov 20, 2008 4:37 PM by Daniel Kraiman

    Jbpm BPEL HelloWorld Example Ant Test Build Failure Problem

    Judy Fu Newbie


      Hello, All,

      I have been stuck on this problem for a while. Tried everything I could think of but still couldn't get it work. Hope someone here could give me some suggestions.

      I installed Jbpm BPEL and Jboss AS. I followed user guide at http://docs.jboss.com/jbpm/bpel/v1.1/userguide/. I got everything working correctly until before HelloWorld example client test. I did "ant test" and kept getting "Build Failure".

      My settings are: Windows XP, JDK 1.5.0_15, Jboss AS 4.2.2_GA, BPEL 1.1.

      When I do "ant test" at HelloWorld example, error message looks like:
      C:\NewLab\jbpm-bpel-1.1.1\examples\hello>ant test
      Buildfile: build.xml

      detect.wsdl:

      get.published.wsdl:
      [copy] Copying 3 files to C:\NewLab\jbpm-bpel-1.1.1\examples\hello\target\r
      esources\web\wsdl

      check.mapping:

      generate.mapping:

      detect.mapping.tool:

      wstools:

      BUILD FAILED
      C:\NewLab\jbpm-bpel-1.1.1\examples\common\mapping-build.xml:147: The following e
      rror occurred while executing this line:
      C:\NewLab\jbpm-bpel-1.1.1\examples\common\mapping-build.xml:92: Error running jb
      ossws:

      Total time: 2 seconds

      Anybody see this problem before?

      Thanks
      Judy

        • 1. Re: Jbpm BPEL HelloWorld Example Ant Test Build Failure Prob
          Alejandro Guizar Master

          Judy, please install and use JWSDP's wscompile instead. The manual has instructions on how to do that.

          • 2. Re: Jbpm BPEL HelloWorld Example Ant Test Build Failure Prob
            Peter Turanyi Newbie

             

            "alex.guizar@jboss.com" wrote:
            Judy, please install and use JWSDP's wscompile instead. The manual has instructions on how to do that.


            I has this problem too. Thanks for advice. But I do it and nothing changes. Installation succesfull, copy endorsed dir/files and I cannot find startup.sh
            file.

            • 3. Re: Jbpm BPEL HelloWorld Example Ant Test Build Failure Prob
              Judy Fu Newbie

              I tried wscompile and it did work. Many thanks to Alex for your help!



              1. Install jwsdp from: http://java.sun.com/webservices/downloads/previous/webservicespack.jsp
              2. When asked web container, choose “no web container� option.
              3. Add c:\sun\jwsdp-2.0\jwsdp-2.0shared\bin to your Path variable
              4. Edit build.property under c:\testbed\jbpm-bpel-1.1.GA\config to add wscompile directory:
              jwsdp.home=C:/Sun/jwsdp-2.0

              5. following the jbpm bpel user guide, start jboss application server, create schema, deploy hello world service, then ant test, now get build successfully, then check hello/target/test/reports, we can find communications between client and servers confirming the service is working.

              Regards
              Judy

              • 4. Re: Jbpm BPEL HelloWorld Example Ant Test Build Failure Prob
                Daniel Kraiman Newbie

                I did as you specified in your post and wscompile still fails. Perhaps there are some additional settings needed. I am using JBOSS 4.2.3GA and Java 1.5 with BPEL 1.1.GA

                C:\Documents and Settings\dkraiman\My Documents\ABMA\JBOSS\jbpm-bpel-1.1.GA\exam
                ples\hello>ant test
                Buildfile: build.xml

                detect.wsdl:

                get.published.wsdl:
                [copy] Copying 3 files to C:\Documents and Settings\dkraiman\My Documents\A
                BMA\JBOSS\jbpm-bpel-1.1.GA\examples\hello\target\resources\web\wsdl

                check.mapping:

                generate.mapping:

                detect.mapping.tool:

                wstools:

                detect.mapping.tool:

                wscompile:
                [mkdir] Created dir: C:\Documents and Settings\dkraiman\My Documents\ABMA\JB
                OSS\jbpm-bpel-1.1.GA\examples\hello\target\java
                [mkdir] Created dir: C:\Documents and Settings\dkraiman\My Documents\ABMA\JB
                OSS\jbpm-bpel-1.1.GA\examples\hello\target\classes
                [wscompile] command line: wscompile "C:\Program Files\Java\jdk1.5.0_16\jre\bin\j
                ava.exe" -Duser.dir=C:\Documents and Settings\dkraiman\My Documents\ABMA\JBOSS\j
                bpm-bpel-1.1.GA\examples\hello -classpath "c:\sun\jwsdp-2.0\jaxrpc\lib\jaxrpc-ap
                i.jar;c:\sun\jwsdp-2.0\jaxrpc\lib\jaxrpc-impl.jar;c:\sun\jwsdp-2.0\jaxrpc\lib\ja
                xrpc-spi.jar;c:\sun\jwsdp-2.0\saaj\lib\saaj-api.jar;C:\Program Files\Java\jdk1.5
                .0_16\lib\tools.jar" com.sun.xml.rpc.tools.wscompile.Main -d "C:\Documents and S
                ettings\dkraiman\My Documents\ABMA\JBOSS\jbpm-bpel-1.1.GA\examples\hello\target\
                classes" -features:norpcstructures,wsi -import -keep -mapping "C:\Documents and
                Settings\dkraiman\My Documents\ABMA\JBOSS\jbpm-bpel-1.1.GA\examples\hello\target
                \resources\web\hello-mapping.xml" -s "C:\Documents and Settings\dkraiman\My Docu
                ments\ABMA\JBOSS\jbpm-bpel-1.1.GA\examples\hello\target\java" -verbose "C:\Docum
                ents and Settings\dkraiman\My Documents\ABMA\JBOSS\jbpm-bpel-1.1.GA\examples\hel
                lo\src\main\resources\wscompile.xml"
                [wscompile] java.lang.NoClassDefFoundError: and
                [wscompile] Exception in thread "main"

                BUILD FAILED
                C:\Documents and Settings\dkraiman\My Documents\ABMA\JBOSS\jbpm-bpel-1.1.GA\exam
                ples\common\mapping-build.xml:149: The following error occurred while executing
                this line:
                C:\Documents and Settings\dkraiman\My Documents\ABMA\JBOSS\jbpm-bpel-1.1.GA\exam
                ples\common\mapping-build.xml:122: wscompile failed