Configuration:
        <bean id="jcrTransactionManager"
                
class="org.springmodules.jcr.jackrabbit.LocalTransactionManager">
                <property name="sessionFactory" ref="jcrSessionFactory" />
        </bean>

        <bean id="jcrSessionFactory"
                
class="org.springmodules.jcr.jackrabbit.JackrabbitSessionFactory">
                <property name="repository" ref="repository" />
                <property name="credentials">
                        <bean class="javax.jcr.SimpleCredentials">
                                <constructor-arg index="0" value="bogus" />
                                <!-- create the credentials using a bean 
factory -->
                                <constructor-arg index="1">
                                        <bean factory-bean="password"
                                                factory-method="toCharArray" />
                                </constructor-arg>
                        </bean>
                </property>
                <!-- register some bogus namespaces -->
                <property name="namespaces">
                        <props>
                                <prop key="nko">http://www.nikoyo.com</prop>
                                <prop 
key="nkont">http://www.nikoyo.com/nt</prop>
                        </props>
                </property>
        </bean>

start server error:
Error creating bean with name 'jcrTransactionManager' defined in class path
resource [application-repository.xml]: Cannot resolve reference to bean
'jcrSessionFactory' while setting bean property 'sessionFactory'; nested
exception is org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'jcrSessionFactory' defined in class path resource
[application-repository.xml]: Cannot resolve reference to bean 'repository'
while setting bean property 'repository'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'repository' defined in class path resource
[application-repository.xml]: Invocation of init method failed; nested
exception is org.apache.jackrabbit.core.config.ConfigurationException:
Configuration file syntax error. (Line: 4 Column: 28): Invalid byte 2 of
2-byte UTF-8 sequence.: Invalid byte 2 of 2-byte UTF-8 sequence.

It is not error When I am using the jackrabbit 1.4 
-- 
View this message in context: 
http://www.nabble.com/jackrabbit-1.5---springmodule-Jcr-conflict-----tp20850358p20850358.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Reply via email to