Following the instructions: http://documentation.bonitasoft.com/bonitabpm/?page=ubuntu-openjdk-tomcat-postgresql but with the new 7.3.0-deploy release.
Ubuntu 16.04 LTS
When I try to start the tomcat service I get an error:
adminuser@ud73007:/opt$ sudo service tomcat7 start Job for tomcat7.service failed because the control process exited with error code. See "systemctl status
tomcat7.service" and “journalctl -xe” for details.
adminuser@ud73007:/opt$ systemctl status tomcat7.service
tomcat7.service - LSB: Start Tomcat.
Loaded: loaded (/etc/init.d/tomcat7; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2016-07-20 11:26:35 BST; 22s ago
Docs: man:systemd-sysv-generator(8)
Process: 1649 ExecStop=/etc/init.d/tomcat7 stop (code=exited, status=0/SUCCESS)
Process: 3616 ExecStart=/etc/init.d/tomcat7 start (code=exited, status=1/FAILURE)
Jul 20 11:26:30 ud73007 systemd[1]: Starting LSB: Start Tomcat…
Jul 20 11:26:30 ud73007 tomcat7[3616]: * Starting Tomcat servlet engine tomcat7
Jul 20 11:26:35 ud73007 tomcat7[3616]: …fail!
Jul 20 11:26:35 ud73007 systemd[1]: tomcat7.service: Control process exited, code=exited status=1
Jul 20 11:26:35 ud73007 systemd[1]: Failed to start LSB: Start Tomcat…
Jul 20 11:26:35 ud73007 systemd[1]: tomcat7.service: Unit entered failed state.
Jul 20 11:26:35 ud73007 systemd[1]: tomcat7.service: Failed with result ‘exit-code’.
adminuser@ud73007:/opt$ journalctl -xe
- Subject: Unit tomcat7.service has begun start-up
- Defined-By: systemd
- Unit tomcat7.service has begun starting up.
Jul 20 11:26:30 ud73007 tomcat7[3616]: * Starting Tomcat servlet engine tomcat7
Jul 20 11:26:35 ud73007 tomcat7[3616]: …fail!
Jul 20 11:26:35 ud73007 systemd[1]: tomcat7.service: Control process exited, code=exited status=1
Jul 20 11:26:35 ud73007 systemd[1]: Failed to start LSB: Start Tomcat… - Subject: Unit tomcat7.service has failed
- Defined-By: systemd
- Unit tomcat7.service has failed.
- The result is failed.
Jul 20 11:26:35 ud73007 sudo[3610]: pam_unix(sudo:session): session closed for user root
Jul 20 11:26:35 ud73007 systemd[1]: tomcat7.service: Unit entered failed state.
Jul 20 11:26:35 ud73007 systemd[1]: tomcat7.service: Failed with result ‘exit-code’.
I see these messages in /var/log/tomcat7/catalina.out
bitronix.tm.utils.InitializationException: cannot open disk journal
Caused by: java.io.FileNotFoundException: btm2.tlog (Permission denied)
Jul 20, 2016 11:26:31 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler [“http-bio-8080”]
Jul 20, 2016 11:26:31 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler [“ajp-bio-8009”]
Jul 20, 2016 11:26:31 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 842 ms
Jul 20, 2016 11:26:31 AM bitronix.tm.integration.tomcat55.BTMLifecycleListener lifecycleEvent
INFO: Starting Bitronix Transaction Manager
Jul 20, 2016 11:26:31 AM bitronix.tm.BitronixTransactionManager logVersion
INFO: Bitronix Transaction Manager version 2.1.3
Jul 20, 2016 11:26:31 AM bitronix.tm.Configuration buildServerIdArray
WARNING: cannot get this JVM unique ID. Make sure it is configured and you only use ASCII characters. Will use IP address instead (unsafe for production usage!).
Jul 20, 2016 11:26:31 AM bitronix.tm.Configuration buildServerIdArray
INFO: JVM unique ID: <127.0.1.1>
bitronix.tm.utils.InitializationException: cannot open disk journal
at bitronix.tm.BitronixTransactionManager.(BitronixTransactionManager.java:98)
at bitronix.tm.TransactionManagerServices.getTransactionManager(TransactionManagerServices.java:75)
at bitronix.tm.integration.tomcat55.BTMLifecycleListener.lifecycleEvent(BTMLifecycleListener.java:18)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:394)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:144)
at org.apache.catalina.startup.Catalina.start(Catalina.java:693)
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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:428)
Caused by: java.io.FileNotFoundException: btm2.tlog (Permission denied)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.(RandomAccessFile.java:241)
at bitronix.tm.journal.DiskJournal.createLogfile(DiskJournal.java:237)
at bitronix.tm.journal.DiskJournal.open(DiskJournal.java:137)
at bitronix.tm.BitronixTransactionManager.(BitronixTransactionManager.java:85)
… 13 more
`
I’ve whacked the permissions to /opt/bonita/btm to 777 but no success.