cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Wilder-Smith <ch...@wilder-smith.org>
Subject Re: Resolving ftp sources
Date Mon, 12 Jul 2004 16:41:53 GMT
The official syntax for an ftp URL looks like this:

ftp://user:password@host:port/path


Hope that helps,

Chris


On Mon, 2004-07-12 at 12:32, Oscar Picasso wrote:
> > Tee hee. You should have been able to do that by specifying a serializer 
> > for the SourceWritingTransformer to have used.
> 
> That was my first idea. However in my case the SourceWritingTransformer has
> features that I don't need, and lacks features that I need.
> So the parsed xml elements are not the same.
> 
> For example I have <source>some-source-url</source> and
> <target>some-target-url</target>.
> 
> > Hmm. Basically, the URLSource can handle FTP, but not writable. So, you 
> > need to add something like:
> > 
> >     <component-instance 
> > class="org.apache.excalibur.source.impl.FTPSourceFactory" name="ftp"/>
> > 
> > into your cocoon.xconf, before the similar definition of the URLSource, 
> > which has name="*"
> > 
> > Does that make sense?
> 
> It makes a lot of sense. I am now able to get a FTPSource. I get however a
> "sun.net.ftp.FtpLoginException: Not logged in".
> 
> It sounds like it's a user/password problem. But I have not been able to find
> out how to set them. I have tried many things like:
> 
> SourceParameters params = new SourceParameters();
> params.setParameter("user", "anonymous");
> params.setParameter("password", "");
> Map map = new HashMap();
> map.put(SourceResolver.URI_PARAMETERS, params);
> targetSrc = resolver.resolveURI("/pub/all/binary-file", "ftp://myftp-server",
> map);
> 
> and many other things. But I get always the same Exception.
> 
> Any idea?
> 
> Thanks for your input.
> 
> 
> 		
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - Send 10MB messages!
> http://promotions.yahoo.com/new_mail
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
-- 
Chris Wilder-Smith <chris@wilder-smith.org>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message