L.S.,
After a few months of radio silence, we are picking up the Sling-based
console for ServiceMix again. With the 2.0.2-SNAPSHOT release of Sling,
we managed to create a bundle to install the initial content for our
application, which looks like this:
/apps
/servicemix
/dashboard/html.esp
/exchanges/html.esp
/navigation/html.esp
/content/servicemix.json
The JSON file contains something like
{
"jcr:primaryType":"nt:unstructured",
"sling:resourceType":"servicemix/dashboard",
"exchanges":{
"jcr:primaryType":"nt:unstructured",
"sling:resourceType":"servicemix/exchanges"
},
"navigation":{
"jcr:primaryType":"nt:unstructured",
"sling:resourceType":"servicemix/navigation"
}
}
If we deploy the bundle on Sling now (built from trunk this morning), we
get this exception:
org.apache.servicemix.smx-sling.servicemix-sling-console (42)]
org.apache.sling.jcr.contentloader.internal.Loader Cannot load i
nitial content for bundle
org.apache.servicemix.smx-sling.servicemix-sling-console : no definition
found in parent node's node type for new node: no matching child node
definiti
on found for {}servicemix
javax.jcr.nodetype.ConstraintViolationException: no definition found in
parent node's node type for new node: no matching child node definition
found f
or {}servicemix: no matching child node definition found for {}servicemix
I guess something has changed in between versions. What has changed and
what do we need to change to get this initial content loaded again?
Thanks,
Gert Vanthienen