I have a big problem with the addition of a mysql database to Glassfish. I did all the steps located here http://www.onehippo.org/library/deployment/configuring/configuring-hippo-7-for-mysql.html .
When I use
$ mvn clean install
$ mvn -P cargo.run
It's looks fine, because in my workspace.xml I have :
<FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
<param name="url" value="java:comp/env/jdbc/repositoryDS"/>
<param name="driver" value="javax.naming.InitialContext"/>
<param name="schemaObjectPrefix" value="${wsp.name}_"/>
<param name="schema" value="mysql"/>
</FileSystem>
next I use
$ mvn clean install
$ mvn -P dist
and deploy created cms.war and site.war to glassfish server (Previously, I copied all the libraries and everything works. Inspired by https://blogs.oracle.com/geertjan/entry/hippo_tip_deploying_hippo_to ). All of project works fine.
The problem is the database. In new workspace.xml in glassfish (/opt/glassfish4/glassfish/domains/domain1/applications/cms/WEB-INF/storage/workspaces/default/workspace.xml) I have:
<FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
<param name="path" value="${wsp.home}"/>
</FileSystem>
<PersistenceManager class="org.apache.jackrabbit.core.persistence.pool.H2PersistenceManager">
<param name="url" value="jdbc:h2:file:${wsp.home}/db"/>
<param name="schemaObjectPrefix" value="${wsp.name}_"/>
<param name="minBlobSize" value="4194304"/>
</PersistenceManager>
and server created db.h2.db file in storage/workspace/default, but I need a base in mysql. What can I do wrong?
Additional question. How to check what is in the database? In mysql hippo created something like this:
+--------------------+
| Tables_in_hippo |
+--------------------+
| DATASTORE |
| DEFAULT_BINVAL |
| DEFAULT_BUNDLE |
| DEFAULT_FSENTRY |
| DEFAULT_NAMES |
| DEFAULT_REFS |
| REPOSITORY_FSENTRY |
| VERSION_BINVAL |
| VERSION_BUNDLE |
| VERSION_FSENTRY |
| VERSION_NAMES |
| VERSION_REFS |
+--------------------+
There are no tables like "Book" "Author" "Shop". But in server Hippo have all this data which I can edit.
Thanks for reading.