Problem with loading cnd file in Jboss-as-7
estel1212 Feb 11, 2013 8:28 PMI already try this in standalone-modeshape.xml by trying modeshape and it has worked.
https://community.jboss.org/message/795112#795112
Now I tray to integrate this in my project also in my standard.xml in JBoss-as-7 and I still have some problem:
I use Modeshape 3.1.Final:
The configuration in standalone.xml looks like this:
After I add extension <extension module="org.modeshape"/> I do following:
<subsystem xmlns="urn:jboss:domain:infinispan:1.2" default-cache-container="hibernate">
...
<cache-container name="modeshape" default-cache="orc">
<local-cache name="orc">
<transaction mode="NON_XA"/>
<file-store relative-to="jboss.server.data.dir" path="modeshape/store/orc" passivation="false" purge="false"/>
</local-cache>
</cache-container>
</subsystem>
<subsystem xmlns="urn:jboss:domain:modeshape:1.0">
<repository name="orc" cache-name="orc" cache-container="modeshape">
<node-types>
<node-type>orc.cnd</node-type>
</node-types>
<workspaces default-workspace="orc">
<workspace name="orc"/>
<initial-content>
orc-initial-content-default.xml
</initial-content>
</workspaces>
<external-sources>
<source name="fsSource" classname="org.modeshape.connector.filesystem.FileSystemConnector" cacheTtlSeconds="1" readonly="true" directoryPath="/tmp">
<projection>
orc:/files/tmp => /
</projection>
</source>
</external-sources>
</repository>
</subsystem>
<subsystem xmlns="urn:jboss:domain:security:1.1">
....
<security-domain name="modeshape-security" cache-type="default">
<authentication>
<login-module code="UsersRoles" flag="required">
<module-option name="usersProperties" value="modeshape-users.properties"/>
<module-option name="rolesProperties" value="modeshape-roles.properties"/>
</login-module>
</authentication>
</security-domain>
</security-domains>
</subsystem>
---"orc.cnd" looks like this-------:
<jcr='http://www.jcp.org/jcr/1.0'>
<nt='http://www.jcp.org/jcr/nt/1.0'>
<mix='http://www.jcp.org/jcr/mix/1.0'>
<orc='http://www.orc.org/jcr/orcs/1.0'>
//------------------------------------------------------------------------------
// N O D E T Y P E S
//------------------------------------------------------------------------------
[orc:patient] > nt:unstructured orderable
- orc:name (string)
- orc:vorname (string)
- orc:dob (date)
+ * (orc:patientcase)
[orc:patientcase] > nt:unstructured
- orc:name (string)
+ * (orc:procedure)
[orc:procedure] > nt:unstructured
- orc:name (string)
+ * (nt:file)
---- "orc-initial-content-default.xml" looks like this ----------
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0">
<files/>
</jcr:root>
Staring JBoss and now my problem is that: when I bind the repository "orc" through "webdav" and I navigate to this link : "dav://admin@localhost:8080/modeshape-webdav/orc/orc/jcr:system/jcr:nodeTypes" I can't find my created nodetypes. I already delete "res.index" in modeshape module and my "orc.cnd" is placed under "jboss/modules/org/modeshape/main/res".
Know somebody, where is the problem? Did I miss soemthing?