Personal blog wen application built around GWT 2.7.0 and deployed on CloudUnit.
Blog access: http://denis.colliot.eu3.cloudunit.io/
- Java 8
- Maven 3
- IDE: Eclipse, IntelliJ, etc. (tested with
Intellij IDEA 14.1
)
In debug environment, the application expects a configuration file named persistence.properties
in the classpath.
This file is already ignored by git configuration.
To fulfill this expectation, execute the following steps:
- Create the
persistence.properties
file in the project classpath (most-likely insrc/main/resources
directory). - Declare the following required properties inside it:
hibernate.dialect
hibernate.connection.driver_class
hibernate.connection.url
hibernate.connection.username
hibernate.connection.password
Example persistence.properties
file for PostgreSQL 9.x
database:
hibernate.dialect=org.hibernate.dialect.PostgreSQL9Dialect
hibernate.connection.driver_class=org.postgresql.Driver
hibernate.connection.url=jdbc:postgresql://localhost:5432/<dbname>
hibernate.connection.username=<username>
hibernate.connection.password=<password>
You may also want to override one or several optional properties:
hibernate.archive.autodetection
(default value set toclass
)hibernate.hbm2ddl.auto
(default value set to ``)hibernate.show_sql
(default value set totrue
)hibernate.format_sql
(default value set totrue
)hibernate.c3p0.min_size
(default value set to1
)hibernate.c3p0.max_size
(default value set to15
)hibernate.c3p0.max_statements
(default value set to100
)hibernate.c3p0.timeout
(default value set to0
)hibernate.c3p0.acquire_increment
(default value set to1
)hibernate.c3p0.numHelperThreads
(default value set to6
)
Run following maven command to run the SuperDevMode
:
mvn gwt:run
Once embedded jetty server is ready, simply click on Launch Default Browser
button to load the app.