Re: Problem embedding in Glassfish

2009-11-16 Thread David Latorre
I'm glad, your problem was solved (should we maybe add this somewhere
in the wiki?) and as Niklas said, It would be cool that you shared
your db-based file manager :-)

Cheers,

David



2009/11/12 Brett Bergquist br...@thebergquistfamily.com:
 Yes, I am under the gun to use them for a Friday demo but I will clean them
 up and make sure they are generic and contribute the back.  Right now I am
 limiting the capability to predefined directories to FTP into but it will
 be relatively easily to add full functionality.

 Niklas Gustavsson wrote:

 On Thu, Nov 12, 2009 at 1:18 AM, Brett Bergquist
 br...@thebergquistfamily.com wrote:


 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.


 Cool, if this is something you would like to share, I would be happy
 to have a look at the classes for inclusion in the main project. Of
 course, given that they are generic.



 This is pretty sweet.  The architecture of this is very nice, very
 plugable.
 I really like it!


 That's good to hear :-)

 /niklas





Re: Problem embedding in Glassfish

2009-11-16 Thread Niklas Gustavsson
On Mon, Nov 16, 2009 at 11:40 AM, David Latorre dvl...@gmail.com wrote:
 I'm glad, your problem was solved (should we maybe add this somewhere
 in the wiki?)

Sounds good. Feel free to add it to the FAQ :-)

http://mina.apache.org/ftpserver/faq.html

/niklas


Re: Problem embedding in Glassfish

2009-11-16 Thread David Latorre
2009/11/16 Niklas Gustavsson nik...@protocol7.com:
 On Mon, Nov 16, 2009 at 11:40 AM, David Latorre dvl...@gmail.com wrote:
 I'm glad, your problem was solved (should we maybe add this somewhere
 in the wiki?)

 Sounds good. Feel free to add it to the FAQ :-)

 http://mina.apache.org/ftpserver/faq.html


Unfortunately I don't have access to cwiki ( I mean, I do have an
account - dlatorre - but I cannot edit the pages). I think I commented
on this before but never requested to be added to the appropriate
groups before, I guess this is a good moment :-)


Re: Problem embedding in Glassfish

2009-11-16 Thread Niklas Gustavsson
On Mon, Nov 16, 2009 at 12:59 PM, David Latorre dvl...@gmail.com wrote:
 Unfortunately I don't have access to cwiki ( I mean, I do have an
 account - dlatorre - but I cannot edit the pages). I think I commented
 on this before but never requested to be added to the appropriate
 groups before, I guess this is a good moment :-)

Done :-)

/niklas


Re: Problem embedding in Glassfish

2009-11-11 Thread David Latorre
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 br...@thebergquistfamily.com:
 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\brettftp 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.







Re: Problem embedding in Glassfish

2009-11-11 Thread Brett Bergquist
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 br...@thebergquistfamily.com:
  

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 AddressState
 TCP0.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\brettftp 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.




  


  


Problem embedding in Glassfish

2009-11-10 Thread Brett Bergquist
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 AddressState
 TCP0.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\brettftp 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.




RE: Problem embedding in Glassfish

2009-11-10 Thread Zhu, Yan-Bo (TSG-GDCC-CD)
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 AddressState
   TCP0.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\brettftp 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.