wishmaster7
2013-01-04 15:22:58 UTC
wishmaster7 [https://community.jboss.org/people/wishmaster7] created the discussion
"PostgreSQL - empty database - install.demo.db does not exist"
To view the discussion, visit: https://community.jboss.org/message/787619#787619
--------------------------------------------------------------
Hello everybody,
I have downloaded the last version of jBPM (5.4.0), unzipped it, launched "ant install.demo", installed a local PostgreSQL database and follow the http://docs.jboss.org/jbpm/v5.4/userguide/ch.installer.html#d0e609 documentation to create the database with the matching user and configured jBPM to connect to this database. At the end of "3.7.3 Quickstart", when I want to reinstall the demo, it says BUILD FAILED - target "install.demo.db" does not exist in the project "jBPM.install".
Could someone please tell me what I have to do to create the required tables and sequences? Or, if I'm totally wrong, where is the problem?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/787619#787619]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
"PostgreSQL - empty database - install.demo.db does not exist"
To view the discussion, visit: https://community.jboss.org/message/787619#787619
--------------------------------------------------------------
Hello everybody,
I have downloaded the last version of jBPM (5.4.0), unzipped it, launched "ant install.demo", installed a local PostgreSQL database and follow the http://docs.jboss.org/jbpm/v5.4/userguide/ch.installer.html#d0e609 documentation to create the database with the matching user and configured jBPM to connect to this database. At the end of "3.7.3 Quickstart", when I want to reinstall the demo, it says BUILD FAILED - target "install.demo.db" does not exist in the project "jBPM.install".
ERROR tool.hbm2ddl.SchemaUpdate.execute - could not get database metadata
select relname from pg_class where relkind='S' [42102-167]
[ ... ]
select nextval ('SESSIONINFO_ID_SEQ') [90036-167]
   at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)
   at org.h2.message.DbException.get(DbException.java:169)
   at org.h2.message.DbException.get(DbException.java:146)
   at org.h2.schema.Schema.getSequence(Schema.java:474)
   at org.h2.expression.Function.getSequence(Function.java:1281)
   at org.h2.expression.Function.getValueWithArgs(Function.java:1129)
   at org.h2.expression.Function.getValue(Function.java:447)
   at org.h2.command.dml.Select.queryFlat(Select.java:519)
   at org.h2.command.dml.Select.queryWithoutCache(Select.java:618)
   at org.h2.command.dml.Query.query(Query.java:307)
   at org.h2.command.dml.Query.query(Query.java:277)
   at org.h2.command.dml.Query.query(Query.java:36)
   at org.h2.command.CommandContainer.query(CommandContainer.java:86)
   at org.h2.command.Command.executeQuery(Command.java:191)
   at org.h2.server.TcpServerThread.process(TcpServerThread.java:306)
   at org.h2.server.TcpServerThread.run(TcpServerThread.java:149)
   at java.lang.Thread.run(Unknown Source)
   at org.h2.engine.SessionRemote.done(SessionRemote.java:538)
   at org.h2.command.CommandRemote.executeQuery(CommandRemote.java:151)
   at org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:96)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at bitronix.tm.resource.jdbc.BaseProxyHandlerClass.invoke(BaseProxyHandlerClass.java:63)
   at $Proxy35.executeQuery(Unknown Source)
   at org.hibernate.id.SequenceGenerator.generate(SequenceGenerator.java:98)
   ... 47 more
I think the problem comes from the missing "install.demo.db" task in the ant file. I've searched if a script exists to create the tables in my database, but found nothing.select relname from pg_class where relkind='S' [42102-167]
[ ... ]
select nextval ('SESSIONINFO_ID_SEQ') [90036-167]
   at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)
   at org.h2.message.DbException.get(DbException.java:169)
   at org.h2.message.DbException.get(DbException.java:146)
   at org.h2.schema.Schema.getSequence(Schema.java:474)
   at org.h2.expression.Function.getSequence(Function.java:1281)
   at org.h2.expression.Function.getValueWithArgs(Function.java:1129)
   at org.h2.expression.Function.getValue(Function.java:447)
   at org.h2.command.dml.Select.queryFlat(Select.java:519)
   at org.h2.command.dml.Select.queryWithoutCache(Select.java:618)
   at org.h2.command.dml.Query.query(Query.java:307)
   at org.h2.command.dml.Query.query(Query.java:277)
   at org.h2.command.dml.Query.query(Query.java:36)
   at org.h2.command.CommandContainer.query(CommandContainer.java:86)
   at org.h2.command.Command.executeQuery(Command.java:191)
   at org.h2.server.TcpServerThread.process(TcpServerThread.java:306)
   at org.h2.server.TcpServerThread.run(TcpServerThread.java:149)
   at java.lang.Thread.run(Unknown Source)
   at org.h2.engine.SessionRemote.done(SessionRemote.java:538)
   at org.h2.command.CommandRemote.executeQuery(CommandRemote.java:151)
   at org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:96)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at bitronix.tm.resource.jdbc.BaseProxyHandlerClass.invoke(BaseProxyHandlerClass.java:63)
   at $Proxy35.executeQuery(Unknown Source)
   at org.hibernate.id.SequenceGenerator.generate(SequenceGenerator.java:98)
   ... 47 more
Could someone please tell me what I have to do to create the required tables and sequences? Or, if I'm totally wrong, where is the problem?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/787619#787619]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]