There's at least one error in the xml at the sling website (unclosed term). Try 
a simpler xml file, something like what I have pasted below works for us.

Also, we were having a similar problem that was related to our directory 
structure. We forgot to include the SLING-CONTENT directory (in your case, 
SLING-INF) under resources. We had:
project-module/src/main/resources/content/...
which somehow was still being uploaded but not being processed fully on upload. 
when we change it to:
project-module/src/main/resources/SLING-CONTENT/content/...
it started working fine.

Rob





<node>
    <name>corpora</name>

    <primaryNodeType>nt:unstructured</primaryNodeType>

    <property>
        <name>sling:resourceType</name>
        <value>bmn/metaphor-criterion/corpora</value>
        <type>String</type>
    </property>

</node>



and our felix plugin in the pom.xml:


            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        
<Export-Package>org.brainsciences.bmn.iarpa.criterion.*</Export-Package>
                        <Import-Package>*;resolution:=optional</Import-Package>
                        
<Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
                        
<Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
                        <Bundle-Name>${pom.name}</Bundle-Name>
                        <Sling-Test-Regexp>.*Test</Sling-Test-Regexp>
                        <Sling-Initial-Content>
                            
SLING-CONTENT/apps/bmn/metaphor-criterion;overwrite:=true;uninstall:=true;path:=/apps/bmn/metaphor-criterion,
                            
SLING-CONTENT/content/bmn/metaphor/criterion;overwrite:=false;uninstall:=false;path:=/content/bmn/metaphor/criterion,
                            
SLING-CONTENT/apps/bmn/iarpa-metaphor/criterion;overwrite:=true;uninstall:=true;path:=/apps/bmn/iarpa-metaphor/criterion
                        </Sling-Initial-Content>
                    </instructions>
                </configuration>
            </plugin>




On Aug 1, 2013, at 7:31 AM, connuser1 connuser1 wrote:

> Hi
> 
> I am having problems using 'sling-jcr-contentloader'. Though I am able to 
> create folders using it, I am unable to create nodes inside that folder using 
> the xml format specified at [0]. I am attaching the xml that I am using to 
> create the node. Also here is what is added in MANIFEST.MF:
> 
> Sling-Initial-Content: SLING-INF/content/sling-demo;overwrite:=true;path
>  :=/content/sling-demo
> 
> I have placed the xml in src\main\resources\SLING-INF\sling-demo.
> 
> Please help.
> 
> Regards
> Satya Deep
> 
> [0]-
> http://sling.apache.org/site/content-loading-jcrcontentloader.html
> <create-user.xml>

Reply via email to