Multiple servoy-server istance

Hi,

I need to start two servoy-server istance on the same machine.
In first I had try to install the service in another port but the installation don’t ask me in wich port I want to install the service.
Than I have read the manual of 4.0 ,I find a little explanation and I have installed two servoy-istance and changed the file server.xml correctly(in fact to access in servoy-admin i have to specified “8181” port)
Now I have two installation of servoy,one into “8080” port (the windows service else) and one into “8181” port.
I have done the follows steps :

  • I have launched the windows service (on 8080 port)
  • I have opened the CMD console and I have launch the wrapper with argument “wrapper.conf” (appropriately modified by the manual)

the result is that the Java Virtual Machine restart itself for 4-5 times and than stopped.

how I have to preceed?

Thanks

Marco

servers .xml files [attachment=0]servers.zip[/attachment]
wrappers .conf files [attachment=1]wrappers.zip[/attachment]

servers.zip (2.36 KB)

wrappers.zip (3.46 KB)

Check the log files for errors, btw: you are not using the same repository database in both instances, do you?

Yes,I’m using the same repository database! Thanks for the suggestion! :)
Just one more question:

I have tryed to launch two repository by SybaseServices but I fails because when I try to Run the second Services an error occours in sybase log:

“A database server with that name has already started”

Then how could I change the name of servoy-repository to start two service?
And if I do that: Servoy recognizes the repository if I change its name?

Thanks

Marco

Marco R.:
Yes,I’m using the same repository database! Thanks for the suggestion! :)
Just one more question:

I have tryed to launch two repository by SybaseServices but I fails because when I try to Run the second Services an error occours in sybase log:

“A database server with that name has already started”

Then how could I change the name of servoy-repository to start two service?
And if I do that: Servoy recognizes the repository if I change its name?

Thanks

Marco

This is caused by using the same Sybase server name (which must be unique). If no name is specified (as default in Servoy install) it will take the name of first database (this name is not important in Servoy). So, you would have to modify server.config to add parameter -n anothername , also change the port. Then in servoy, make sure the server definition (url) points to the correct sybase instance.