5 Replies Latest reply on Feb 7, 2013 8:09 AM by sakthi_19tcs

    JBPM 5.2 console can't get any Guvnor Process Definition

    roger0681

      I'm using

       

      jbpm-5.2.0.Final

      jbpm-5.2.0.Final-gwt-console

      guvnor-distribution-wars-5.3.1.Final

       

       

      on

      jboss-as-7.0.1

       

       

       

      I could create process definitions in Eclipse, add them to Guvnor, build the package, create snapshots, etc. But when trying to see process definitions in jbpm-console, I just see nothing.

      If I try using the rest api (http://127.0.0.1:8080/gwt-console-server/rs/process/definitions), I get:

       

      {"definitions":[]}

       

      (and JBoss logs says that parsed 0 process definitions).

       

       

      I've made several packages in Guvnor, and jbpm-console seems to be trying to parse processes from all of them, but keeps saying he got 0 processes to parse.

       

       

      Here I upload a list of assets obtained from the Guvnor's rest api (http://127.0.0.1:8080/drools-guvnor/rest/packages/defaultPackage/assets).

       

       

      Should jbpm-console see any process? What does a process definition look like in the rest API when it is parseable by jbpm-console?

       

       

      Thanks a lot,

      Roger

        • 1. Re: JBPM 5.2 console can't get any Guvnor Process Definition
          tsurdilovic

          Look at your logs closer. Do you see a message that say like "Could not connect to Guvnor."? Do you get the same when using "localhost" instead of 127.0.0.1 ip directly?

          • 2. Re: JBPM 5.2 console can't get any Guvnor Process Definition
            roger0681

            Hi, Tihomir

             

            thanks for the response.

             

             

            The log says:

            23:57:57,406 INFO  [stdout] (http--127.0.0.1-8080-7) INFO  16-01 23:57:57,390 (NilAuthenticator.java:authenticate:35)All users are guests.
            23:57:58,062 INFO  [stdout] (http--127.0.0.1-8080-8) INFO  16-01 23:57:58,062 (NilAuthenticator.java:authenticate:35)All users are guests.
            23:57:59,781 INFO  [stdout] (http--127.0.0.1-8080-8) INFO  16-01 23:57:59,781 (NilAuthenticator.java:authenticate:35)All users are guests.
            23:57:59,781 INFO  [stdout] (http--127.0.0.1-8080-8) INFO  16-01 23:57:59,781 (RepositoryServlet.java:allowUser:113) admin authenticated for rest api
            23:57:59,781 INFO  [stdout] (http--127.0.0.1-8080-8) INFO  16-01 23:57:59,781 (PackageDeploymentServlet.java:execute:134)    PackageName: defaultPackage
            23:57:59,781 INFO  [stdout] (http--127.0.0.1-8080-8) INFO  16-01 23:57:59,781 (PackageDeploymentServlet.java:execute:135)    PackageVersion: LATEST
            23:57:59,781 INFO  [stdout] (http--127.0.0.1-8080-8) INFO  16-01 23:57:59,781 (PackageDeploymentServlet.java:execute:136)    PackageIsLatest: true
            23:57:59,781 INFO  [stdout] (http--127.0.0.1-8080-8) INFO  16-01 23:57:59,781 (PackageDeploymentServlet.java:execute:137)    PackageIsSource: false
            23:58:00,171 INFO  [stdout] (http--127.0.0.1-8080-8) INFO  16-01 23:58:00,171 (NilAuthenticator.java:authenticate:35)All users are guests.
            23:58:00,187 INFO  [stdout] (http--127.0.0.1-8080-8) INFO  16-01 23:58:00,171 (RepositoryServlet.java:allowUser:113) admin authenticated for rest api
            23:58:00,187 INFO  [stdout] (http--127.0.0.1-8080-8) INFO  16-01 23:58:00,187 (PackageDeploymentServlet.java:execute:134)    PackageName: roger2
            23:58:00,187 INFO  [stdout] (http--127.0.0.1-8080-8) INFO  16-01 23:58:00,187 (PackageDeploymentServlet.java:execute:135)    PackageVersion: LATEST
            23:58:00,187 INFO  [stdout] (http--127.0.0.1-8080-8) INFO  16-01 23:58:00,187 (PackageDeploymentServlet.java:execute:136)    PackageIsLatest: true
            23:58:00,187 INFO  [stdout] (http--127.0.0.1-8080-8) INFO  16-01 23:58:00,187 (PackageDeploymentServlet.java:execute:137)    PackageIsSource: false
            23:58:00,328 INFO  [stdout] (http--127.0.0.1-8080-8) INFO  16-01 23:58:00,328 (NilAuthenticator.java:authenticate:35)All users are guests.
            23:58:00,343 INFO  [stdout] (http--127.0.0.1-8080-8) INFO  16-01 23:58:00,328 (RepositoryServlet.java:allowUser:113) admin authenticated for rest api
            23:58:00,343 INFO  [stdout] (http--127.0.0.1-8080-8) INFO  16-01 23:58:00,343 (PackageDeploymentServlet.java:execute:134)    PackageName: roger
            23:58:00,343 INFO  [stdout] (http--127.0.0.1-8080-8) INFO  16-01 23:58:00,343 (PackageDeploymentServlet.java:execute:135)    PackageVersion: LATEST
            23:58:00,343 INFO  [stdout] (http--127.0.0.1-8080-8) INFO  16-01 23:58:00,343 (PackageDeploymentServlet.java:execute:136)    PackageIsLatest: true
            23:58:00,343 INFO  [stdout] (http--127.0.0.1-8080-8) INFO  16-01 23:58:00,343 (PackageDeploymentServlet.java:execute:137)    PackageIsSource: false

             

             

            and if I log in to the jbpm-console, click Process Overview, the console's log says

             

            2012-01-17 00:04:27,529 [DEBUG] ToolID: Process_Overview.0

            2012-01-17 00:04:27,615 [DEBUG] new subscription: appContext.model.listener -> org.jboss.bpm.console.client.process.DefinitionListView$5@144

            2012-01-17 00:04:27,615 [DEBUG] New Subscription: appContext.model.listener

            2012-01-17 00:04:28,117 [DEBUG] GET: http://127.0.0.1:8080/gwt-console-server/rs/process/definitions

            2012-01-17 00:04:28,143 [INFO ] Loaded 0 process definitions in 4 ms

             

            and nothing goes to JBoss logs.

             

             

             

             

            Now I see that in the JBoss logs, there says:

            23:58:00,359 ERROR [stderr] (http--127.0.0.1-8080-1) log4j:WARN No appenders could be found for logger (org.jbpm.integration.console.CommandDelegate).

            23:58:00,359 ERROR [stderr] (http--127.0.0.1-8080-1) log4j:WARN Please initialize the log4j system properly.

             

            I assume it is a Warning, but the real error says "ERROR"; I'll try to set up log4j to see if it is what is stopping jbpm-console's work.

             

            Thanks,

            Roger

            • 3. Re: JBPM 5.2 console can't get any Guvnor Process Definition
              langhartdev

              This may be due to the NilAuthenticator. Open the drools-guvnor.war archive file and in it, you will find a file at /WEB-INF/components.xml. Open the document and comment this:

               

                  

              <security:identity

                      authenticate-method="#{nilAuthenticator.authenticate}"/>

               

               

              And UNcomment this:

               

                  

              <security:identity authenticate-method="#{authenticator.authenticate}"

                      jaas-config-name="other"/>

               

              I think that should fix your problem.

              • 4. Re: JBPM 5.2 console can't get any Guvnor Process Definition
                roger0681

                Hi!

                 

                I changed the authenticator method, but there are no different results.

                 

                The log now looks like:

                 

                 

                12:10:33,593 INFO  [stdout] (http--127.0.0.1-8080-1) INFO  15-02 12:10:33,593 (DefaultAuthenticator.java:authenticate:39)    User logged in via default authentication module (no security check).
                12:10:34,171 INFO  [stdout] (http--127.0.0.1-8080-4) INFO  15-02 12:10:34,171 (DefaultAuthenticator.java:authenticate:39)    User logged in via default authentication module (no security check).
                12:10:36,078 INFO  [stdout] (http--127.0.0.1-8080-4) INFO  15-02 12:10:36,078 (DefaultAuthenticator.java:authenticate:39)    User logged in via default authentication module (no security check).
                12:10:36,078 INFO  [stdout] (http--127.0.0.1-8080-4) INFO  15-02 12:10:36,078 (RepositoryServlet.java:allowUser:113) admin authenticated for rest api
                12:10:36,093 INFO  [stdout] (http--127.0.0.1-8080-4) INFO  15-02 12:10:36,093 (PackageDeploymentServlet.java:execute:134)    PackageName: pkg
                12:10:36,093 INFO  [stdout] (http--127.0.0.1-8080-4) INFO  15-02 12:10:36,093 (PackageDeploymentServlet.java:execute:135)    PackageVersion: LATEST
                12:10:36,093 INFO  [stdout] (http--127.0.0.1-8080-4) INFO  15-02 12:10:36,093 (PackageDeploymentServlet.java:execute:136)    PackageIsLatest: true
                12:10:36,093 INFO  [stdout] (http--127.0.0.1-8080-4) INFO  15-02 12:10:36,093 (PackageDeploymentServlet.java:execute:137)    PackageIsSource: false

                 

                 

                I erased all packages and made a new one with all the needed assets; the package is built, and it seems to be authenticated.

                 

                This log is written when I open jbpm-console (12:10:33) and then when I try to get the process definitions (12:10:36). As you can see, the console seems to be connected to guvnor because it analyses the package.

                 

                I think maybe the communication is ok, and the problem is my package. So I am analysing the package. When I download the package source, I found  just a declaration of the package:

                package pkg

                 

                import com.sample.Compra

                I think I should see something referred to the process, shouldn't I ?

                 

                Thanks in advance,

                Roger

                • 5. Re: JBPM 5.2 console can't get any Guvnor Process Definition
                  sakthi_19tcs

                  Check your jbpm-console.properties file in jbpm-gwt-console-server.war/WEB-INF/lib/jbpm-gwt-core.jar file.

                  It should point to your Guvnor properly.

                  Check whether the Guvnor-IP and Guvnor-Host is correct.

                  Check for guvnor-package is the package where your process resides,by default it is "defaultPackage".

                  Make sure that you built the package.