Hi there and welcome to the users mailing list.

Did you edit the "isis.properties" file and disable the default HSQL
in-memory definition?

I have just tested the following:
1) removed (commented out) existing persistor definition in "isis.properties"
2) added Postgresql definition to "persistor.properties"
3) Run with "estatio$ mvn -o -pl estatioapp/webapp jetty:run"

The application starts up and creates data in the specified server.

I have not been able to confirm that it persists restarts as I get some
exceptions relating to the AgreementRole table, but that may be unrelated
to your problem...

Cheers,
Kevin

11:46:09,815 [Schema                        ] Exception thrown while
querying indices for table=AgreementRole
org.postgresql.util.PSQLException: ERROR: current transaction is aborted,
commands ignored until end of transaction block



On Sat, July 8, 2017 08:31, Mustafa Abdat wrote:
> I think I have followed what the guide says about this topic in
> https://github.com/estatio/estatio#building-estatio
> 1. Edited webapp/src/main/webapp/WEB-INF/persistor.properties with the
> following lines
> isis.persistor.datanucleus.impl.javax.jdo.option.ConnectionDriverName=com
> .mysql.jdbc.Driver
> isis.persistor.datanucleus.impl.javax.jdo.option.ConnectionURL=jdbc:mysql:
> //localhost:3306/estatio
> isis.persistor.datanucleus.impl.javax.jdo.option.ConnectionUserName=root
> isis.persistor.datanucleus.impl.javax.jdo.option.ConnectionPassword=root
>
> 2. Added MySQL dependency into "estatio-webapp/pom.xml"3a. Running
> through Maven : mvn -pl estatioapp/webapp jetty:run3b. Running as a
> self-hosting JAR : mvn -pl estatioapp/webapp -Dmavenmixin-jettyconsole
> package and then mvn -pl estatioapp/webapp -Dmavenmixin-jettyconsole
> antrun:run
> However each time I stop and run the application the database is back to
> the default. Basically the instruction I set to use MySQL is being
> ignored. What am I missing here ? Looking forward to hear from you guys.


-- 
Kevin Meyer
Ljubljana, Slovenia



Reply via email to