Building the JBPM Console Dev Environment

If you want to customize or improve the current jbpm console take a look at the following blog post

Open BPM

Hello Everyone,

In this post I wanted to go over the steps on how to build the environment in order to work on the JBPM-Console project. The main feature of JBPM-Console is a web application that allows managing Business Processes instances and interact with runtime tasks generated by the process executions.

Before starting, I would like to thank Salaboy for guiding me with the necessary steps.

1- In order to start working on it, we need to get the source code from github:

2- After getting the code we’ll need to build the project using Maven:

  • mvn clean install
    • This will take some time. In case this command fails, try running it as root it worked that way for me
    • If you are still getting errors please check the troubleshooting section below (Item 1)

3- Now we are getting to the fun part, lets run the…

View original post 151 more words

Advertisements

Published by:

salaboy

Open Source Developer. Author of the jBPM, jBPM5, jBPM6 Developer Guide & Mastering Drools Books. Now Principal Software Engineer @ Alfresco, previously Senior Software Developer @ Red Hat / JBoss.

Categories Java101 Comments

101 thoughts on “Building the JBPM Console Dev Environment”

    1. Hi Shaimaa,
      You can try with mvn clean install -O (the -O option tries to build the source code in offline mode, which means that maven will not try to get the snapshots, but you need to make sure that at least once maven downloaded all that is necessary).

      Regards

      Like

  1. Dear Salaboy
    Thank you for your fast reply
    now i failed to build source code there are compilation errors due to missing classes i cloned the source code yesterday can you help me in that
    ?

    Like

      1. Dear Salaboy
        now after pulling the project
        i get the following error when build
        [ERROR] ‘dependencies.dependency.version’ for org.mortbay.jetty:jetty:jar is missing. @ line 269, column 17
        [ERROR] ‘dependencies.dependency.version’ for org.mortbay.jetty:jetty-plus:jar is missing. @ line 274, column 17
        [ERROR] ‘dependencies.dependency.version’ for org.mortbay.jetty:jetty-naming:jar is missing. @ line 285, column 17

        at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:363)
        at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636)
        at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:585)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:234)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
        [ERROR]
        [ERROR] The project org.jbpm:jbpm-console-ng-showcase:6.2.0-SNAPSHOT (/opt/SRC_9_6/jbpm-console-ng/jbpm-console-ng-showcase/pom.xml) has 3 errors
        [ERROR] ‘dependencies.dependency.version’ for org.mortbay.jetty:jetty:jar is missing. @ line 269, column 17
        [ERROR] ‘dependencies.dependency.version’ for org.mortbay.jetty:jetty-plus:jar is missing. @ line 274, column 17
        [ERROR] ‘dependencies.dependency.version’ for org.mortbay.jetty:jetty-naming:jar is missing. @ line 285, column 17
        [ERROR]
        [ERROR]
        [ERROR] For more information about the errors and possible solutions, please read the following articles:
        [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

        Like

  2. As you can see we updated master to 6.2.0-SNAPSHOT, so I would recommend you to clone the droolsjbpm-build-bootstrap repository and build it locally and then try it out again.
    I will clean my local environment and try here to see I can reproduce your error but I’m assuming that you have an old version of the master parent pom.
    Yesterday the jetty dependency was moved and it seems that you didn’t get the latest snapshots of the parent pom.

    Like

  3. now a new error
    Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Failure to find org.jbpm:jbpm-designer-client:jar:6.2.0-SNAPSHOT in http://repository.jboss.org/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of jboss-public-repository-group has elapsed or updates are forced
    at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:230)
    at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:204)
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:427)
    … 26 more

    Like

    1. yeah, that’s because all the dependencies are not uploaded yet to jenkins, if you don’t want to wait until that happen you will need to build all the dependencies by hand.. in this case you need the jbpm-designer.

      Like

  4. When all the builds are completed with all the tests jenkins will publish the new artefacts. It usually takes a day or two if everything is ok, if a project fails it usually takes longer.. so I would say tomorrow.. I’m building the projects locally and it is working here.

    Like

    1. in the last error that you posted mention a jbpm-designer artefact that means that you will need to clone the jbpm-designer repository and do a mvn clean install locally.
      If that fails, you need to take a look at the error find where the artefact that is missing is clone that repo and build that project, until you manage to build all of them correctly.

      Like

  5. Dear Salaboy I cloned the JBPM designer from the following URL https://github.com/droolsjbpm/jbpm-designer.git and when try to build i got the following error

    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project jbpm-designer-backend: Could not resolve dependencies for project org.jbpm:jbpm-designer-backend:jar:6.2.0-SNAPSHOT: Failure to find org.drools:jbpm-simulation:jar:6.2.0-SNAPSHOT in http://repository.jboss.org/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of jboss-public-repository-group has elapsed or updates are forced
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210)
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117)
    at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201)

    I need to know in what project i should clone now?

    Like

    1. Yes, that’s inside the droolsjbpm-integration repository. I would suggest you today just to go to the console, do a git pull and
      then mvn clean install -U to see if the dependencies are in the jboss maven repo, so you don’t need to clone any other repository.

      Like

      1. still have the same problem
        i clonned the JBPM-console project again today at URL https://github.com/droolsjbpm/jbpm-console-ng.git when try to build i got the error of missing resource of JBPM designer
        then i clonned the JBPm-designer project again and now i have the same error

        ——————————————————————————
        Failed to execute goal on project jbpm-designer-backend: Could not resolve dependencies for project org.jbpm:jbpm-designer-backend:jar:6.2.0-SNAPSHOT: Failure to find org.drools:jbpm-simulation:jar:6.2.0-SNAPSHOT in http://repository.jboss.org/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of jboss-public-repository-group has elapsed or updates are forced -> [Help 1]
        org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project jbpm-designer-backend: Could not resolve dependencies for project org.jbpm:jbpm-designer-backend:jar:6.2.0-SNAPSHOT: Failure to find org.drools:jbpm-simulation:jar:6.2.0-SNAPSHOT in http://repository.jboss.org/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of jboss-public-repository-group has elapsed or updates are forced
        at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210)
        at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117)
        at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258)
        at
        ————————————————-

        is there anything wrong?

        Like

      2. Yeah, it could be that there is project that is not compiling causing that the droolsjbpm-integration projects (where the jbpm-simulator project is) are not deployed to the jboss maven repository. You will need to build droolsjbpm-integration then.

        Regards

        Like

    1. Which Source Code? The jbpm-installer project collects all the artefacts and build the zip file t hat you downloaded from source forge, you already have the source code there.

      Like

  6. Now finally i got the log in page but when login a loading page appears ” Please wait
    Loading application…” and the waiting image is moving and it takes too long and nothing happens where can i find a log for this “nothing in GWT console or in eclipse console”

    Like

    1. Please give some details about how you are running the application and what you are trying to achieve. Based on your previous comments I cannot imagine how you are trying to deploy or access to the app.

      Like

  7. after building the JBPM-console-ng and the Build Succeeded in the eclipse
    then right click on jbpm-console-ng-showcase and choose Run As —> Maven Builld and write in the Goal “gwt:run” the GWT tool opened and when copy the URL appeared in it and put it in Firefox “with GWT plugin ” the login page appeared and then i typed username and password the waiting page appeared and take much time

    Like

    1. Well it takes some time the first time because it compiles all the client side code to JavaScript. That’s more like a GWT problem than a jBPM problem. Remember that you are running in Hosted (developer) Mode which means that all the compilation and code generated is orchestrated for debugging purposes. If you want to have “real life” speed you can just deploy the application to jboss, in the same way that the jbpm installer is doing.

      Like

  8. chrome is not supporting GWT plugin on LInux any more and i am using FireFox 26 which FF do u recommend to use “I am using Linux Ubuntu”

    Like

  9. Dear Salaboy
    Finally i run the SRC code on FF 25 thanks for ur suggestion
    but it is an older version that the JBPM installer
    from where i can get the JBPM Installer SRC code i don’t know how to attach the screen shots?

    Like

  10. It depends on which version did you manage to get working. Why are you using an older version? Everything is in the jbpm repository inside the jbpm-installer directory. You don’t need nothing more than that..
    Use the jbpm user forums which are much more complete for asking questions

    Like

  11. Dear Salaboy
    Thank you for your reply and Continuous Help
    after building the kie-wb directory finally i run the application a week ago
    but currently when try run
    i have the following Exception in the GWT Development Console in the Jetty Tab

    00:01:38.992 [WARN] EXCEPTION
    java.lang.ClassNotFoundException: org.guvnor.m2repo.backend.server.FileDownloadServlet at java.lang.ClassLoader.findClass(ClassLoader.java:531) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:352) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337) at org.mortbay.util.Loader.loadClass(Loader.java:91) at org.mortbay.util.Loader.loadClass(Loader.java:71) at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:73) at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:233) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:616) at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:513) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448) at org.jboss.errai.cdi.server.gwt.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:525) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.jetty.handler.RequestLogHandler.doStart(RequestLogHandler.java:115) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.jetty.Server.doStart(Server.java:222) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.jboss.errai.cdi.server.gwt.JettyLauncher.start(JettyLauncher.java:738) at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1093) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:836) at com.google.gwt.dev.DevMode.main(DevMode.java:311)

    Like

    1. Hi Shaima, which version are you using? Did you pulled the latest changes?
      I was running the application on Friday, so it was working until there.. I will check tomorrow first time in the morning if everything is ok.

      Cheers

      Like

  12. Dear Salaboy
    i clonned the SRC code for KIE distributions again and i am working on XUbuntu Virtual BOX 4 GB RAM with FireFox 25
    when try to run the SRC Code it builds fine and when run after the login page it appears the loading Image and takes much time with no result
    Kindly advice
    is there any recommendation for development environment?

    Like

    1. I guess that you will need to downgrade a version of firefox and the plugin or to the latest supported chrome version. This is more about gwt than jbpm, so please read their forums, because I don’t have a linux machine to help you on that.

      Like

  13. we are having the same version of chrome on another machine (windows 7) and we are trying to use this machine as a client , but we don’t know how to run the application remotely and how also to start debugging mode on chrome 35

    Like

  14. i got the following exception
    00:08:47.490 [ERROR] Uncaught exception escaped
    java.lang.IllegalArgumentException: Something other than a Java object was returned from JSNI method
    ‘@com.google.gwt.core.client.impl.Impl::apply(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)’:
    JS value of type int, expected java.lang.Object at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:178)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:281)
    at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
    at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
    at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:242)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    Like

  15. Dear Salaby
    I tried to build the SRC_Code today and i got the following exception

    org.sonatype.aether.connector.async.ResourceDoesNotExistException: Unable to locate resource http://repository.jboss.org/nexus/content/groups/public/org/kie/uberfire/kie-uberfire-metadata-backend-lucene/6.2.0-SNAPSHOT/kie-uberfire-metadata-backend-lucene-6.2.0-SNAPSHOT.jar. Error code 404
    at org.sonatype.aether.connector.async.AsyncRepositoryConnector.handleResponseCode(AsyncRepositoryConnector.java:465)
    at org.sonatype.aether.connector.async.AsyncRepositoryConnector.access$1800(AsyncRepositoryConnector.java:90)
    at org.sonatype.aether.connector.async.AsyncRepositoryConnector$GetTask$1.onCompleted(AsyncRepositoryConnector.java:750)
    at org.sonatype.aether.connector.async.CompletionHandler.onCompleted(CompletionHandler.java:180)
    at org.sonatype.aether.connector.async.CompletionHandler.onCompleted(CompletionHandler.java:39)
    at com.ning.http.client.providers.netty.NettyResponseFuture.getContent(NettyResponseFuture.java:244)
    at com.ning.http.client.providers.netty.NettyResponseFuture.done(NettyResponseFuture.java:269)

    Like

    1. Hmm.. if you are using snapshots there might be some issues today and tomorrow, because new modules were added and probably jenkins is not up to date right now.
      I’m building all the modules locally and it seems to be working ok, are you willing to try that out?

      Like

  16. another Question is there any other repository to get the same source code , cause you were saying if i’m using snapshots , so is there any other alternative than using snapshots ?

    Like

      1. Dear salaboy
        is there a compatibility matrix for all projects Tags??
        which tag in project X is compatible with which tag in Project Y
        Thanks

        Like

      2. I’m not sure to fully understand what are you looking for. Can you please explain a little bit more?
        All the repositories inside the droolsjbpm organisation are build based on the droolsjbpm-build-bootstrap parent pom. If you browse that repository you will find different *-bom pom definitions that defines which versions of each component (and their dependencies) are used.
        All the components nowadays are aligned to use the same version. Which means that if you want to use the jbpm form modeller with the jbpm console ng you will need to use the same version for the to work. This is automatically handled by the definitions of the *-bom projects inside the droolsjbpm-build-bootstrap repository.

        HTH
        Regards

        Like

  17. Dear Salaboy
    I am trying to build the modules you sent
    but now i have the following exception
    when try to build
    KIE-Common or DroolsKIE or Designer

    [ERROR] The build could not read 1 project -> [Help 1]
    org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
    [WARNING] ‘dependencies.dependency.(groupId:artifactId:type:classifier)’ must be unique: org.jboss.weld:weld-core:jar -> duplicate declaration of version (?) @ line 61, column 17
    [WARNING] ‘dependencies.dependency.(groupId:artifactId:type:classifier)’ must be unique: org.jboss.weld.se:weld-se-core:jar -> duplicate declaration of version (?) @ line 66, column 17
    [ERROR] ‘dependencies.dependency.version’ for org.kie.workbench.screens:kie-wb-common-organizationalunit-manager:jar is missing. @ line 254, column 17
    [ERROR] ‘dependencies.dependency.version’ for org.kie.workbench.screens:kie-wb-common-message-console-api:jar is missing. @ line 279, column 17
    [ERROR] ‘dependencies.dependency.version’ for org.kie.workbench.screens:kie-wb-common-message-console-backend:jar is missing. @ line 284, column 17
    [ERROR] ‘dependencies.dependency.version’ for org.kie.workbench.screens:kie-wb-common-message-console-client:jar is missing. @ line 289, column 17

    at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:363)
    at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636)
    at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:585)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:234)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
    [ERROR]
    [ERROR] The project org.drools:drools-wb-webapp:6.2.0-SNAPSHOT (/home/salaheddeen/git/drools-wb/drools-wb-webapp/pom.xml) has 4 errors
    [ERROR] ‘dependencies.dependency.version’ for org.kie.workbench.screens:kie-wb-common-organizationalunit-manager:jar is missing. @ line 254, column 17
    [ERROR] ‘dependencies.dependency.version’ for org.kie.workbench.screens:kie-wb-common-message-console-api:jar is missing. @ line 279, column 17
    [ERROR] ‘dependencies.dependency.version’ for org.kie.workbench.screens:kie-wb-common-message-console-backend:jar is missing. @ line 284, column 17
    [ERROR] ‘dependencies.dependency.version’ for org.kie.workbench.screens:kie-wb-common-message-console-client:jar is missing. @ line 289, column 17
    [ERROR]

    Like

    1. Which project are you trying to build?
      It seems that you have something wrong in your local environment.. all the projects are working ok here. Tell me which project are your trying to build and I will try here.
      (remember to do a pull before building any project please)

      Like

  18. Dear salaboy
    I am here again
    and i have a problem now
    when try to build the project at
    https://github.com/droolsjbpm/jbpm-form-modeler

    [ERROR] The build could not read 1 project -> [Help 1]
    org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
    [WARNING] ‘build.plugins.plugin.(groupId:artifactId)’ must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-resources-plugin @ line 77, column 21
    [FATAL] Non-resolvable parent POM: Could not find artifact org.kie:kie-parent-with-dependencies:pom:6.2.0-SNAPSHOT and ‘parent.relativePath’ points at wrong local POM @ line 6, column 13

    at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:363)
    at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636)
    at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:585)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:234)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
    kindly advice

    Like

    1. Try cloning also droolsjbpm-build-bootstrap in the same parent directory where you cloned the jbpm-form-modeller and do a mvn clean install in droolsjbpm-build-bootstrap before the jbpm-form-modeller, that should solve your problem

      Like

  19. yes all projects are the master branch but should i clone and build all projects in the same day to ensure the same version???

    Like

    1. That’s the longest option, but you can do it if you want. You usually don’t need to do it and you can rely on jenkins to compile and provide everything, but if you are experiencing issues compiling the projects locally should do the trick. The projects are working fine here in my environment, so I guess that you are missing something there.

      You can try by wiping out your .m2/repository directory to force maven to download the latest snapshots. If that doesn’t work, depending on the issue (if you manage to locate where the issue is) you can just compile the project that is not available on jenkins yet. Once you get used to the procedure, you know exactly what to build in these weird cases where something is not updated properly.

      Regards

      Like

  20. Dear salaboy :
    i’m getting the following error
    Failed to execute goal on project kie-tomcat-integration: Could not resolve dependencies for project org.kie:kie-tomcat-integration:jar:6.2.0-SNAPSHOT:
    The following artifacts could not be resolved: org.apache.tomcat:catalina:jar:6.0.32,
    javax.security.jacc:javax.security.jacc-api:jar:1.4, javax.servlet:javax.servlet-api:jar:3.0.1:
    The repository system is offline but the artifact org.apache.tomcat:catalina:jar:6.0.32 is not available in the local
    repository. ->

    knwing that im building all modules offline and it was working correctly

    Like

  21. Hi sir,

    i need to use super dev mode. Is there any steps to follow because there some errors appeared during doing it.

    thanks in advance.

    Like

  22. Hi Sir,

    I built:
    1. kie-uberfire-extensions
    2. kie-wb-common
    3. drools-wb
    4. droolsjbpm-build-bootstrap

    and after running “mvn clean install -DskipTests” in each step, I obtained a successful message.
    The problem is when I tried to build “jbpm-console-ng” , I obtained a failure message:
    ======================================================================
    C:\jbpm-console-ng\jbpm-console-ng-dashboard\jbpm-console-ng-d
    ashboard-api\target\jbpm-console-ng-dashboard-api-6.2.0-SNAPSHOT-sources.jar;C:\jbpm-console-ng\jbpm-console-ng-dashboard\jbpm-console-ng-dashboard-client\target\jbpm-c
    onsole-ng-dashboard-client-6.2.0-SNAPSHOT-sources.jar;C:\Users\eng\.m2\repository\org\jbpm\jbpm-form-modeler-editor-api\6.2.0-SNAPSHOT\jbpm-form-modeler-editor-
    api-6.2.0-SNAPSHOT-sources.jar;C:\Users\eng\.m2\repository\org\jbpm\jbpm-form-modeler-editor-client\6.2.0-SNAPSHOT\jbpm-form-modeler-editor-client-6.2.0-SNAPSHO
    T-sources.jar;C:\Users\eng\.m2\repository\org\jbpm\jbpm-form-modeler-renderer-api\6.2.0-SNAPSHOT\jbpm-form-modeler-renderer-api-6.2.0-SNAPSHOT-sources.jar;C:\Us
    ers\eng\.m2\repository\org\jbpm\jbpm-form-modeler-renderer-client\6.2.0-SNAPSHOT\jbpm-form-modeler-renderer-client-6.2.0-SNAPSHOT-sources.jar, com.google.gwt.de
    v.Compiler, -logLevel, INFO, -style, OBF, -war, C:\jbpm-console-ng\jbpm-console-ng-showcase\target\jbpm-console-ng-showcase-6.2.0-SNAPSHOT, -localWorkers, 4, -Xfragment
    Count, -1, -deploy, C:\jbpm-console-ng\jbpm-console-ng-showcase\target\gwt-symbols-deploy, -gen, C:\jbpm-console-ng\jbpm-console-ng-showcase\target\.generated, org.jbpm
    .console.ng.FastCompiledjBPMShowcase]: Error while executing process. Cannot run program “C:\Program Files (x86)\Java\jdk1.7.0_55\jre\bin\java”: CreateProcess error=206
    , The filename or extension is too long
    [ERROR] -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
    [ERROR]
    [ERROR] After correcting the problems, you can resume the build with the command
    [ERROR] mvn -rf :jbpm-console-ng-showcase
    ======================================================================

    Could you Sir help me solving this please ?.
    Thanks in advance

    Like

  23. Hi Sir,

    i use jbpm version 6.1.0 final and i need to change the behavior of searching in process instance screen to search with any variable when the user enter value in search box

    i changed in DataServiceEntryPointImpl class to search with with variable data

    but the method which is used to get instances( public Collection getProcessInstances(List states, String filterText, String initiator) {
    )

    doesn’t contain value for this argument filterText and always empty so i can’t complete it

    thanks in advance

    Like

    1. Hi Shalby,
      The main problem is that if you want to do that search via the database will be ok for small number of processes but it will not scale for a real environment.
      In order to do that in a performant way you need to add an indexing framework into the mix, instead of going to the database to do the search.
      If you still want to go in that direction you will need to modify the underlaying service to use the Filter text to create a custom query in the db, so just follow the implementation of the methods in the DataServiceEntryPointImpl.
      HTH

      Like

      1. thanks sir for your response,

        i already create custom query to search with filter text but i can’t get the value filter text because the filter text always empty and when i press search button, the value initiator only changed to be the user (admin for example) and filter Text equal “”

        IS there is away to get the value of filter Text

        Thanks in advance

        Like

  24. Hi Shalby,
    I will not be able to look into this until Monday/Tuesday,
    I recommend you to debug that class and search why the textFilter is empty.. you should be able to figure that out by debugging the app.
    Regards

    Like

    1. Hi sir,
      thank you for your help.

      i ask again about search behavior because i can’t get the reason for this strange behavior.

      i use jbpm full installer for jbpm 6.1.0 and when i check lib in web-inf folder i only
      found two jars for this sub-module jbpm-console-ng-process-runtime (api,backend)
      and doesn’t contain this sub-module jbpm-console-ng-process-runtime-client
      which will helped me in search.

      IS there is any way to add this jar to war and affect on this behavior?

      thanks in advance and sorry for inconvenience.

      Like

  25. Hi sir,

    because when i checked this module,i found it contain the complete search behavior and when i do debug for jbpm-console-ng 6.2 i found the search button functions in this module

    and jbpm 6.1 doesn’t contain this module.

    and when i do the debug for jbpm6.1 till now i can’t catch the root cause why filterText string is empty.

    Like

    1. all that module is translated to JavaScript and sent to the browser, that’s why you will not find it in the war file. There is no need for it in there. When you compile the application and create the distribution wars all the code inside the module is translated to JavaScript. If you want to debug the code there use gwt:debug and then attach a debugger to it. Or you can try super dev mode as well.
      Regards

      Like

  26. Hi sir;
    i get this error when i tried to build this module ( kie-wb-common)

    Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project kie-wb-common-default-editor-client: Compilation failure
    /kie-wb-common/kie-wb-common-screens/kie-wb-common-default-editor/kie-wb-common-default-editor-client/src/main/java/org/kie/workbench/common/screens/defaulteditor/client/editor/KieTextEditorViewImpl.java:[90,4] error: method does not override or implement a method from a supertype.

    Like

      1. Did you manage to get it working? Did you pull t he kie-wb-common project? can you try pulling today? make sure that you pull from all the projects.

        Like

  27. Dears
    I need to build jbpm-console and jbpm-dashboard source code offline on windows 7
    how can i do that?
    if there are prerequisites before do that, please tell me.

    Like

    1. Hi Ayman,
      You should build the code being online, mostly because of Maven, this is not related with jBPM itself, but with the dependency management mechanism that Maven uses.
      In order to get all the libraries required by GWT, jBPM and other frameworks included in the tool you need to be online to build the source code in your local environment.

      Like

  28. Thanks for your fast reply

    I try to clone and build these repositories in this order using eclipse Luna SR1 (4.4.1) installed on windows 7
    https://github.com/uberfire/uberfire
    https://github.com/droolsjbpm/droolsjbpm-build-bootstrap
    https://github.com/droolsjbpm/kie-uberfire-extensions (new repo!)
    https://github.com/droolsjbpm/guvnor
    https://github.com/droolsjbpm/kie-wb-common
    https://github.com/droolsjbpm/drools-wb
    https://github.com/droolsjbpm/jbpm-form-modeler
    https://github.com/droolsjbpm/jbpm-designer
    https://github.com/droolsjbpm/jbpm-console-ng

    I failed with bui1st package “uberfire” raising the following exception:
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project uberfire-commons: Compilation failure
    [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
    [ERROR] -> [Help 1]
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project uberfire-commons: Compilation failure
    No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

    Should I setup git repository first before build or what?

    Like

    1. Hi this error: [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
      Is quite clear, make sure that you have the Oracle 1.7 JDK in your environment.

      Like

  29. Dear ,
    i want to build module “jbpm-form-modeler” from branch 6.1.x what is the compatible branch of modules uberfire and kie-uberfire-extensions i needs to use it ,can i use master or another branch?

    Like

    1. Hi there you can take a look at the droolsjbpm-build-bootstrap branches, which will tell you which artefacts and versions are required. I’m not 100% sure but it might be the case that kie-uberfire-extensions didn’t exist for 6.1.x which means that you will need to use the appropriate uberfire version for that branch.

      Regards

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s