AnsweredAssumed Answered

[Solved] Error in Installation 5.6 on Linux

Question asked by dranakan on Jul 12, 2011
Latest reply on Jul 13, 2011 by dranakan
Hello,

I get problem to install Activiti… With 5.6 on Rhel 5.2. (java 1.6.0_26, ant 1.6.5)

I follow this : http://www.activiti.org/userguide/index.html#demo.setup.one.minute.version
 Unzip the Activiti distribution zip file.

    Open up a terminal window and navigate to the setup folder in the unzipped folder.

    Type ant demo.start and hit enter.

    When the script finishes, it starts up all the Activiti webapps in your browser. Login with kermit/kermit.


[root@ged1 opt]# java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)



[root@ged1 activiti-5.6]# cd /opt/activiti-5.6/setup/
[root@ged1 setup]# ant demo.start
Buildfile: build.xml

demo.install:
     [echo] installing demo

internal.define.jdbc.driver.libs:

build.webapps:
    [mkdir] Created dir: /opt/activiti-5.6/setup/build/webapps
     [copy] Copying 1414 files to /opt/activiti-5.6/setup/build/webapps
     [copy] Copied 443 empty directories to 5 empty directories under /opt/activiti-5.6/setup/build/webapps
     [copy] Copying 50 files to /opt/activiti-5.6/setup/build/webapps/activiti-explorer.war/WEB-INF/lib
     [copy] Copying 50 files to /opt/activiti-5.6/setup/build/webapps/activiti-probe.war/WEB-INF/lib
     [copy] Copying 50 files to /opt/activiti-5.6/setup/build/webapps/activiti-cycle.war/WEB-INF/lib
     [copy] Copying 17 files to /opt/activiti-5.6/setup/build/webapps/activiti-kickstart.war/WEB-INF/lib
     [copy] Copying 25 files to /opt/activiti-5.6/setup/build/webapps/activiti-administrator.war/WEB-INF/lib
     [copy] Copying 123 files to /opt/activiti-5.6/setup/build/webapps/activiti-rest.war/WEB-INF/lib

internal.db.install.h2:
     [echo] Installing H2 adtabase in ../apps/h2
    [mkdir] Created dir: /opt/activiti-5.6/apps/h2
     [copy] Copying 7 files to /opt/activiti-5.6/apps/h2

internal.db.install.h2.unnecessary:

internal.db.install.unsupported:

h2.install:

cfg.create:
    [mkdir] Created dir: /opt/activiti-5.6/setup/build/activiti-cfg
     [copy] Copying 1 file to /opt/activiti-5.6/setup/build/activiti-cfg
      [zip] Building zip: /opt/activiti-5.6/setup/build/activiti-cfg.jar
     [echo] copying configuration to ../workspace/activiti-engine-examples/src/main/config
    [mkdir] Created dir: /opt/activiti-5.6/workspace/activiti-engine-examples/src/main/config
    [unzip] Expanding: /opt/activiti-5.6/setup/build/activiti-cfg.jar into /opt/activiti-5.6/workspace/activiti-engine-examples/src/main/config

internal.classpath.libs:

internal.taskdef.launch:

h2.start:
   [launch] launching cmd '/opt/activiti-5.6/apps/h2/h2.start.sh ' in dir '/opt/activiti-5.6/apps/h2'
   [launch] waiting for launch completion msg 'TCP server running on'…
   [launch] Exception in thread "Thread-4" java.lang.NoClassDefFoundError: java.lang.ProcessBuilder
   [launch]    at org.activiti.engine.impl.ant.LaunchThread.run(LaunchThread.java:71)

cfg.create:
     [copy] Copying 1 file to /opt/activiti-5.6/setup/build/activiti-cfg
     [echo] copying configuration to ../workspace/activiti-engine-examples/src/main/config
    [unzip] Expanding: /opt/activiti-5.6/setup/build/activiti-cfg.jar into /opt/activiti-5.6/workspace/activiti-engine-examples/src/main/config

internal.classpath.libs:

db.create:
     [echo] creating db
12-Jul-11 2:31:07 PM org.activiti.engine.ProcessEngines initProcessEnginFromResource
INFO: initializing process engine for resource jar:file:/opt/activiti-5.6/setup/build/activiti-cfg.jar!/activiti.cfg.xml
12-Jul-11 2:31:07 PM org.activiti.engine.ProcessEngines initProcessEnginFromResource
SEVERE: Exception while initializing process engine :org.springframework.beans.factory.support.DefaultListableBeanFactory
java.lang.NoClassDefFoundError: org.springframework.beans.factory.support.DefaultListableBeanFactory
   at java.lang.Class.initializeClass(libgcj.so.7rh)
   at org.activiti.engine.impl.cfg.BeansConfigurationHelper.parseProcessEngineConfiguration(BeansConfigurationHelper.java:32)
   at org.activiti.engine.impl.cfg.BeansConfigurationHelper.parseProcessEngineConfigurationFromInputStream(BeansConfigurationHelper.java:43)
   at org.activiti.engine.ProcessEngineConfiguration.createProcessEngineConfigurationFromInputStream(ProcessEngineConfiguration.java:163)
   at org.activiti.engine.ProcessEngineConfiguration.createProcessEngineConfigurationFromInputStream(ProcessEngineConfiguration.java:159)
   at org.activiti.engine.ProcessEngines.buildProcessEngine(ProcessEngines.java:176)
   at org.activiti.engine.ProcessEngines.initProcessEnginFromResource(ProcessEngines.java:150)
   at org.activiti.engine.ProcessEngines.init(ProcessEngines.java:88)
   at org.activiti.engine.ProcessEngines.getProcessEngine(ProcessEngines.java:207)
   at org.activiti.engine.ProcessEngines.getDefaultProcessEngine(ProcessEngines.java:200)
   at org.activiti.engine.impl.db.DbSchemaUpdate.main(DbSchemaUpdate.java:34)
   at java.lang.reflect.Method.invoke(libgcj.so.7rh)
   at org.apache.tools.ant.taskdefs.ExecuteJava.run(ant-1.6.5.jar.so)
   at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ant-1.6.5.jar.so)
   at org.apache.tools.ant.taskdefs.Java.run(ant-1.6.5.jar.so)
   at org.apache.tools.ant.taskdefs.Java.executeJava(ant-1.6.5.jar.so)
   at org.apache.tools.ant.taskdefs.Java.execute(ant-1.6.5.jar.so)
   at org.apache.tools.ant.UnknownElement.execute(ant-1.6.5.jar.so)
   at org.apache.tools.ant.Task.perform(ant-1.6.5.jar.so)
   at org.apache.tools.ant.Target.execute(ant-1.6.5.jar.so)
   at org.apache.tools.ant.Target.performTasks(ant-1.6.5.jar.so)
   at org.apache.tools.ant.Project.executeSortedTargets(ant-1.6.5.jar.so)
   at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(ant-1.6.5.jar.so)
   at org.apache.tools.ant.Project.executeTargets(ant-1.6.5.jar.so)
   at org.apache.tools.ant.taskdefs.Ant.execute(ant-1.6.5.jar.so)
   at org.apache.tools.ant.taskdefs.CallTarget.execute(ant-1.6.5.jar.so)
   at org.apache.tools.ant.UnknownElement.execute(ant-1.6.5.jar.so)
   at org.apache.tools.ant.Task.perform(ant-1.6.5.jar.so)
   at org.apache.tools.ant.Target.execute(ant-1.6.5.jar.so)
   at org.apache.tools.ant.Target.performTasks(ant-1.6.5.jar.so)
   at org.apache.tools.ant.Project.executeSortedTargets(ant-1.6.5.jar.so)
   at org.apache.tools.ant.Project.executeTarget(ant-1.6.5.jar.so)
   at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(ant-1.6.5.jar.so)
   at org.apache.tools.ant.Project.executeTargets(ant-1.6.5.jar.so)
   at org.apache.tools.ant.Main.runBuild(ant-1.6.5.jar.so)
   at org.apache.tools.ant.Main.startAnt(ant-1.6.5.jar.so)
   at org.apache.tools.ant.launch.Launcher.run(ant-launcher-1.6.5.jar.so)
   at org.apache.tools.ant.launch.Launcher.main(ant-launcher-1.6.5.jar.so)
Caused by: java.lang.ClassNotFoundException: java.util.concurrent.ConcurrentHashMap
   at org.apache.tools.ant.AntClassLoader.findClassInComponents(ant-1.6.5.jar.so)
   at org.apache.tools.ant.AntClassLoader.findClass(ant-1.6.5.jar.so)
   at org.apache.tools.ant.AntClassLoader.loadClass(ant-1.6.5.jar.so)
   at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
   at java.lang.Class.forName(libgcj.so.7rh)
   at java.lang.Class.initializeClass(libgcj.so.7rh)
   …37 more
     [java] java.lang.NullPointerException
     [java]    at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.taskdefs.Java.run(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.taskdefs.Java.executeJava(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.taskdefs.Java.execute(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.UnknownElement.execute(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.Task.perform(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.Target.execute(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.Target.performTasks(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.Project.executeSortedTargets(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.Project.executeTargets(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.taskdefs.Ant.execute(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.taskdefs.CallTarget.execute(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.UnknownElement.execute(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.Task.perform(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.Target.execute(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.Target.performTasks(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.Project.executeSortedTargets(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.Project.executeTarget(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.Project.executeTargets(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.Main.runBuild(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.Main.startAnt(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.launch.Launcher.run(ant-launcher-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.launch.Launcher.main(ant-launcher-1.6.5.jar.so)
     [java] Caused by: java.lang.NullPointerException
     [java]    at org.activiti.engine.impl.db.DbSchemaUpdate.main(DbSchemaUpdate.java:35)
     [java]    at java.lang.reflect.Method.invoke(libgcj.so.7rh)
     [java]    at org.apache.tools.ant.taskdefs.ExecuteJava.run(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ant-1.6.5.jar.so)
     [java]    …24 more
     [java] — Nested Exception —
     [java] java.lang.NullPointerException
     [java]    at org.activiti.engine.impl.db.DbSchemaUpdate.main(DbSchemaUpdate.java:35)
     [java]    at java.lang.reflect.Method.invoke(libgcj.so.7rh)
     [java]    at org.apache.tools.ant.taskdefs.ExecuteJava.run(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.taskdefs.Java.run(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.taskdefs.Java.executeJava(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.taskdefs.Java.execute(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.UnknownElement.execute(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.Task.perform(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.Target.execute(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.Target.performTasks(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.Project.executeSortedTargets(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.Project.executeTargets(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.taskdefs.Ant.execute(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.taskdefs.CallTarget.execute(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.UnknownElement.execute(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.Task.perform(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.Target.execute(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.Target.performTasks(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.Project.executeSortedTargets(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.Project.executeTarget(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.Project.executeTargets(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.Main.runBuild(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.Main.startAnt(ant-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.launch.Launcher.run(ant-launcher-1.6.5.jar.so)
     [java]    at org.apache.tools.ant.launch.Launcher.main(ant-launcher-1.6.5.jar.so)

cfg.create:
     [copy] Copying 1 file to /opt/activiti-5.6/setup/build/activiti-cfg
      [zip] Building zip: /opt/activiti-5.6/setup/build/activiti-cfg.jar
     [echo] copying configuration to ../workspace/activiti-engine-examples/src/main/config
    [unzip] Expanding: /opt/activiti-5.6/setup/build/activiti-cfg.jar into /opt/activiti-5.6/workspace/activiti-engine-examples/src/main/config

internal.classpath.libs:

db.demo.data:
     [echo] populating demo data
    [mkdir] Created dir: /opt/activiti-5.6/setup/build/demo
     [copy] Copying 1 file to /opt/activiti-5.6/setup/build/demo

BUILD FAILED
/opt/activiti-5.6/setup/build.xml:157: The following error occurred while executing this line:
/opt/activiti-5.6/setup/build.xml:227: org.h2.jdbc.JdbcSQLException: Connection is broken: "session closed" [90067-132]

Total time: 9 seconds
[root@ged1 setup]#


What did I do wrong ?
Thank you.

Outcomes