I have a web server app.
Use jtds-1.3.1-a.jar to connect to MS sql server.
Everything is OK.
In the same APP, on the same computer, in the same directory.
I use "NSSM" to make the app a windows service.
It can be made into a service and web server starts correctly.
But only SQL SERVER connection fails!
It returns the following message:
"java.sql.SQLException: Unable to open database "TESTDB" requested for login. Login failed."
I switched back to running it with java.exe -jar myapp.jar and it all worked fine again.
Has anyone encountered this problem?
Or is "JDTS" not able to be executed in then service mode?
Use jtds-1.3.1-a.jar to connect to MS sql server.
Everything is OK.
In the same APP, on the same computer, in the same directory.
I use "NSSM" to make the app a windows service.
It can be made into a service and web server starts correctly.
But only SQL SERVER connection fails!
It returns the following message:
"java.sql.SQLException: Unable to open database "TESTDB" requested for login. Login failed."
I switched back to running it with java.exe -jar myapp.jar and it all worked fine again.
Has anyone encountered this problem?
Or is "JDTS" not able to be executed in then service mode?