one thing you might try is setting JAVA_HOME so that it does not contain spaces before installing as a service google for "JAVA_HOME" and "spaces" to get an idea of the spectrum of java apps that may have a problem with this
ie, for any directories in the path, use the short name (aka the 8.3 name) which for "Program Files" is likely to be "PROGRA~1" a "dir /x" will show the short name cheers, robin On Thu, Oct 2, 2008 at 11:24 PM, Mateus Stock <[EMAIL PROTECTED]>wrote: > Ive been trying for the past several hours how to start the service on > windows ive had no success. > I can run from the command line fine: > C:\Program Files (x86)\Apache Software Foundation\Apache FtpServer > 1.0.0-M3\bin>ftpd.bat > Using default configuration > FtpServer started > > I can install the service without any problems either: > > C:\Program Files (x86)\Apache Software Foundation\Apache FtpServer > 1.0.0-M3\bin>service.bat install > Installing the service 'ftpd' ... > Using FTPD_HOME: C:\Program Files (x86)\Apache Software > Foundation\Apache FtpServer 1.0.0-M3 > Using JAVA_HOME: C:\Program Files\Java\jdk1.6.0_07 > Using JVM: C:\Program > Files\Java\jdk1.6.0_07\jre\bin\server\jvm.dll > start > start > The service 'ftpd' has been installed. > > > But whenever I try to start the service nothing happens. > In the log file I have the following message: > > [2008-10-03 03:20:06] [458 javajni.c] [error] FindClass > org/apache/ftpserver/main/Daemon failed > [2008-10-03 03:20:06] [958 prunsrv.c] [error] Failed loading main > org/apache/ftpserver/main/Daemon class C:\Program Files (x86)\Apache > Software Foundation\Apache FtpServer 1.0.0-M3\common\classes;C:\Program > Files (x86)\Apache Software Foundation\Apache FtpServer > 1.0.0-M3\common\lib\ftplet-api-1.0.0-M3.jar;C:\Program Files (x86)\Apache > Software Foundation\Apache FtpServer > 1.0.0-M3\common\lib\ftpserver-core-1.0.0-M3.jar;C:\Program Files > (x86)\Apache Software Foundation\Apache FtpServer > 1.0.0-M3\common\lib\jcl-over-slf4j-1.5.2.jar;C:\Program Files (x86)\Apache > Software Foundation\Apache FtpServer > 1.0.0-M3\common\lib\log4j-1.2.14.jar;C:\Program Files (x86)\Apache Software > Foundation\Apache FtpServer > 1.0.0-M3\common\lib\mina-core-2.0.0-M3.jar;C:\Program Files (x86)\Apache > Software Foundation\Apache FtpServer > 1.0.0-M3\common\lib\slf4j-api-1.5.2.jar;C:\Program Files (x86)\Apache > Software Foundation\Apache FtpServer > 1.0.0-M3\common\lib\slf4j-log4j12-1.5.2.jar;C:\Program Files (x86)\Apache > Software Foundation\Apache FtpServer 1.0.0-M3\common\lib\spring-beans-2.5. > [2008-10-03 03:20:06] [1202 prunsrv.c] [error] ServiceStart returned 3 > > > This is my current setting: > Path to executable: "C:\Program Files (x86)\Apache Software > Foundation\Apache FtpServer 1.0.0-M3\bin\ftpd.exe" //RS//ftpd > Java Virtual Machine: C:\Program Files > (x86)\Java\jre1.6.0_06\bin\client\jvm.dll > Java classpath: > C:\Program Files (x86)\Apache Software Foundation\Apache FtpServer > 1.0.0-M3\common\classes;C:\Program Files (x86)\Apache Software > Foundation\Apache FtpServer > 1.0.0-M3\common\lib\ftplet-api-1.0.0-M3.jar;C:\Program Files (x86)\Apache > Software Foundation\Apache FtpServer > 1.0.0-M3\common\lib\ftpserver-core-1.0.0-M3.jar;C:\Program Files > (x86)\Apache Software Foundation\Apache FtpServer > 1.0.0-M3\common\lib\jcl-over-slf4j-1.5.2.jar;C:\Program Files (x86)\Apache > Software Foundation\Apache FtpServer > 1.0.0-M3\common\lib\log4j-1.2.14.jar;C:\Program Files (x86)\Apache Software > Foundation\Apache FtpServer > 1.0.0-M3\common\lib\mina-core-2.0.0-M3.jar;C:\Program Files (x86)\Apache > Software Foundation\Apache FtpServer > 1.0.0-M3\common\lib\slf4j-api-1.5.2.jar;C:\Program Files (x86)\Apache > Software Foundation\Apache FtpServer > 1.0.0-M3\common\lib\slf4j-log4j12-1.5.2.jar;C:\Program Files (x86)\Apache > Software Foundation\Apache FtpServer > 1.0.0-M3\common\lib\spring-beans-2.5.5.jar;C:\Program Files (x86)\Apache > Software Foundation\Apache FtpServer > 1.0.0-M3\common\lib\spring-core-2.5.5.jar > > Startup - Class: org.apache.ftpserver.main.Daemon > Working path: C:\Program Files (x86)\Apache Software Foundation\Apache > FtpServer 1.0.0-M3 > Arguments: start > Mode: jvm > > Shutdown- Class: org.apache.ftpserver.main.Daemon > Working path: > Arguments: stop > Mode: jvm > > > I dont know what else to do. > Im running Windows Vista x64. > > Mateus Stock >
