-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
7.58.0.Final
-
None
-
False
-
False
-
NEW
-
NEW
-
undefined
-
-
Business Central tries to install and locate file playground.lock of .kie-wb-playground in the current working directory of the user when they run the script "standalone.sh" to start the server.
If user is not root, (instead is wildfly, for example) the playground will only work if user is currently in $WILDFLY_HOME where they have write permission.
In ubuntu at least, the service does not run with $WILDFLY_HOME as the current working directory. The cwd of the service itself seems to be "/" or elsewhere. Wherever it is, the wildfly user does not have write access to it. Therefore, playground.lock cannot be placed there, and the playground fails with message:
java.nio.file.NoSuchFileException:/.kie-wb-playground/playground.lock
...
Instructions on the web for getting jbpm to run as a service do not pick up on this.
If the new user exploring jbpm, installs it and configures it to run as a service, and only then proceeds with the rest of the "Getting Started" instructions, they cannot get far at all, because the introductory videos depend on the playground working. It is therefore a barrier to adoption of jbpm.
My workaround:
At the start of standalone/configuration/standalone.sh script, put this:
cd /opt/wildfly
That bypasses the problem, but the code should not be fragile and should not depend on the current working directory of the user.