Can't start servoy server

I’m having lots of trouble getting Servoy running (server, in this case). The pc on which I’m trying to run it has no screen attached and no X running, so I first had to setup the thing on my laptop (run the servoy_installer.jar on my laptop). On my laptop I configured it with all passwords needed for admin etc. Then I transferred it to our server (running linux, (sun) java 1.5). I got it to run by executing ./servoy_server.sh but only once. Thereafter it completely cannot start. Below is my server.log output. If someone could please help me, much appreciated

1 [main] INFO com.servoy.j2db.util.Debug  - Loading servoy.properties from /opt/servoy/servoy.properties
1173 [main] INFO com.servoy.j2db.util.Debug  - Loading - Done
Exception in thread "main" org.apache.commons.dbcp.DbcpException: java.sql.SQLException: JZ006: Caught IOException: java.net.ConnectException: Connection refused
        at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:85)
        at com.servoy.j2db.persistence.datasource.n.createConnection(Unknown Source)
        at com.servoy.j2db.persistence.datasource.r.makeObject(Unknown Source)
        at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:816)
        at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:110)
        at com.servoy.j2db.persistence.datasource.i.getConnection(Unknown Source)
        at com.servoy.j2db.persistence.Server.getConnection(Unknown Source)
        at com.servoy.j2db.persistence.Server.checkIfTableExistsInDatabase(Unknown Source)
        at com.servoy.j2db.persistence.Repository.for(Unknown Source)
        at com.servoy.j2db.persistence.Repository.<init>(Unknown Source)
        at com.servoy.j2db.persistence.Repository.<init>(Unknown Source)
        at com.servoy.j2db.persistence.Server.getRepository(Unknown Source)
        at com.servoy.j2db.server.ApplicationServer.main(Unknown Source)
Caused by: java.sql.SQLException: JZ006: Caught IOException: java.net.ConnectException: Connection refused
        at com.sybase.jdbc3.jdbc.ErrorMessage.raiseError(Unknown Source)
        at com.sybase.jdbc3.jdbc.ErrorMessage.raiseErrorCheckDead(Unknown Source)
        at com.sybase.jdbc3.tds.Tds.a(Unknown Source)
        at com.sybase.jdbc3.tds.Tds.a(Unknown Source)
        at com.sybase.jdbc3.tds.Tds.login(Unknown Source)
        at com.sybase.jdbc3.jdbc.SybConnection.a(Unknown Source)
        at com.sybase.jdbc3.jdbc.SybConnection.a(Unknown Source)
        at com.sybase.jdbc3.jdbc.SybConnection.<init>(Unknown Source)
        at com.sybase.jdbc3.jdbc.SybConnection.<init>(Unknown Source)
        at com.sybase.jdbc3.jdbc.SybDriver.connect(Unknown Source)
        at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:83)
        ... 12 more

Hi froztbyte,

Seems you don’t have Sybase running. I don’t believe that servoy_server.sh does that automatically for you (unlike Developer).
Just search the forum, this has been covered a couple of times already.

Hope this helps.

I think the error simply says that Servoy cannot connect to the database server (firewall, wrong address etc.).

patrick:
I think the error simply says that Servoy cannot connect to the database server (firewall, wrong address etc.).

…or it’s not running, which is the most common cause as you well know.

… is the printer plugged in? :wink:

It’s definitely the printer!! It must be! :-D

Thanks for the help guys. I’ll post again if something doesn’t work still

froztbyte:
It’s definitely the printer!! It must be! :-D

Thanks for the help guys. I’ll post again if something doesn’t work still

how did you resolve the problem?

i have the same problem and i don’t understand what you mean whith the printer issue

i think, i have a problem whith the JDBC drivers

Hi ahurtado,

The printer reference is a joke, forget it ;) .
What error do you get ?

the error was resolved in servoy is necessary connection servoy_repositories in servoy.properties

thank’s