Hello Phlogiston,
 I'm embedding FTPServer in a webapp with my log4j.properties in
WEB-INF/classes and it is working perfectly. I don't know what can be your
problem.
By the way, if you're reading this Niklas, I was about to send my .war with
FTPServer embedded when I noticed that if my listener config was wrong and
the server didn't stop correctly    I had to restart the Application Server
cause the port was already in use by the JVM even after undeploying the war.

I didn't have time to check it last week but I guess the problem is that
you're setting "started=true" after starting all the listeners. Even if I
catch the Exception in FtpsServer.start() and I call stop, it won't stop
anything as started hasn't been set.





2008/10/6 Phlogiston Eight <[EMAIL PROTECTED]>

>
> I have log4j.properties in the /classes subdir as usual, but for some
> reason, the webapp does not seem to be finding it.  Logging is not working
> yet, no log files being written when the app is run. The FTPServer, itself
> is running and working fine. But it is not logging.
>
>
> We are running FTPServer embedded in our webapp.  It is writing to
> System.out. that "No appenders are set-up" (Log4j). However, an appender IS
> defined properly in the log4j.properties file--which is inside
> WEB-INF/classes.  I have used log4j on its own, for years, in web
> applications. For web applications, WEB-INF/classes is where you are
> supposed to put log4j.properties, to define the appenders.
>
> Where do I have to put log4j.properties within my project for FTPServer to
> successfullly find it?  I'm looking for a specific direectory or URI.
> Thanks.
> _________________________________________________________________
> Get more out of the Web. Learn 10 hidden secrets of Windows Live.
>
> http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008

Reply via email to