Just tried that at home tonight on my Vista box, an it works. I don't
think I would have ever found that. I wonder what in the heck that does
to affect connecting to TCP connection?
Anyways, I'm now writing n FileSystemFactory, FileSystemView, and
FtpFile classes that provide a file system in a database using blobs,
etc. I actually got it working today to retrieve "files" stored in our
database. Now to the storing side working.
This is pretty sweet. The architecture of this is very nice, very
plugable. I really like it!
David Latorre wrote:
Hello Brett,
Try to uncomment this line in domain.xml:
com.sun.enterprise.server.ss.ASQuickStartup=false
It seems that there's some odd problem relating to NIO when
QuickStartup is enabled. I had this problem myself but only in some
glassfish versions under Vista, i wonder why's that... If you still
can't make it work you might want to deploy our some war file
ftpserver and see if it works.
2009/11/11 Brett M. Bergquist <[email protected]>:
It seems to be something with my Vista machine. Here at work running XP, I
have no problems :( Now to find out what in the heck it is. Since I see no
debug output when connecting, it must still be some issue with security or
firewall on the Vista machine. Funny thing is that I can start the
standalone ftpd.exe and that runs.
Zhu, Yan-Bo (TSG-GDCC-CD) wrote:
Make sure you are not in debug mode and your application is breaking at a
breakpoint.....
I am trying to embed the server in Glassfish. I am doing so by creating
a Glassfish LifecycleListener and I start the server up when I receive
the ready event. This seems to be working but I cannot connect to the
server. I try and basically the connect just hangs. I am running this
on Window's Vista and I have turned off the firewall.
Netstat -a reports:
Active Connections
Proto Local Address Foreign Address State
TCP 0.0.0.0:21 brett-home:0
LISTENING
So it seems like the server is up and running. I also made sure that I
did not have anything running on port 21 to begin with.
My Glassfish log looks like:
WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8181
WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 4848
SMGT0007: Self Management Rules service is enabled
[ INFO] 2009-11-10 21:05:32,534 [] [] FTP server started
onReady called
Application server startup complete.
So from that it looks like I the server started up correctly. But I
cannot connect to the server:
C:\Users\brett>ftp localhost
Connected to brett-home.
This just hangs. I don't see anything in the Glassfish log either when
I do this. It's as if it never reaches the code.