You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by sc...@financial.com on 2004/07/15 17:23:31 UTC

Opening a WebdavResource from a Servlet.

> Strange. I would expect that you get the exception as soon as you call
> the WebdavResource constructor. Can you post the stack trace and
> possibly a trace of the network traffic?

Ok, now I found out, that only the constructor of the WebdavFile was NOT
throwing the Exception at once. The WebdavResource is throwing right away
in the constructor.

I downloaded the source of the command-line-client. I exactly have the
same calls and the same syntax. Still it doesn't work. But I have a doubt,
that the webdav api is not the point. When trying the command line client,
my local firewall asked my if I want to allow the programm java.exe to
access the internet (firewall doesn't seem to know that localhost is not
the internet) but when I do the same in my servlet, the firewall does not
ask.

So I think the connection is not even tried. Can it be that tomcat blocks
the URL connection? It might be some security stuff, so that webapps can
not make nasty things. How and where can I tell tomcat, what my webapp is
allowed to do, and what not?

Thanks for your help (again and still)
Frank







---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: Opening a WebdavResource from a Servlet.

Posted by Ingo Brunberg <ib...@fiz-chemie.de>.
> > Strange. I would expect that you get the exception as soon as you call
> > the WebdavResource constructor. Can you post the stack trace and
> > possibly a trace of the network traffic?
> 
> Ok, now I found out, that only the constructor of the WebdavFile was NOT
> throwing the Exception at once. The WebdavResource is throwing right away
> in the constructor.
> 
> I downloaded the source of the command-line-client. I exactly have the
> same calls and the same syntax. Still it doesn't work. But I have a doubt,
> that the webdav api is not the point. When trying the command line client,
> my local firewall asked my if I want to allow the programm java.exe to
> access the internet (firewall doesn't seem to know that localhost is not
> the internet) but when I do the same in my servlet, the firewall does not
> ask.

If the firewall is the problem try to use 127.0.0.1 instead of
localhost. Sometimes that makes a difference.

> 
> So I think the connection is not even tried. Can it be that tomcat blocks
> the URL connection? It might be some security stuff, so that webapps can
> not make nasty things. How and where can I tell tomcat, what my webapp is
> allowed to do, and what not?
> 
> Thanks for your help (again and still)
> Frank


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org