Modeshape 3.2 sequencer
tamer_sk May 6, 2013 3:17 PMHello,
I have 2 questions
1- I have started playing around with Modeshape 3.2 on EAP 6.1. I am having an issue when sequencing java files. Here is the current config for the java sequencer
<sequencer name="java-source-sequencer" classname="org.modeshape.sequencer.javafile.JavaFileSequencer" module="org.modeshape.sequencer.java" path-expression="default://(*.java[*])/jcr:content[@jcr:data]"/>
As you can see I have the input path but not output path. My understanding is if I do not specify an output path, the sequencing information will be generated under the same node. Instead, I get the following error
12:54:51,513 ERROR [org.modeshape.sequencer.javafile.JavaFileSequencer] (modesha
pe-sequencer-8-thread-1) Error sequencing file: javax.jcr.nodetype.ConstraintVio
lationException: Unable to determine a valid node definition for the node "/Jcrr
- esttestResource.java/JcrresttestResource.java/com" in workspace "default" of "sa
mple"
at org.modeshape.jcr.AbstractJcrNode.validateChildNodeDefinition(Abstrac
- tJcrNode.java:1213) [modeshape-jcr-3.2.0.Final.jar:3.2.0.Final]
at org.modeshape.jcr.AbstractJcrNode.addChildNode(AbstractJcrNode.java:1
045) [modeshape-jcr-3.2.0.Final.jar:3.2.0.Final]
at org.modeshape.jcr.AbstractJcrNode.addNode(AbstractJcrNode.java:1001)
[modeshape-jcr-3.2.0.Final.jar:3.2.0.Final]
at org.modeshape.jcr.AbstractJcrNode.addNode(AbstractJcrNode.java:922) [
modeshape-jcr-3.2.0.Final.jar:3.2.0.Final]
at org.modeshape.jcr.AbstractJcrNode.addNode(AbstractJcrNode.java:107) [
modeshape-jcr-3.2.0.Final.jar:3.2.0.Final]
at org.modeshape.sequencer.javafile.ClassSourceFileRecorder.getTypeNode(
- ClassSourceFileRecorder.java:56)
at org.modeshape.sequencer.javafile.ClassSourceFileRecorder.record(Class
- SourceFileRecorder.java:47)
at org.modeshape.sequencer.javafile.JavaFileSequencer.execute(JavaFileSe
- quencer.java:67)
at org.modeshape.jcr.SequencingRunner.run(SequencingRunner.java:224) [mo
deshape-jcr-3.2.0.Final.jar:3.2.0.Final]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
- utor.java:895) [rt.jar:1.6.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:918) [rt.jar:1.6.0_45]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_45]
Am I missing anything in my configs.
2- Is there any way I can have my output path created dynamically during runtime based on application needs.
Thanks,
Tamer