jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From viz06 <vijaykumarsharma_1...@yahoo.com>
Subject Namespace registration
Date Thu, 12 Jun 2008 14:24:02 GMT

I am using spring modules to set up jcr repository. and facing couple of

1. I am not able to register the namespace 'mypc' and have to manually
modify ns_reg.properties to set the namespace.

2. I have setup few spring enabled test cases which run to completion and
creates the correct node structure, when I run the same test second time
around all my previous nodes shows a different namespace prefix of 'fn'. I
am unable to figure out from where it is getting this namespace prefix. 

Here is part of my spring config

<bean id="repository"
        <!-- normal factory beans params -->
        <property name="configuration"
                value="classpath:repository.xml" />
        <property name="homeDir" value="file:c:/repo"/>
    <!--  Session Factory -->
    <bean id="jcrSessionFactory"
        <property name="repository" ref="repository"/>
        <property name="credentials">
            <bean class="javax.jcr.SimpleCredentials">
                <constructor-arg index="0" value="bogus"/>
                <constructor-arg index="1">
                    <bean factory-bean="password"
        <property name="namespaces">
                <prop key="mypc">http://www.mypc.com/mypc</prop>
        <property name="contentType" value="text/x-jcr-cnd"/>
        <property name="nodeDefinitions">

View this message in context: http://www.nabble.com/Namespace-registration-tp17801235p17801235.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

View raw message