Introduction
Once you have created your project, you can start adapting it to your own needs and requirements.
Deployment directory
Currently, Syncope needs two base directories to be defined:
...
Code Block |
---|
$ mkdir /opt/syncope $ mkdir /opt/syncope/bundles $ mkdir /opt/syncope/log |
Internal storage
Internal storage is a database where all information and configurations are stored.
...
as indicated in the following.
PostgreSQL
Code Block |
---|
jpa.driverClassName=org.postgresql.Driver jpa.url=jdbc:postgresql://localhost:5432/syncope jpa.username=syncope jpa.password=syncope jpa.dialect=org.hibernate.dialect.PostgreSQLDialect dbUnitDataTypeFactory=org.dbunit.ext.postgresql.PostgresqlDataTypeFactory quartz.jobstore=org.quartz.impl.jdbcjobstore.PostgreSQLDelegate quartz.sql=tables_postgres.sql |
...
with password
Code Block |
---|
syncope |
.
MySQL
Code Block |
---|
jpa.driverClassName=com.mysql.jdbc.Driver jpa.url=jdbc:mysql://localhost:3306/syncope?characterEncoding=UTF-8 jpa.username=syncope jpa.password=syncope jpa.dialect=org.hibernate.dialect.MySQL5InnoDBDialect dbUnitDataTypeFactory=org.dbunit.ext.mysql.MySqlDataTypeFactory quartz.jobstore=org.quartz.impl.jdbcjobstore.StdJDBCDelegate quartz.sql=tables_mysql_innodb.sql |
...
with password
Code Block |
---|
syncope |
.
Oracle
Code Block |
---|
jpa.driverClassName=oracle.jdbc.driver.OracleDriver jpa.url=jdbc:oracle:thin:@localhost:1521:orcl jpa.username=syncope jpa.password=syncope jpa.dialect=org.hibernate.dialect.Oracle10gDialect dbUnitDataTypeFactory=org.dbunit.ext.oracle.Oracle10DataTypeFactory quartz.jobstore=org.quartz.impl.jdbcjobstore.oracle.OracleDelegate quartz.sql=tables_oracle.sql database.schema=SYNCOPE |
...
- create directory
Code Block core/src/main/resources/META-INF
- download Oracle mapping file, rename it to
and copy it under the directory created aboveCode Block orm.xml
JEE container
Apache Tomcat 7
This assumes that you have got Apache Tomcat 7 installed in directory
Code Block |
---|
$CATALINA_HOME |
.
setenv.sh
Create
Code Block |
---|
$CATALINA_HOME/bin/setenv.sh |
...
Code Block |
---|
JAVA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server \ -Xms1536m -Xmx1536m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m \ -XX:MaxPermSize=256m -XX:+DisableExplicitGC" |
context.xml
Uncomment
Code Block |
---|
<Manager pathname="" /> |
...
for the Datasource you have defined above.
Other setup tasks
Uncomment element
Code Block |
---|
<resource-ref ... /> |
...
to http://localhost:9080/syncope-1.0-SNAPSHOT/rest/.
Build and deploy
Assuming that you have created the two deployment directories defined above, just run
...
(where $PROJECT-VERSION is project version as created by Maven archetype) to your JEE container.
Test your deploy
- Point your favorite browser to administration console at
Code Block http://localhost:8080/syncope-console-$PROJECT-VERSION/
- Login as 'admin' / 'password'