Discuss (FTP) and (SFTP, FTPS and SCP), our Java file transfer clients.
no avatar
User

Bigcalm

Posts

5

Joined

Tue Oct 05, 2010 8:06 pm

Looking for FTPS:// examples.

by Bigcalm » Tue Oct 05, 2010 8:11 pm

no avatar
User

Bigcalm

Posts

5

Joined

Tue Oct 05, 2010 8:06 pm

by Bigcalm » Tue Oct 05, 2010 9:57 pm

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

by support2 » Tue Oct 05, 2010 11:01 pm

no avatar
User

Bigcalm

Posts

5

Joined

Tue Oct 05, 2010 8:06 pm

by Bigcalm » Tue Oct 05, 2010 11:13 pm

Thanks Bruce.

Off topic perhaps, but how can I get enterprisedt logger messages? I've tried modifying my log4j by adding this line...

log4j.logger.com.enterprisedt=info, stdout

But this doesn't seem to work?
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

by support2 » Wed Oct 06, 2010 7:16 am

Here's how to set up logging, including log4j integration:

http://www.enterprisedt.com/products/ed ... gging.html
no avatar
User

Bigcalm

Posts

5

Joined

Tue Oct 05, 2010 8:06 pm

by Bigcalm » Fri Oct 08, 2010 6:23 pm

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

by support2 » Fri Oct 08, 2010 7:29 pm

Yes do the license reg before creating SSLFTPClient.

Use:

-Dedtftp.log.log4j=true

Here's the log4j.properties I've got here:

log4j.rootLogger=, A1
log4j.appender.A1=org.apache.log4j.FileAppender
log4j.appender.A1.File=log4j.log
log4j.appender.A1.Threshold=DEBUG
log4j.appender.A1.Append=true
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-5r %-5p [%t] %c{2} - %m%n
no avatar
User

Bigcalm

Posts

5

Joined

Tue Oct 05, 2010 8:06 pm

by Bigcalm » Fri Oct 08, 2010 8:04 pm

I can't this to work whatever I try: -D<property> option in tomcat server didn't work either, even after removing all references to trying to set this within code, so my tomcat start options are '-XX:+AggressiveHeap -XX:MaxPermSize=128m -Xms512m -Xmx1024m -Dedtftp.log.log4j=true' - this should work, but doesn't). It may be a tomcat problem perhaps.

log4j.jar is definitely on the classpath - I log pretty much everything there - here's a bit of my log4j file:

log4j.logger.org.quartz=error, logfile
log4j.logger.net.sf.jasperreports=error, stdout
log4j.logger.org.springframework=info, stdout
log4j.logger.org.hibernate=error,stdout
log4j.logger.test=info, logfile
log4j.logger.net.sf.jasperreports=info, stdout
log4j.logger.com.enterprisedt=info, stdout

(which all works lovely apart from the enterprisedt bit).

It doesn't really matter - thank you for trying Bruce, but I'm just not bright enough to do this I think!!!

I can cope without logging as it seems to be working ok now anyway, and as I'm using lots of logging within my own module anyway so it's pretty clear when and where, say, ftp.connect() fails if it does.

Thanks for all your help

- Jon
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

by support2 » Fri Oct 08, 2010 11:46 pm

I haven't tried in Tomcat, but try removing this line:

log4j.logger.com.enterprisedt

and add the lines above (which set up the root logger).

Who is online

Users browsing this forum: No registered users and 116 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron