Discussion:
[jboss-user] [jBPM] - JBPM 5.2 console can't get any Guvnor Process Definition
Rogelio Di Pasquale
2012-01-16 15:33:59 UTC
Permalink
Rogelio Di Pasquale [https://community.jboss.org/people/roger0681] created the discussion

"JBPM 5.2 console can't get any Guvnor Process Definition"

To view the discussion, visit: https://community.jboss.org/message/646993#646993

--------------------------------------------------------------
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 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 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
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/646993#646993]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Tihomir Surdilovic
2012-01-16 16:06:18 UTC
Permalink
Tihomir Surdilovic [https://community.jboss.org/people/tsurdilovic] created the discussion

"Re: JBPM 5.2 console can't get any Guvnor Process Definition"

To view the discussion, visit: https://community.jboss.org/message/647005#647005

--------------------------------------------------------------
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?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/647005#647005]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Rogelio Di Pasquale
2012-01-17 03:10:08 UTC
Permalink
Rogelio Di Pasquale [https://community.jboss.org/people/roger0681] created the discussion

"Re: JBPM 5.2 console can't get any Guvnor Process Definition"

To view the discussion, visit: https://community.jboss.org/message/647075#647075

--------------------------------------------------------------
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$***@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 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
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/647075#647075]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Alex Langhart
2012-01-29 21:25:19 UTC
Permalink
Alex Langhart [https://community.jboss.org/people/langhartdev] created the discussion

"Re: JBPM 5.2 console can't get any Guvnor Process Definition"

To view the discussion, visit: https://community.jboss.org/message/649324#649324

--------------------------------------------------------------
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.*
*
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/649324#649324]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Rogelio Di Pasquale
2012-02-15 15:32:47 UTC
Permalink
Rogelio Di Pasquale [https://community.jboss.org/people/roger0681] created the discussion

"Re: JBPM 5.2 console can't get any Guvnor Process Definition"

To view the discussion, visit: https://community.jboss.org/message/716854#716854

--------------------------------------------------------------
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.
package pkg
import com.sample.Compra
I think I should see something referred to the process, shouldn't I ?

Thanks in advance,
Roger
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/716854#716854]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Sakthi Saranya
2013-02-07 13:09:34 UTC
Permalink
Sakthi Saranya [https://community.jboss.org/people/sakthi_19tcs] created the discussion

"Re: JBPM 5.2 console can't get any Guvnor Process Definition"

To view the discussion, visit: https://community.jboss.org/message/796518#796518

--------------------------------------------------------------
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.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/796518#796518]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...