-
Bug
-
Resolution: Done
-
Blocker
-
3.0.0.Alpha1
-
None
-
None
Hello,
i tried ModeShape 3.0.0.Alpha1 today, but got stuck by an error I cant seem to solve. I set up a quite easy repo:
{ "name":"wwRepo", "jndiName":"", "security":{ "jaas":{ "policyName":"" }, "anonymous":{ "roles":["readonly", "readwrite", "admin"], "username":"<anonymous>", "useOnFailedLogin":true } }, "sequencing":{ "removeDerivedContentWithOriginal":true, "sequencers":[ { "description":"CND Sequencer Same Location", "type":"CNDSequencer", "pathExpressions":[ "default://(*.cnd)/jcr:content[@jcr:data]" ] } ] } }
Beside this, I startup my default app an registering nods via CND:
[#|2012-02-28T15:02:40.192+0100|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=17;_ThreadName=Thread-4;|INFO - JcrRepository - Initializing ModeShape version 3.0.0.Alpha1|#] [#|2012-02-28T15:02:40.221+0100|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=17;_ThreadName=Thread-4;|INFO - TransientBinaryStore - ModeShape is using the following directory for transient storage of binary values: /var/folders/ql/9xg715td53s6prn53sj9szkw0000gn/T|#] [#|2012-02-28T15:02:41.429+0100|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=17;_ThreadName=Thread-4;|INFO - GlobalComponentRegistry - ISPN000128: Infinispan version: Infinispan 'Brahma' 5.1.0.BETA3|#] [#|2012-02-28T15:02:41.429+0100|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=17;_ThreadName=Thread-4;|INFO - GlobalComponentRegistry - ISPN000128: Infinispan version: Infinispan 'Brahma' 5.1.0.BETA3|#] ... [#|2012-02-28T15:02:42.501+0100|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=17;_ThreadName=Thread-4;|INFO - BrixRepositoryInitializer - Registering Brix JCR Namespace: brix|#] [#|2012-02-28T15:02:42.539+0100|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=17;_ThreadName=Thread-4;|INFO - Brix - Registering node type: brix:node in workspace default|#] [#|2012-02-28T15:02:42.569+0100|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=17;_ThreadName=Thread-4;|INFO - Brix - Registering node type: brix:folder in workspace default|#] [#|2012-02-28T15:02:42.572+0100|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=17;_ThreadName=Thread-4;|INFO - Brix - Registering node type: brix:tile in workspace default|#] [#|2012-02-28T15:02:42.573+0100|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=17;_ThreadName=Thread-4;|INFO - Brix - Registering node type: brix:hidden in workspace default|#] [#|2012-02-28T15:02:42.575+0100|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=17;_ThreadName=Thread-4;|INFO - Brix - Registering node type: brix:globalContainer in workspace default|#] [#|2012-02-28T15:02:42.577+0100|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=17;_ThreadName=Thread-4;|INFO - Brix - Registering node type: brix:tilePage in workspace default|#] [#|2012-02-28T15:02:42.580+0100|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=17;_ThreadName=Thread-4;|INFO - Brix - Registering node type: brix:tileTemplate in workspace default|#] [#|2012-02-28T15:02:42.581+0100|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=17;_ThreadName=Thread-4;|INFO - Brix - Registering node type: brix:webDavContainer in workspace default|#] [#|2012-02-28T15:02:42.610+0100|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=17;_ThreadName=Thread-4;|INFO - WicketApplication - try to import into: bx_ZbsPajcasCzwuZNlkmGmKWqKq|#] ...
but then I get an error when I try to import an XML file into a new Repository:
[#|2012-02-28T15:02:42.716+0100|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=17;_ThreadName=Thread-4;|ERROR - WicketApplication - Exception in WicketApplication init()java.lang.RuntimeException: Could not initialize workspace with Brix ..... Caused by: org.brixcms.jcr.exception.JcrException: javax.jcr.nodetype.ConstraintViolationException: Cannot find a definition for the property named 'jcr:createdBy' on the node at '/brix:root' with primary type 'nt:folder' and mixin types: [brix:node] at org.brixcms.jcr.SessionBehavior.handleException(SessionBehavior.java:78) at org.brixcms.jcr.api.wrapper.AbstractWrapper.handleException(AbstractWrapper.java:91) at org.brixcms.jcr.api.wrapper.AbstractWrapper.executeCallback(AbstractWrapper.java:108) at org.brixcms.jcr.api.wrapper.SessionWrapper.importXML(SessionWrapper.java:338) at de.whiskyworld.shop.web.WicketApplication.initDefaultWorkspace(WicketApplication.java:182) ... 44 more Caused by: javax.jcr.nodetype.ConstraintViolationException: Cannot find a definition for the property named 'jcr:createdBy' on the node at '/brix:root' with primary type 'nt:folder' and mixin types: [brix:node] at org.modeshape.jcr.AbstractJcrNode.setProperty(AbstractJcrNode.java:1515) at org.modeshape.jcr.JcrContentHandler$BasicNodeHandler.create(JcrContentHandler.java:732) at org.modeshape.jcr.JcrContentHandler$BasicNodeHandler.node(JcrContentHandler.java:567) at org.modeshape.jcr.JcrContentHandler$BasicNodeHandler.finish(JcrContentHandler.java:552) at org.modeshape.jcr.JcrContentHandler$SystemViewContentHandler.startElement(JcrContentHandler.java:923) at org.modeshape.jcr.JcrContentHandler.startElement(JcrContentHandler.java:359) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2756) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) at org.modeshape.jcr.JcrSession.importXML(JcrSession.java:1091) at org.brixcms.jcr.base.wrapper.SessionWrapper.importXML(SessionWrapper.java:241) at org.brixcms.jcr.api.wrapper.SessionWrapper$26.execute(SessionWrapper.java:340) at org.brixcms.jcr.api.wrapper.AbstractWrapper.executeCallback(AbstractWrapper.java:106) ... 46 more
So, ModeShape complains about jcr:createdBy elements that got specified by the CND just 5 loglines ago;