chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller (JIRA) <j...@apache.org>
Subject [jira] [Commented] (CMIS-360) OpenCMIS Local Binding - Factory cannot be created
Date Tue, 26 Apr 2011 12:56:03 GMT

    [ https://issues.apache.org/jira/browse/CMIS-360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13025202#comment-13025202
] 

Florian Müller commented on CMIS-360:
-------------------------------------

The repository.properties file isn't read if the local binding is configured. Add all entries
to the session parameters.

> OpenCMIS Local Binding - Factory cannot be created
> --------------------------------------------------
>
>                 Key: CMIS-360
>                 URL: https://issues.apache.org/jira/browse/CMIS-360
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-server-jcr
>    Affects Versions: OpenCMIS 0.3.0
>         Environment: Windows7 jdk 1.6, Maven 3.0.3
>            Reporter: Andrew Okri
>
> I have configured the repository.properties file to include "jcr.org.apache.jackrabbir.repository.home=D:/javaprograms/jackrabbit/repository".
I have compiled and referenced the opencmis-sever-jcr jar but l still get "Factory cannot
be created" from the cmisLocalSPI.jar. I have also set the parameter "params.put(SessionParameter.LOCAL_FACTORY,
'org.apache.chemistry.opencmis.jcr.JcrServiceFactory')". What am l not doing?
> org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: Factory cannot
be created!
> 	at org.apache.chemistry.opencmis.client.bindings.spi.local.CmisLocalSpi.getSpiInstance(CmisLocalSpi.java:96)
> 	at org.apache.chemistry.opencmis.client.bindings.impl.CmisBindingsHelper.getSPI(CmisBindingsHelper.java:81)
> 	at org.apache.chemistry.opencmis.client.bindings.impl.CmisBindingImpl.clearAllCaches(CmisBindingImpl.java:172)
> 	at org.apache.chemistry.opencmis.client.bindings.impl.CmisBindingImpl.<init>(CmisBindingImpl.java:95)
> 	at org.apache.chemistry.opencmis.client.bindings.CmisBindingFactory.createCmisLocalBinding(CmisBindingFactory.java:154)
> 	at org.apache.chemistry.opencmis.client.runtime.CmisBindingHelper.createLocalBinding(CmisBindingHelper.java:96)
> 	at org.apache.chemistry.opencmis.client.runtime.CmisBindingHelper.createBinding(CmisBindingHelper.java:53)
> 	at org.apache.chemistry.opencmis.client.runtime.SessionImpl.connect(SessionImpl.java:573)
> 	at org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.createSession(SessionFactoryImpl.java:61)
> 	at com.roecastle.dms.test.documentServiceTest.testjcrCreateFolder(documentServiceTest.java:125)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message