Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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 <Manager pathname="" /> in $CATALINA_HOME/conf/context.xml.

...

Be sure to put the JDBC driver JAR file under $CATALINA_HOME/lib for the Datasource you have defined above.

Glassfish 3.1

Update core glassfish-web.xml

When using a datasource for internal storage, be sure to add

...

right after </context-root>> in core/src/main/webapp/WEB-INF/glassfish-web.xml.

JBoss AS 7.1

Customize core WAR content

Add

Code Block

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
        <inherited>true</inherited>
        <configuration>
          <packagingExcludes>WEB-INF/lib/dom4j*.jar,WEB-INF/lib/mail*.jar</packagingExcludes>
        </configuration>
      </plugin>

right before

Code Block
</plugins>

in core pom.xml.

Use JBossPersistenceMappingFactory

...

Code Block
<entry key="openjpa.MetaDataFactory" value="org.apache.syncope.core.persistence.openjpa.JBossPersistenceMappingFactory(URLs=vfs:/content/${project.build.finalName}.war/WEBINF/classes/, Resources=META-INF/orm.xml)"/>

Using a DataSource

When using a DataSource, a few additional adjustments are needed.

core web.xml

Change

Code Block

  <resource-ref>
    <res-ref-name>jdbc/syncopeDataSource</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
  </resource-ref>

to

Code Block

  <resource-ref>
    <res-ref-name>jdbc/syncopeDataSource</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    <lookup-name>java:/syncopeDataSource</lookup-name>
  </resource-ref>

assuming that you have defined a DataSource with JNDI name 'java:/syncopeDataSource' in JBoss configuration.

core jboss-deployment-structure

Add

Code Block
<module name="com.mysql"/>

right before

Code Block
</dependencies>

assuming that 'com.mysql' is the name of the JBoss module you have deployed for your JDBC Driver (MySQL in this case).

Oracle WebLogic 12

Update core web.xml

Change

Code Block
classpath*:/*Context.xml

...

at the beginning of core/src/main/webapp/WEB-INF/web.xml.

Update core weblogic.xml

When using a datasource for internal storage, be sure to add

...