I went bact o a Postgres install and get the following error from the activiti-admin that is stopping the WAR from starting up:
INFO 7/30/15 11:09 AM:liquibase: classpath:META-INF/liquibase/db-changelog.xml: 1::activiti: Table USER_INFO created
SEVERE 7/30/15 11:09 AM:liquibase: classpath:META-INF/liquibase/db-changelog.xml: 1::activiti: Change Set classpath:META-INF/liquibase/db-changelog.xml::1::activiti failed. Error: Error executing SQL CREATE TABLE
public.AUTHORITY (name VARCHAR(255) NOT NULL, CONSTRAINT PK_AUTHORITY PRIMARY KEY (name)): ERROR: relation "authority" already exists
liquibase.exception.DatabaseException: Error executing SQL CREATE TABLE public.AUTHORITY (name VARCHAR(255) NOT NULL, CONSTRAINT PK_AUTHORITY PRIMARY KEY (name)): ERROR: relation "authority" already exists
at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:61)
which results in the WAR stopping down river:
30-Jul-2015 11:09:55.123 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [/activiti-admin] startup failed due to previous errors
11:09:55,132 [localhost-startStop-1] INFO com.activiti.conf.WebConfigurer - Destroying Web application
30-Jul-2015 11:09:55.144 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive /home/mblum/work/activiti/activiti-1.3.0EA1/tomcat/webapps/activiti-admi
n.war has finished in 5,899 ms
Here were my steps for creating the activiti database:
1. login to postgres as the root postgres user:
su -
su postgres
psql
CREATE DATABASE activiti;
CREATE USER activiti WITH PASSWORD *****;
ALTER ROLE activiti SUPERUSER;
GRANT ALL PRIVILEGES ON DATABASE activiti TO activiti;
from there I can login to my postgres instance as the activiti user, create tables and the like. But it appears the activiti-app is properly creating the required tables I've dumped above but then the activiti-admin appears to fail. I gave its properties file the same configuration that the activiti-app.properties file possesses.