You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Paul Davis <pa...@gmail.com> on 2008/08/08 19:49:12 UTC

problem with PUT on remote server

I'm sure this is just me but, I can't figure out how to debug.

When I setup a local instance of tomcat and deployed the sling war, it
all worked fine.
Setting up a remote server, everything the same except tomcat now uses
startup scripts, I can't PUT a .esp file.

Running:
curl -X MKCOL http://admin:admin@10.1.4.122:8083/sling/apps
curl -X MKCOL http://admin:admin@10.1.4.122:8083/sling/apps/editorial
curl -X MKCOL http://admin:admin@10.1.4.122:8083/sling/apps/editorial/tracks

works
Adding content with curl also works fine
trying:
curl -X PUT -d xml.esp
http://admin:admin@10.1.4.122:8083/sling/apps/editorial/tracks/xml.esp

fails with a 500 error.
Here's the log output:

08.08.2008 10:42:52.886 *INFO* [http-8083-Processor23]
logs/request.log 08/Aug/2008:10:42:52 -0700 [78] -> PUT
/sling/apps/editorial/tracks/xml.esp HTTP/1.1
08.08.2008 10:42:52.886 *INFO* [http-8083-Processor23]
org.apache.sling.jcr.resource.internal.JcrResourceResolver Could not
resolve URL /apps/editorial/tracks/xml.esp to a Resource
08.08.2008 10:42:52.888 *ERROR* [http-8083-Processor23]
org.apache.jackrabbit.webdav.simple.DavResourceImpl Error while
importing resource: java.io.IOException: No such file or directory
08.08.2008 10:42:52.889 *INFO* [http-8083-Processor23]
logs/request.log 08/Aug/2008:10:42:52 -0700 [78] <- 500 text/html;
charset=UTF-8 3ms
08.08.2008 10:42:52.889 *INFO* [http-8083-Processor23] logs/access.log
10.1.4.37 - admin 08/Aug/2008:10:42:52 -0700 "PUT
/sling/apps/editorial/tracks/xml.esp HTTP/1.1" 500 438 "-"
"curl/7.18.0 (i486-pc-linux-gnu) libcurl/7.18.0 OpenSSL/0.9.8g
zlib/1.2.3.3 libidn/1.1"

Trying to copy the file with webdav gives an access denied error,
though I can see the directory path....
Am I just missing something?

thanks

Re: problem with PUT on remote server

Posted by Paul Davis <pa...@gmail.com>.
Problem solved.
It was just me.
The tomcat temp directory wasn't writable by tomcat
       DOH!!!

On Fri, Aug 8, 2008 at 10:49 AM, Paul Davis <pa...@gmail.com> wrote:
> I'm sure this is just me but, I can't figure out how to debug.
>
> When I setup a local instance of tomcat and deployed the sling war, it
> all worked fine.
> Setting up a remote server, everything the same except tomcat now uses
> startup scripts, I can't PUT a .esp file.
>
> Running:
> curl -X MKCOL http://admin:admin@10.1.4.122:8083/sling/apps
> curl -X MKCOL http://admin:admin@10.1.4.122:8083/sling/apps/editorial
> curl -X MKCOL http://admin:admin@10.1.4.122:8083/sling/apps/editorial/tracks
>
> works
> Adding content with curl also works fine
> trying:
> curl -X PUT -d xml.esp
> http://admin:admin@10.1.4.122:8083/sling/apps/editorial/tracks/xml.esp
>
> fails with a 500 error.
> Here's the log output:
>
> 08.08.2008 10:42:52.886 *INFO* [http-8083-Processor23]
> logs/request.log 08/Aug/2008:10:42:52 -0700 [78] -> PUT
> /sling/apps/editorial/tracks/xml.esp HTTP/1.1
> 08.08.2008 10:42:52.886 *INFO* [http-8083-Processor23]
> org.apache.sling.jcr.resource.internal.JcrResourceResolver Could not
> resolve URL /apps/editorial/tracks/xml.esp to a Resource
> 08.08.2008 10:42:52.888 *ERROR* [http-8083-Processor23]
> org.apache.jackrabbit.webdav.simple.DavResourceImpl Error while
> importing resource: java.io.IOException: No such file or directory
> 08.08.2008 10:42:52.889 *INFO* [http-8083-Processor23]
> logs/request.log 08/Aug/2008:10:42:52 -0700 [78] <- 500 text/html;
> charset=UTF-8 3ms
> 08.08.2008 10:42:52.889 *INFO* [http-8083-Processor23] logs/access.log
> 10.1.4.37 - admin 08/Aug/2008:10:42:52 -0700 "PUT
> /sling/apps/editorial/tracks/xml.esp HTTP/1.1" 500 438 "-"
> "curl/7.18.0 (i486-pc-linux-gnu) libcurl/7.18.0 OpenSSL/0.9.8g
> zlib/1.2.3.3 libidn/1.1"
>
> Trying to copy the file with webdav gives an access denied error,
> though I can see the directory path....
> Am I just missing something?
>
> thanks
>