You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by "Niu, Xuetao" <Xu...@fiserv.com> on 2010/03/12 16:20:08 UTC
How to make a DavEx client work?
Hello,
I deployed the standalone WAR into my Tomcat6 at address:
http://localhost:8080/jackrabbit-webapp-2.0.0
According to http://wiki.apache.org/jackrabbit/RemoteAccess#DavEx I let
the client access address http://ffcdisrwas01:9080/Jackrabbit/server
which is available if I use browser to access it.
But I got the following errors when I am saving a session. Have you guys
been through such problem?
Caused by: javax.jcr.RepositoryException: Bad Request
at
org.apache.jackrabbit.spi2dav.ExceptionConverter.generate(ExceptionConve
rter.java:113)
at
org.apache.jackrabbit.spi2dav.ExceptionConverter.generate(ExceptionConve
rter.java:49)
at
org.apache.jackrabbit.spi2davex.RepositoryServiceImpl$BatchImpl.start(Re
positoryServiceImpl.java:457)
at
org.apache.jackrabbit.spi2davex.RepositoryServiceImpl$BatchImpl.access$2
00(RepositoryServiceImpl.java:399)
at
org.apache.jackrabbit.spi2davex.RepositoryServiceImpl.submit(RepositoryS
erviceImpl.java:304)
at
org.apache.jackrabbit.jcr2spi.WorkspaceManager$OperationVisitorImpl.exec
ute(WorkspaceManager.java:830)
at
org.apache.jackrabbit.jcr2spi.WorkspaceManager$OperationVisitorImpl.acce
ss$500(WorkspaceManager.java:797)
at
org.apache.jackrabbit.jcr2spi.WorkspaceManager.execute(WorkspaceManager.
java:594)
at
org.apache.jackrabbit.jcr2spi.state.SessionItemStateManager.save(Session
ItemStateManager.java:139)
at
org.apache.jackrabbit.jcr2spi.ItemImpl.save(ItemImpl.java:246)
at
org.apache.jackrabbit.jcr2spi.SessionImpl.save(SessionImpl.java:328)
at
com.fiserv.repository.jcr.JCRUtils.cleanSession(JCRUtils.java:382)
... 21 more
Caused by: org.apache.jackrabbit.webdav.DavException: Bad Request
at
org.apache.jackrabbit.webdav.client.methods.DavMethodBase.getResponseExc
eption(DavMethodBase.java:172)
at
org.apache.jackrabbit.webdav.client.methods.DavMethodBase.checkSuccess(D
avMethodBase.java:181)
at
org.apache.jackrabbit.spi2davex.RepositoryServiceImpl$BatchImpl.start(Re
positoryServiceImpl.java:453)
... 30 more
Thanks in advance,
Xuetao
RE: How to make a DavEx client work?
Posted by "Niu, Xuetao" <Xu...@fiserv.com>.
I made a mistake pasting the address, it should be
http://localhost:8080/jackrabbit-webapp-2.0.0/server that I am
connecting to. And this address works find in web browser. Sorry...
-----Original Message-----
From: ChadDavis [mailto:chadmichaeldavis@gmail.com]
Sent: Friday, March 12, 2010 6:13 PM
To: users@jackrabbit.apache.org
Subject: Re: How to make a DavEx client work?
On Fri, Mar 12, 2010 at 8:20 AM, Niu, Xuetao <Xu...@fiserv.com>
wrote:
> Hello,
>
>
>
> I deployed the standalone WAR into my Tomcat6 at address:
> http://localhost:8080/jackrabbit-webapp-2.0.0
>
>
>
> According to http://wiki.apache.org/jackrabbit/RemoteAccess#DavEx I
let
> the client access address http://ffcdisrwas01:9080/Jackrabbit/server
> which is available if I use browser to access it.
Why is your client pointing to a different address than you deployed
the server to?
Re: How to make a DavEx client work?
Posted by ChadDavis <ch...@gmail.com>.
On Fri, Mar 12, 2010 at 8:20 AM, Niu, Xuetao <Xu...@fiserv.com> wrote:
> Hello,
>
>
>
> I deployed the standalone WAR into my Tomcat6 at address:
> http://localhost:8080/jackrabbit-webapp-2.0.0
>
>
>
> According to http://wiki.apache.org/jackrabbit/RemoteAccess#DavEx I let
> the client access address http://ffcdisrwas01:9080/Jackrabbit/server
> which is available if I use browser to access it.
Why is your client pointing to a different address than you deployed
the server to?
RE: How to make a DavEx client work?
Posted by "Niu, Xuetao" <Xu...@fiserv.com>.
Sorry, correction, I put
"http://localhost:8080/jackrabbit-webapp-2.0.0/server" into
JcrUtils.getRepository(uri).
And at the server side, I have already created a repository, and using
the above url in browser, I can perfectly see the repository's
structure.
-----Original Message-----
From: Niu, Xuetao
Sent: Friday, March 12, 2010 4:20 PM
To: users@jackrabbit.apache.org
Subject: How to make a DavEx client work?
Hello,
I deployed the standalone WAR into my Tomcat6 at address:
http://localhost:8080/jackrabbit-webapp-2.0.0
According to http://wiki.apache.org/jackrabbit/RemoteAccess#DavEx I let
the client access address http://ffcdisrwas01:9080/Jackrabbit/server
which is available if I use browser to access it.
But I got the following errors when I am saving a session. Have you guys
been through such problem?
Caused by: javax.jcr.RepositoryException: Bad Request
at
org.apache.jackrabbit.spi2dav.ExceptionConverter.generate(ExceptionConve
rter.java:113)
at
org.apache.jackrabbit.spi2dav.ExceptionConverter.generate(ExceptionConve
rter.java:49)
at
org.apache.jackrabbit.spi2davex.RepositoryServiceImpl$BatchImpl.start(Re
positoryServiceImpl.java:457)
at
org.apache.jackrabbit.spi2davex.RepositoryServiceImpl$BatchImpl.access$2
00(RepositoryServiceImpl.java:399)
at
org.apache.jackrabbit.spi2davex.RepositoryServiceImpl.submit(RepositoryS
erviceImpl.java:304)
at
org.apache.jackrabbit.jcr2spi.WorkspaceManager$OperationVisitorImpl.exec
ute(WorkspaceManager.java:830)
at
org.apache.jackrabbit.jcr2spi.WorkspaceManager$OperationVisitorImpl.acce
ss$500(WorkspaceManager.java:797)
at
org.apache.jackrabbit.jcr2spi.WorkspaceManager.execute(WorkspaceManager.
java:594)
at
org.apache.jackrabbit.jcr2spi.state.SessionItemStateManager.save(Session
ItemStateManager.java:139)
at
org.apache.jackrabbit.jcr2spi.ItemImpl.save(ItemImpl.java:246)
at
org.apache.jackrabbit.jcr2spi.SessionImpl.save(SessionImpl.java:328)
at
com.fiserv.repository.jcr.JCRUtils.cleanSession(JCRUtils.java:382)
... 21 more
Caused by: org.apache.jackrabbit.webdav.DavException: Bad Request
at
org.apache.jackrabbit.webdav.client.methods.DavMethodBase.getResponseExc
eption(DavMethodBase.java:172)
at
org.apache.jackrabbit.webdav.client.methods.DavMethodBase.checkSuccess(D
avMethodBase.java:181)
at
org.apache.jackrabbit.spi2davex.RepositoryServiceImpl$BatchImpl.start(Re
positoryServiceImpl.java:453)
... 30 more
Thanks in advance,
Xuetao