Hi Sai,

I too have been thinking of class and library path.

I didn't change either: I added the SQL Server driver jar to ftpserver's
common\lib folder and the dll to java's bin folder.

If I delete sqljdbc4.jar from the lib folder I get the same error when
running from the command line as the service produces but when I run the
service with the jar present I can see with process monitor that the jar
is found and read (at least in part) and that ftpd.exe reads classpath
from the registry and it includes this jar. So, I think the classpath is
OK and the jar is found by the service OK.

Interestingly, when run as a service, the error is produced before
sqljdbc_auth.dll is read. In fact, I found no reference to
sqljdbc_auth.dll.

When I run from the batch file much more of sqljdbc4.jar is read, there
are interactions with SQL Server and, eventually, sqljdbc_auth.dll is
also read.

So, it appears that for some reason when run as a service sqljdbc4.jar
is accessed but for some reason doesn't accept the URI, without even
communicating with SQL Server.

Ian





Reply via email to