H2 database error: Database may be already in use: “Locked by another process”
H2 is still running (I can guarantee it). You need to use a TCP connection for multiple users such as -> <property name=”javax.persistence.jdbc.url” value=”jdbc:h2:tcp://localhost/C:\Database\Data\production;”/> OR DriverManager.getConnection(“jdbc:h2:tcp://localhost/server~/dbname”,”username”,”password”); It also means you need to start the server in TCP mode. Honesetly, it is pretty straight forward in the documentation. Force kill the process (javaw.exe for Windows), and … Read more