AnsweredAssumed Answered

Problem in Activiti Examples

Question asked by marwahussein on Feb 13, 2015
Latest reply on Feb 16, 2015 by martin.grofcik
I am a beginner in Activiti. I tried to Run the simple code that exists in the user guide (Ten Minutes Tutorial) and I did all the steps correctly but the code threw a lot of exceptions and didn't run
example of one of those exceptions:
"
Feb 13, 2015 10:00:57 PM org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl initConfigurators
INFO: Found 1 auto-discoverable Process Engine Configurators
Feb 13, 2015 10:00:58 PM org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl initConfigurators
INFO: Found 1 Process Engine Configurators in total:
Feb 13, 2015 10:00:58 PM org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl initConfigurators
INFO: class org.activiti.management.jmx.JMXConfigurator (priority:10000)
Feb 13, 2015 10:00:58 PM org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl configuratorsBeforeInit
INFO: Executing beforeInit() of class org.activiti.management.jmx.JMXConfigurator (priority:10000)
Feb 13, 2015 10:01:02 PM org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl initDatabaseType
SEVERE: Exception while initializing Database connection
org.h2.jdbc.JdbcSQLException: Connection is broken [90067-73]
   at org.h2.message.Message.getSQLException(Message.java:103)
   at org.h2.message.Message.getSQLException(Message.java:114)
   at org.h2.message.Message.getSQLException(Message.java:77)
   at org.h2.message.Message.getSQLException(Message.java:149)
   at org.h2.engine.SessionRemote.checkClosed(SessionRemote.java:353)
   at org.h2.engine.SessionRemote.connect(SessionRemote.java:270)
   at org.h2.engine.SessionRemote.<init>(SessionRemote.java:83)
   at org.h2.engine.SessionRemote.createSession(SessionRemote.java:212)
   at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:97)
   at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:87)
   at org.h2.Driver.connect(Driver.java:57)
   at java.sql.DriverManager.getConnection(Unknown Source)
   at java.sql.DriverManager.getConnection(Unknown Source)
   at org.apache.ibatis.datasource.unpooled.UnpooledDataSource.getConnection(UnpooledDataSource.java:64)
   at org.apache.ibatis.datasource.pooled.PooledDataSource.popConnection(PooledDataSource.java:349)
   at org.apache.ibatis.datasource.pooled.PooledDataSource.getConnection(PooledDataSource.java:55)
   at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.initDatabaseType(ProcessEngineConfigurationImpl.java:653)
   at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.initDataSource(ProcessEngineConfigurationImpl.java:607)
   at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.init(ProcessEngineConfigurationImpl.java:440)
   at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.buildProcessEngine(ProcessEngineConfigurationImpl.java:412)
   at zActivitiTutorial.TenMinuteTutorial.main(TenMinuteTutorial.java:24)

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/ibatis/type/TypeReference
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(Unknown Source)
   at java.security.SecureClassLoader.defineClass(Unknown Source)
   at java.net.URLClassLoader.defineClass(Unknown Source)
   at java.net.URLClassLoader.access$100(Unknown Source)
   at java.net.URLClassLoader$1.run(Unknown Source)
   at java.net.URLClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at org.apache.ibatis.io.ClassLoaderWrapper.classForName(ClassLoaderWrapper.java:191)
   at org.apache.ibatis.io.ClassLoaderWrapper.classForName(ClassLoaderWrapper.java:91)
   at org.apache.ibatis.io.Resources.classForName(Resources.java:229)
   at org.apache.ibatis.builder.xml.XMLConfigBuilder.typeAliasesElement(XMLConfigBuilder.java:81)
   at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:61)
   at org.apache.ibatis.builder.xml.XMLConfigBuilder.parse(XMLConfigBuilder.java:55)
   at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.parseMybatisConfiguration(ProcessEngineConfigurationImpl.java:744)
   at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.initMybatisConfiguration(ProcessEngineConfigurationImpl.java:727)
   at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.initSqlSessionFactory(ProcessEngineConfigurationImpl.java:708)
   at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.init(ProcessEngineConfigurationImpl.java:442)
   at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.buildProcessEngine(ProcessEngineConfigurationImpl.java:412)
   at zActivitiTutorial.TenMinuteTutorial.main(TenMinuteTutorial.java:24)
Caused by: java.lang.ClassNotFoundException: org.apache.ibatis.type.TypeReference
   at java.net.URLClassLoader$1.run(Unknown Source)
   at java.net.URLClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   … 24 more




"
I tried also to import BPMN-examples of Activiti Book in Eclipse to run the code but there is a problem in the POM.xml file

"  artifactDescriptorExcepton: Failed to read artifact descriptor for org.restlet (click for 137 more) "

I am using Activiti 5.17.0 and I noticed that this example run on Activiti 5.9 so I downloaded this version and include all jars but the maven dependencies still can't read any of those jars and it kept telling me that all maven jars are missing.

also when I am trying to run activiti 5.9 setup (ant demo.start) it said that
" BUILD FAILED
couldn't find executable for script apache tomcat-6.0.32\bin\startup

I tried all solutions I found but I can't solve this problem..can anyone tell me where is the problem ?
any help or advice will be appreciated
thanks in advance

Outcomes