cancel
Showing results for 
Search instead for 
Did you mean: 

activiti installation problem

nadir1915
Champ in-the-making
Champ in-the-making
Hello,

i tried to install activiti (activiti-5.0.alpha4.zip) on centos with the required jdk and ant. when i ran ant demo.setup i got the following error:

Buildfile: /opt/activiti/setup/build.xml
     [echo] Activiti home = ..
     [echo] Activiti version = 5.0.alpha4

h2.install:
    [mkdir] Created dir: /opt/activiti/apps/h2
     [copy] Copying 5 files to /opt/activiti/apps/h2

internal.classpath.libs:

internal.taskdef.launch:

h2.start:
   [launch] launching cmd '/opt/activiti/apps/h2/h2.start.sh ' in dir '/opt/activiti/apps/h2'
   [launch] waiting for launch completion msg 'TCP server running on'…
   [launch]   Exception in thread "main" org.h2.jdbc.JdbcSQLException: Exception opening port "H2 TCP Server (tcp://localhost:9092)" (port may be in use), cause: "timeout" [90061-132]
   [launch]     at org.h2.message.DbException.getJdbcSQLException(DbException.java:316)
   [launch]     at org.h2.message.DbException.get(DbException.java:167)
   [launch]     at org.h2.tools.Server.start(Server.java:344)
   [launch]     at org.h2.tools.Server.runTool(Server.java:216)
   [launch]     at org.h2.tools.Server.main(Server.java:106)

i ran netstart -npl | grep '9092' and it showed no processes listening to port 9092. my server is running jdk 6 and ant 1.8.1 please help.
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
What happens when you execute the h2.start.sh file directly from the commandline?

I havent got a clue what could causing the error, otherwise than the port is already taken, or you havent got the rights to create processes on that port.

nadir1915
Champ in-the-making
Champ in-the-making
when i execute the h2.start.sh file from the command line i get the following error:

h2.start:
[launch] launching cmd '/opt/activiti/apps/h2/h2.start.sh ' in dir '/opt/activiti/apps/h2'
[launch] waiting for launch completion msg 'TCP server running on'…
[launch] Exception in thread "main" org.h2.jdbc.JdbcSQLException: Exception opening port "H2 TCP Server (tcp://localhost:9092)" (port may be in use), cause: "timeout" [90061-132]
[launch] at org.h2.message.DbException.getJdbcSQLException(DbException.java:316)
[launch] at org.h2.message.DbException.get(DbException.java:167)
[launch] at org.h2.tools.Server.start(Server.java:344)
[launch] at org.h2.tools.Server.runTool(Server.java:216)
[launch] at org.h2.tools.Server.main(Server.java:106)

i was logged in as root. no other process was listening on the port (9092). our system is a centos based vps. i was not able to check the firewall rules using setup command. i think the hosting company must have setup a firewall.

jbarrez
Star Contributor
Star Contributor
Perhaps there is indeed a restriction on the VPS.

You could try to modify the h2.start.sh script to change the port: add the '-tcpPort <port>' option.