10 Replies Latest reply on Aug 11, 2005 10:33 AM by bonfarj

    Getting Started with jBPM Starters Kit

    robert27329

      I downloaded jbpm-starters-kit-3.0.zip and jbpm-bpel-1.0-alpha2.zip and unpacked them into the following directory structure:
      C:\jBPM\jbpm-starters-kit-3.0\jbpm
      C:\jBPM\jbpm-starters-kit-3.0\jbpm-bpel
      C:\jBPM\jbpm-starters-kit-3.0\jbpm-db
      C:\jBPM\jbpm-starters-kit-3.0\jbpm-server

      I then attempted to build the jbpm-bpel portion as described by changing the build.properties file to contain:
      jbpm.bpel.home=C:/jBPM/jbpm-starters-kit-3.0/jbpm-bpel
      jboss.home=C:/jBPM/jbpm-starters-kit-3.0/jbpm
      ant.home=C:/apache-ant-1.6.5

      And then from a command window attempted to build and got the following error(s):
      C:\jBPM\jbpm-starters-kit-3.0\jbpm-bpel>ant
      Buildfile: build.xml

      compile.bpel:
      [javac] Compiling 178 source files to C:\jBPM\jbpm-starters-kit-3.0\jbpm-bpe
      l\build\bpel.classes
      [javac] C:\jBPM\jbpm-starters-kit-3.0\jbpm-bpel\src\bpel\org\jbpm\bpel\data\
      def\Snippet.java:6: as of release 1.5, 'enum' is a keyword, and may not be used
      as an identifier
      [javac] (try -source 1.4 or lower to use 'enum' as an identifier)
      [javac] import org.apache.commons.lang.enum.Enum;
      [javac] ^

      I have read all the entries in this list but have not found out what may be the problem or how to fix it. Thanks,


        • 1. Re: Getting Started with jBPM Starters Kit
          jgerlach

           


          [javac] C:\jBPM\jbpm-starters-kit-3.0\jbpm-bpel\src\bpel\org\jbpm\bpel\data\
          def\Snippet.java:6: as of release 1.5, 'enum' is a keyword, and may not be used
          as an identifier
          [javac] (try -source 1.4 or lower to use 'enum' as an identifier)
          [javac] import org.apache.commons.lang.enum.Enum;
          [javac] ^



          I haven't used bpel, but it appears that you're using Java 1.5 and bpel was written for 1.4.

          I'd suggest installing jdk1.4.x or replace "enum" in Snippet.java to something else.

          • 2. Re: Getting Started with jBPM Starters Kit
            aguizar

            jbpm-bpel-1.0-alpha2 depends on classes in the package org.apache.commons.lang.enum from the Apache commons-lang 2.0, but JDK 1.5 does not like using "enum" as a name as it is now a Java keyword.

            To fix this, open the ant build file in the jbpm-bpel directory, locate target compile.bpel and enable source compatibility with 1.4 by adding the source attribute to the javac task:

            <javac srcdir="${bpel.src}" destdir="${bpel.build}" debug="on" source="1.4">
             <classpath refid="bpel.classpath"/>
            </javac>


            We've upgraded to commons-lang 2.1 which will eliminate this problem in future BPEL extension releases.

            • 3. Re: Getting Started with jBPM Starters Kit
              robert27329

              The source="1.4" correct the build failure.
              Thanks,

              • 4. Re: Getting Started with jBPM Starters Kit
                robert27329

                The next problem I am having with jbpm-bpel is that after staring the server and then I copy the bar-deployer file:

                2.4.2 BPEL application deployer service
                Start JBoss in the default server configuration (see server configurations). Then look for the bar-deployer.sar file you just built within directory build. This file contains the BPEL application deployer service. We will explore the concept of BPEL application in the tutorial section.

                Deploy bar-deployer.sar to JBoss by copying it to the deploy directory of the default server configuration. JBoss is now ready to deploy BPEL application archives (ending with a bar extension).

                to C:\jBPM\jbpm-starters-kit-3.0\jbpm-server\server\jbpm\deploy I get the following error from the server:

                10:33:23,493 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

                --- MBeans waiting for other MBeans ---
                ObjectName: jboss.par:service=BARDeployer
                State: CONFIGURED
                I Depend On:
                jboss.ws4ee:service=ServiceDeployerJSE

                --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
                ObjectName: jboss.ws4ee:service=ServiceDeployerJSE
                State: NOTYETINSTALLED
                Depends On Me:
                jboss.par:service=BARDeployer

                I am not sure what the next step is?
                Thanks for your help...

                • 5. Re: Getting Started with jBPM Starters Kit
                  aguizar

                  Looks like your JBoss server does not have JBossWS installed. What server version and configuration are you using? We've tested it in version 4.0.2, default configuration.

                  • 6. Re: Getting Started with jBPM Starters Kit
                    robert27329

                     

                    "aguizar" wrote:
                    Looks like your JBoss server does not have JBossWS installed. What server version and configuration are you using? We've tested it in version 4.0.2, default configuration.


                    I am using the JBoss server supplied in the jBPM Starters Kit. The readme file under the "\jbpm-server" directory says:

                    "This is a preconfigured jboss 4.0.2 installation that contains jBPM.

                    For reducing download the minimal, default and all server configurations have been removed. Only the jbpm configuration is available. (start with run.bat -c jbpm). "

                    Is this the problem?
                    Thanks,

                    • 7. Re: Getting Started with jBPM Starters Kit
                      aguizar

                      It is. The preconfigured JBoss installation does not contain the jboss-ws4ee.sar package required by the BPEL extension. Please use a conventional JBoss installation and the 'default' server configuration instead.

                      We'll review the Starters Kit so that its embedded JBoss includes all required packages to run the BPEL extension.

                      • 8. Re: Getting Started with jBPM Starters Kit
                        bonfarj

                        Utilizing this topic, i'm having similar problems with the bpel extension. First the 5 erros caused by org.apache.commons.lang.enum... i add the attribute source="1.4" at and finished the problem. But now i hava other problem, see:

                        Buildfile: build.xml
                        
                        compile.bpel:
                        
                        build.bpel:
                        
                        compile.bar.deployer:
                         [javac] Compiling 2 source files to F:\projeto_webflowah\testes\jbpm-bpel-1.0-alpha2\build\jboss.classes
                         [javac] F:\projeto_webflowah\testes\jbpm-bpel-1.0-alpha2\src\jboss\org\jboss\jbpm\bar\BARDeployer.java:33: cannot access org.jboss.mx.util.JBossNotificationBroadcasterSupport
                         [javac] file org\jboss\mx\util\JBossNotificationBroadcasterSupport.class not found
                         [javac] public class BARDeployer extends SubDeployerSupport implements BARDeployerMBean {
                         [javac] ^
                         [javac] F:\projeto_webflowah\testes\jbpm-bpel-1.0-alpha2\src\jboss\org\jboss\jbpm\bar\BARDeployerMBean.java:8: package org.jboss.mx.util does not exist
                         [javac] import org.jboss.mx.util.ObjectNameFactory;
                         [javac] ^
                         [javac] F:\projeto_webflowah\testes\jbpm-bpel-1.0-alpha2\src\jboss\org\jboss\jbpm\bar\BARDeployer.java:48: cannot find symbol
                         [javac] symbol : method setSuffixes(java.lang.String[])
                         [javac] location: class org.jboss.jbpm.bar.BARDeployer
                         [javac] setSuffixes(new String[] { "bar" });
                         [javac] ^
                         [javac] F:\projeto_webflowah\testes\jbpm-bpel-1.0-alpha2\src\jboss\org\jboss\jbpm\bar\BARDeployer.java:49: cannot find symbol
                         [javac] symbol : variable RELATIVE_ORDER_400
                         [javac] location: class org.jboss.jbpm.bar.BARDeployer
                         [javac] setRelativeOrder(RELATIVE_ORDER_400);
                         [javac] ^
                         [javac] F:\projeto_webflowah\testes\jbpm-bpel-1.0-alpha2\src\jboss\org\jboss\jbpm\bar\BARDeployer.java:60: cannot find symbol
                         [javac] symbol : variable OBJECT_NAME
                         [javac] location: class org.jboss.jbpm.bar.BARDeployer
                         [javac] return name == null ? OBJECT_NAME : name;
                         [javac] ^
                         [javac] F:\projeto_webflowah\testes\jbpm-bpel-1.0-alpha2\src\jboss\org\jboss\jbpm\bar\BARDeployer.java:66: cannot access org.jboss.util.NestedException
                         [javac] file org\jboss\util\NestedException.class not found
                         [javac] try {
                         [javac] ^
                        


                        can somebody help me?

                        thx!! :)







                        I'm using:
                        - jBoss 4.0.2
                        - jBpm-BPEL-1.0-alpha2
                        - Ant 1.6
                        - J2SE 5 (1.5)
                        - Windows XP Professional SP2

                        • 9. Re: Getting Started with jBPM Starters Kit
                          bonfarj

                          does nobody know? :(

                          • 10. Re: Getting Started with jBPM Starters Kit
                            bonfarj

                            I got it! The problem was in build.properties... i'm using Windows and wrote the file with "\" instead of "/"... now i put "/" and everything is working fine :)