I created a BPM process and created a build successfully.I copied my .war file in the tomcat server webapps folder but it does not get deployed but instead throws some errors.
like : Caused by: javax.naming.NamingException: Unexpected exception resolving reference [Root exception is org.h2.jdbc.JdbcSQLException: Database may be already in use: null. Possible solutions: close all other connection(s); use the server mode [90020-190]]
I have attached the catalina log file.Could you please review it and let me know how to fix it.
This is not camunda issue. Its your application got terminated and java process is still holds the lock on H2.
And other scenarios like, your camunda application is connected to H2, and you’re trying to access H2 database via SQL client tools, this error will come. If you want to access H2, you can access via H2 web console, by enabling these properties
Camunda is not technology agnostic. You have flexibility to use with Javascript, Java or whatever language or platform it is, just make a Rest api call and get the job done. You need to focus on various bpmn notations, task types, gateways and best practices.
As per your suggestion, I have updated the Application.yml config file with below details, but still I am getting the H2 Console - Sorry, remote connections (‘webAllowOthers’) are disabled on this server error. kindly let me know if I missed any steps.
spring.datasource:
url: jdbc:h2:./camunda-h2-dbs/process-engine;TRACE_LEVEL_FILE=0;DB_CLOSE_ON_EXIT=FALSE
driver-class-name: org.h2.Driver
username: sa
password: sa