JBoss Community

Re: jbpm-console don't start in jBPM 5.2

created by Rogelio Di Pasquale in jBPM - View the full discussion

Hi all,

 

 

I faced the same problems, when trying to install jbpm5 on a fresh JBoss 7. After lots of googling, reading forums, and editing xmls, I made it work.

 

It is not a problem of files, but a configuration problem. When running ant install.demo, JBoss config files are edited.

If you try to copy war files to a fresh JBoss 7, you need to do some editing to standalone.xml:

 

 

a) Add a deployment timeout value, because, at least using a slow computer, JBoss times out trying to deploy our war files:

<deployment-scanner name="default" path="deployments" scan-enabled="true"

scan-interval="5000" relative-to="jboss.server.base.dir" deployment-timeout="600"/>

 

b) Add a security domain for jbpm-console, because it relies on JBoss security (just search for the default  security-domain, and add this tag after it):

                 <security-domain name="jbpm-console" cache-type="default">

                    <authentication>

                        <login-module code="UsersRoles" flag="required"/>

                    </authentication>

                </security-domain>

 

 

c) Also, you need to configure the datasource for jbpm (just add it after Example datasource):

 

<datasource jndi-name="java:jboss/datasources/jbpmDS" pool-name="H2DS" enabled="true" jta="true" use-java-context="true" use-ccm="true">

                    <connection-url>

                        jdbc:h2:tcp://localhost/~/test

                    </connection-url>

                    <driver>

                        h2

                    </driver>

                    <pool>

                        <prefill>

                            false

                        </prefill>

                        <use-strict-min>

                            false

                        </use-strict-min>

                        <flush-strategy>

                            FailingConnectionOnly

                        </flush-strategy>

                    </pool>

                    <security>

                        <user-name>

                            sa

                        </user-name>

                        <password>

                           

                        </password>

                    </security>

                </datasource>

 

 

 

 

d) At last, I commented jpa subsystem, because jbpm-gwt-console-server would never run (I don't know why).

 

<!--

        <subsystem xmlns="urn:jboss:domain:jpa:1.0">

            <jpa default-datasource=""/>

        </subsystem>

-->

 

 

Thats all, folks.

 

Then, when you run JBoss and log into jbpm-console, you need to have a task-server running.

 

Here is a link that addresses some of this problems: http://kverlaen.blogspot.com/2011/07/jbpm5-on-as7-lightning.html (yes, mr krisv)

 

Roger

Reply to this message by going to Community

Start a new discussion in jBPM at Community