Please help. I also get exactly the same error. The ant command is "ant demo.start"
With little bit of research i determined that the error comes while executing the following ant command
ant internal.db.create
I am running Windows 7, Java version build 1.7.0_02-b13, ant version is 1.7.0RC1
Here's few lines of stack trace with relevant errors …
[java] Mar 10, 2012 6:23:52 PM org.activiti.engine.impl.cfg.standalone.StandaloneMybatis
TransactionContext rollback
[java] INFO: Exception during transaction:
[java] ### Error opening session. Cause: org.h2.jdbc.JdbcSQLException: Connection is br
oken: "session closed" [90067-132]
[java] ### Cause: org.h2.jdbc.JdbcSQLException: Connection is broken: "session closed" [
90067-132]
[java] Mar 10, 2012 6:23:52 PM org.activiti.engine.impl.interceptor.CommandContext excep
tion
[java] SEVERE: masked exception in command context. for root cause, see below as it will
be rethrown later.
[java] org.apache.ibatis.exceptions.PersistenceException:
[java] ### Error opening session. Cause: org.h2.jdbc.JdbcSQLException: Connection is br
oken: "session closed" [90067-132]
[java] ### Cause: org.h2.jdbc.JdbcSQLException: Connection is broken: "session closed" [
90067-132]
[java] at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFacto
ry.java:8)