jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukas Smith <sm...@pooteeweet.org>
Subject Re: Exception while tryng to connect to Oak via WebDav
Date Sun, 03 Aug 2014 18:57:13 GMT

> On 01 Aug 2014, at 18:42, "zamron.m" <samron.m@gmail.com> wrote:
> 
> Hi, this is my first post, :)
> I've a java application to connect to Jackrabbit that uses the WebDav
> libraries. It worked using Jackrabbit but when tried with "Oak" (1.0.3) it
> has stopped  working.
> 
> Specifically i can connect to Oak, i receive a positive message, but when
> trying to do the loging i receved the following exception:
> /org.apache.jackrabbit.webdav.DavException: Method PROPFIND is not defined
> in RFC 2068 and is not supported by the Servlet API
> /
> 
> *Complete log of the exception:*
> 250 [main] INFO org.apache.commons.httpclient.auth.AuthChallengeProcessor -
> basic authentication scheme selected
> 251 [main] INFO org.apache.commons.httpclient.HttpMethodDirector - No
> credentials available for BASIC 'Oak'@localhost:4502
> 251 [main] WARN org.apache.jackrabbit.spi2dav.RepositoryServiceImpl -
> Authentication required to access repository descriptors
> Missing implementation
> javax.jcr.UnsupportedRepositoryOperationException: Missing implementation
>    at
> org.apache.jackrabbit.spi2dav.ExceptionConverter.generate(ExceptionConverter.java:116)
>    at
> org.apache.jackrabbit.spi2dav.ExceptionConverter.generate(ExceptionConverter.java:51)
>    at
> org.apache.jackrabbit.spi2dav.ExceptionConverter.generate(ExceptionConverter.java:45)
>    at
> org.apache.jackrabbit.spi2dav.RepositoryServiceImpl.obtain(RepositoryServiceImpl.java:782)
>    at
> org.apache.jackrabbit.spi2dav.RepositoryServiceImpl.obtain(RepositoryServiceImpl.java:726)
>    at
> org.apache.jackrabbit.spi2davex.RepositoryServiceImpl.obtain(RepositoryServiceImpl.java:301)
>    at
> org.apache.jackrabbit.jcr2spi.RepositoryImpl.login(RepositoryImpl.java:151)
>    at
> it.deck47.consulting.CRXConnectorService.login(CRXConnectorService.java:104)
>    at
> it.deck47.consulting.SessionManager.createSession(SessionManager.java:104)
>    at it.deck47.consulting.SessionManager.getInstance(SessionManager.java:71)
>    at
> it.deck47.consulting.ValidateAndCrx.enableSession(ValidateAndCrx.java:157)
>    at
> it.deck47.consulting.ValidateAndCrx.checkAndWritePathName(ValidateAndCrx.java:225)
>    at
> it.deck47.consulting.simulaChiamataLC_query.main(simulaChiamataLC_query.java:97)
> Caused by: org.apache.jackrabbit.webdav.DavException: Method PROPFIND is not
> defined in RFC 2068 and is not supported by the Servlet API
>    at
> org.apache.jackrabbit.webdav.client.methods.DavMethodBase.getResponseException(DavMethodBase.java:162)
>    at
> org.apache.jackrabbit.webdav.client.methods.DavMethodBase.getResponseBodyAsMultiStatus(DavMethodBase.java:91)
>    at
> org.apache.jackrabbit.spi2dav.RepositoryServiceImpl.obtain(RepositoryServiceImpl.java:754)
>    ... 9 more
> 
> The connection parameter are right, i can connect via Curl and execute
> commands (like create a node)
> I was wondering if this version of oak comes without the implementation of
> RepositoryService interface (the class RepositoryServiceImpl.java is
> missing), whereas jackrabbit have already has the interface implemented.
> 
> I hope anybody can help me, thanks

I think by default Oak does not provide the old HTTP binding. This thread might give you some
pointers about getting the old API back in Oak:
http://mail-archives.apache.org/mod_mbox/jackrabbit-oak-dev/201406.mbox/%3C6CDBD514-A273-4D96-AEC0-F9609FDBFBAB@pooteeweet.org%3E

regards,
Lukas
Mime
View raw message