4 Replies Latest reply on Jan 23, 2008 10:47 PM by Shefali Agarwal

    exception encountered in jbpm bpel examples

    Shefali Agarwal Newbie

      hi,
      I am new to jbpm bpel and was trying to execute the hello application of jbpm-bpel-1.1.GA examples. I am able to deploy the hello business process definition on jboss as 4.0.5.GA. But when I try to test the process using application client as provided in the example I get these exceptions:
      compile.test.dependencies:
      compile.test:
      [javac] Compiling 1 source file to D:\StockMarketProject\jbpm-bpel-1.1.GA\
      amples\hello\target\test\classes
      [javac] D:\StockMarketProject\jbpm-bpel-1.1.GA\examples\hello\src\test\jav
      org\jbpm\bpel\tutorial\hello\HelloTest.java:32: cannot find symbol
      [javac] symbol : class HelloWorldService
      [javac] location: class org.jbpm.bpel.tutorial.hello.HelloTest
      [javac] private HelloWorldService helloService;
      [javac] ^
      [javac] D:\StockMarketProject\jbpm-bpel-1.1.GA\examples\hello\src\test\jav
      org\jbpm\bpel\tutorial\hello\HelloTest.java:40: cannot find symbol
      [javac] symbol : class HelloWorldService
      [javac] location: class org.jbpm.bpel.tutorial.hello.HelloTest
      [javac] helloService = (HelloWorldService) iniCtx.lookup("java:comp/en
      service/Hello");
      [javac] ^
      [javac] D:\StockMarketProject\jbpm-bpel-1.1.GA\examples\hello\src\test\jav
      org\jbpm\bpel\tutorial\hello\HelloTest.java:45: cannot find symbol
      [javac] symbol : class Greeter
      [javac] location: class org.jbpm.bpel.tutorial.hello.HelloTest
      [javac] Greeter proxy = helloService.getGreeterPort();
      [javac] ^
      [javac] 3 errors
      BUILD FAILED

      Can somebody provide a solution to this problem?

        • 1. Re: exception encountered in jbpm bpel examples
          Alejandro Guizar Master

          The classes HelloWorldService and Greeter are generated by the Java mapping generation tool in the Ant target generate.mapping. This target is normally executed as a dependency of the test target, but I don't see any mapping generation being performed in the output you provided.

          Can you post the full output produced by Ant?

          • 2. Re: exception encountered in jbpm bpel examples
            Shefali Agarwal Newbie

            hi Alejandro,

            This is the full output as produced by ant. The mappings are getting generated but still I am getting this exception:

            D:\jbpm-bpel-1.1.GA\examples\hello>ant test
            Buildfile: build.xml

            detect.wsdl:

            get.published.wsdl:
            [copy] Copying 3 files to D:\jbpm-bpel-1.1.GA\examples\hello\target\resourc
            es\web\wsdl

            check.mapping:

            generate.mapping:

            detect.mapping.tool:

            wstools:
            [move] Moving 1 file to D:\jbpm-bpel-1.1.GA\examples\hello\target\resources
            \web

            detect.mapping.tool:

            wscompile:

            package.client:
            [jar] Building jar: D:\jbpm-bpel-1.1.GA\examples\hello\target\hello-client
            .jar

            compile.test.dependencies:

            compile.test:
            [javac] Compiling 1 source file to D:\jbpm-bpel-1.1.GA\examples\hello\target
            \test\classes
            [javac] D:\jbpm-bpel-1.1.GA\examples\hello\src\test\java\org\jbpm\bpel\tutor
            ial\hello\HelloTest.java:32: cannot find symbol
            [javac] symbol : class HelloWorldService
            [javac] location: class org.jbpm.bpel.tutorial.hello.HelloTest
            [javac] private HelloWorldService helloService;
            [javac] ^
            [javac] D:\jbpm-bpel-1.1.GA\examples\hello\src\test\java\org\jbpm\bpel\tutor
            ial\hello\HelloTest.java:40: cannot find symbol
            [javac] symbol : class HelloWorldService
            [javac] location: class org.jbpm.bpel.tutorial.hello.HelloTest
            [javac] helloService = (HelloWorldService) iniCtx.lookup("java:comp/env/
            service/Hello");
            [javac] ^
            [javac] D:\jbpm-bpel-1.1.GA\examples\hello\src\test\java\org\jbpm\bpel\tutor
            ial\hello\HelloTest.java:45: cannot find symbol
            [javac] symbol : class Greeter
            [javac] location: class org.jbpm.bpel.tutorial.hello.HelloTest
            [javac] Greeter proxy = helloService.getGreeterPort();
            [javac] ^
            [javac] 3 errors

            BUILD FAILED
            D:\jbpm-bpel-1.1.GA\examples\common\test-build.xml:49: Compile failed; see the c
            ompiler error output for details.

            Total time: 6 seconds
            D:\jbpm-bpel-1.1.GA\examples\hello>

            • 3. Re: exception encountered in jbpm bpel examples
              Alejandro Guizar Master

              Please use wscompile instead of wstools. To do so, install JWSDP and set the jwsdp.home entry in your build.properties to the location where you installed it.

              • 4. Re: exception encountered in jbpm bpel examples
                Shefali Agarwal Newbie

                hey thanks for the solution...
                I tried the same and its working fine now...
                Thanks again :)