If I start Servoy Developer, the Sybase-databases are launched automaticly (when they are not running)
When I start the Servoy Server (on win2000 under services) the Sybase databases are NOT launched.
Is it possible to add this somewhere in the wrapper-config file?
Or do I have to do something else?
We don’t know which databases are used by the servoy server so we start none.
Actually we did not want to start any db, but in that cenario Servoy developer is not running out of the installer (which seemed bad to us).
It is also far more efficient to start any database on system startup.
[EDIT: Don’t follow the instructions in this post, use the ones in the lower post]
NOTE: instructions below are windows only
-Open Sybase Central
-Click mobilink server, services
-Click Add service
-follow the online instructions
For executable use:
c:\Servoy\sybase_db\dbsrv9.exe
(adjust path as necessary!)
for parameters use: @c:\Servoy\sybase_db\sybase.config
(adjust path as necessary!)
My wrong. My instructions were incorrect. After a bit more research here’s the correct way to do it.
(adjust paths as necessary)
Open Sybase Central
Click Adaptive Server Anywhere 9 on the left
Click on the Services tab on the right
Create a new service, name it
Choose Network database server
Point it to the database server that ships with Servoy, by default:
C:\Program Files\Servoy\sybase_db\dbsrv9.exe
In the parameters section fill in:
C:\Program Files\Servoy\sybase_db\sybase.config
Next, next, until finish
Before you start it adjust your sybase.config file, make sure that all paths in it become absolute.
sybase_db/sybase_log.txt becomes:
C:/Program Files/Servoy/sybase_db/sybase_log.txt
and also for each database line entry:
database/servoy_repository.db becomes:
By default we don’t put absolute paths in the configuration file so that you can move your Servoy directory easily to another directory and/or disk.
If you also run Servoy Application Server as a adjust it’s dependency in the properties of the service so that it start after iAnywhere starts (listed as Adaptive Server Anywhere SERVICENAME in Services)
I am not able to change the Servoy Application Server dependency in the properties of the service because it is grayed out. My Sybase Central settings are shown below.
Also, with the current settings I am not able to open Servoy developer. It gives me a “connection refused: connection” error.
When I have the described absolute paths in the Sybase.Config file Servoy Developer will not open. When I revert back to the original Sybase.Config file Servoy Developer will open.
Clicking around a little within Sybase Central I see that when I right-click “Adaptive Servery Anywhere 9” there is an option to establish a connection. Should I first be making a connection there?
Strange, it works perfect on my machines. I’ll try it out on a few more machines here to see if it’s just my machine that will do anything I instruct him.
I’ve done a bit more testing on Windows and my previous examples appear to have some problems when used with spaces in the filenames. Here’s a configuration that has been tested on multiple machines:
NOTE: If you run iAnywhere as a service make sure to turn of the Startup launcher so that Servoy doesn’t launch a second copy of iAnywhere. Open Preferences from the edit many and delete the contents of the Startup Launcher field on the Designer tab.
NOTE2: If you create new databases don’t forget to restart the iAnywhere service after adding the new database to the sybase.config file.
if I do this in Sybase Central Filename
“C:\Program Files\Servoy\sybase_db\dbsrv9.exe”
Sybase Central says: This file does not exist.
I must remove the quotes, before I’ll get any further.
I double checked everything, and I have everything the same now.
But if I start the services, I get the error:
Error 193 %1 is not a valid Win32 Application
if I do this in Sybase Central Filename
“C:\Program Files\Servoy\sybase_db\dbsrv9.exe”
Sybase Central says: This file does not exist.
I must remove the quotes, before I’ll get any further.
I double checked everything, and I have everything the same now.
But if I start the services, I get the error:
Error 193 %1 is not a valid Win32 Application
You’re correct on the qoutes, the first one should be without quotes, the arguments with.
What happens if you try to use the command and arguments on a command prompt?