Steps to configure JBoss for MySQL and Hippo CMS.
To configure the Hippo CMS 7 for MySQL, see http://wiki.hippo.nl/display/CMS7/Configuring+Hippo+7+for+MySQL
Modify <%JBOSS-HOME%>/server/default/deploy/cms.war/WEB-INF/web.xml with following content:
<resource-ref>
<res-ref-name>jdbc/repositoryDS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
Create <%JBOSS-HOME%>/server/default/deploy/cms.war/WEB-INF/jboss-web.xml with following content:
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
<resource-ref>
<res-ref-name>jdbc/repositoryDS</res-ref-name>
<jndi-name>java:/jdbc/repositoryDS</jndi-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</jboss-web>
Modify <%JBOSS-HOME%>/server/default/conf/login-config.xml with following contents:
<application-policy name="Jackrabbit">
<authentication>
<login-module code="org.hippoecm.repository.security.HippoLoginModule" flag="required" >
<module-option name="usersProperties">props/users.properties</module-option>
<module-option name="rolesProperties">props/roles.properties</module-option>
<module-option name="unauthenticatedIdentity">anonymous</module-option>
</login-module>
</authentication>
</application-policy>
Create <%JBOSS-HOME%>/server/default/deploy/mysql-dx.xml with following content:
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<local-tx-datasource>
<jndi-name>/jdbc/repositoryDS</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/hippocms</connection-url>
<driver-class>org.gjt.mm.mysql.Driver</driver-class>
<user-name>javauser</user-name>
<password>javadude</password>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
<metadata>
<type-mapping>mySQL</type-mapping>
</metadata>
</local-tx-datasource>
</datasources>
Create the hippocms dabase in Mysql Database.
Hippo Europe: +31 (0)20 5224466
Hippo North America: +1 (707) 773-4646
© 1999-2010 Hippo B.V., All Rights Reserved