JBoss Community

Error - Table 'jbpm5.task' doesn't exist after trying to set mysql db

created by Shamal Karunarathne in jBPM - View the full discussion

Hi,

I followed the instructions in [http://docs.jboss.org/jbpm/v5.3/userguide/ch.installer.html#d0e469] to use mysql as the database. but then I get this error when starting jboss. could you help me to fix this please?

 


19:25:46,592 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/jbpm-human-task-war]] (MSC service thread 1-1) StandardWrapper.Throwable: javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute query
          at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614) [hibernate-entitymanager-3.4.0.GA.jar:]
          at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:76) [hibernate-entitymanager-3.4.0.GA.jar:]
          at org.jbpm.task.service.persistence.TaskPersistenceManager.getUnescalatedDeadlinesList(TaskPersistenceManager.java:174) [jbpm-human-task-core-5.3.0.Final.jar:]
          at org.jbpm.task.service.persistence.TaskPersistenceManager.getUnescalatedDeadlines(TaskPersistenceManager.java:146) [jbpm-human-task-core-5.3.0.Final.jar:]
          at org.jbpm.task.service.TaskServiceSession.scheduleUnescalatedDeadlines(TaskServiceSession.java:231) [jbpm-human-task-core-5.3.0.Final.jar:]
          at org.jbpm.task.service.TaskService.initialize(TaskService.java:116) [jbpm-human-task-core-5.3.0.Final.jar:]
          at org.jbpm.task.service.TaskService.initialize(TaskService.java:101) [jbpm-human-task-core-5.3.0.Final.jar:]
          at org.jbpm.task.service.TaskService.<init>(TaskService.java:79) [jbpm-human-task-core-5.3.0.Final.jar:]
          at org.jbpm.task.servlet.HumanTaskServiceServlet.init(HumanTaskServiceServlet.java:127) [classes:]
          at javax.servlet.GenericServlet.init(GenericServlet.java:242) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
          at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
          at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
          at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3631) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
          at org.apache.catalina.core.StandardContext.start(StandardContext.java:3844) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
          at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_33]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_33]
          at java.lang.Thread.run(Thread.java:680) [:1.6.0_33]
Caused by: org.hibernate.exception.SQLGrammarException: could not execute query
          at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:90) [hibernate-core-3.3.2.GA.jar:]
          at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66) [hibernate-core-3.3.2.GA.jar:]
          at org.hibernate.loader.Loader.doList(Loader.java:2235) [hibernate-core-3.3.2.GA.jar:]
          at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2129) [hibernate-core-3.3.2.GA.jar:]
          at org.hibernate.loader.Loader.list(Loader.java:2124) [hibernate-core-3.3.2.GA.jar:]
          at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:401) [hibernate-core-3.3.2.GA.jar:]
          at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:363) [hibernate-core-3.3.2.GA.jar:]
          at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196) [hibernate-core-3.3.2.GA.jar:]
          at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1149) [hibernate-core-3.3.2.GA.jar:]
          at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102) [hibernate-core-3.3.2.GA.jar:]
          at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:67) [hibernate-entitymanager-3.4.0.GA.jar:]
          ... 18 more
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'jbpm5.task' doesn't exist
          at sun.reflect.GeneratedConstructorAccessor17.newInstance(Unknown Source) [:1.6.0_33]
          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [:1.6.0_33]
          at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [:1.6.0_33]
          at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
          at com.mysql.jdbc.Util.getInstance(Util.java:386)
          at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
          at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3609)
          at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3541)
          at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2002)
          at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2163)
          at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2624)
          at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2127)
          at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2293)
          at org.jboss.jca.adapters.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:462)
          at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:208) [hibernate-core-3.3.2.GA.jar:]
          at org.hibernate.loader.Loader.getResultSet(Loader.java:1812) [hibernate-core-3.3.2.GA.jar:]
          at org.hibernate.loader.Loader.doQuery(Loader.java:697) [hibernate-core-3.3.2.GA.jar:]
          at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259) [hibernate-core-3.3.2.GA.jar:]
          at org.hibernate.loader.Loader.doList(Loader.java:2232) [hibernate-core-3.3.2.GA.jar:]
          ... 26 more


19:25:46,650 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/jbpm-human-task-war]] (MSC service thread 1-1) Servlet /jbpm-human-task-war threw load() exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'jbpm5.task' doesn't exist
          at sun.reflect.GeneratedConstructorAccessor17.newInstance(Unknown Source) [:1.6.0_33]
          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [:1.6.0_33]
          at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [:1.6.0_33]
          at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
          at com.mysql.jdbc.Util.getInstance(Util.java:386)
          at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
          at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3609)
          at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3541)
          at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2002)
          at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2163)
          at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2624)
          at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2127)
          at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2293)
          at org.jboss.jca.adapters.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:462)
          at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:208) [hibernate-core-3.3.2.GA.jar:]
          at org.hibernate.loader.Loader.getResultSet(Loader.java:1812) [hibernate-core-3.3.2.GA.jar:]
          at org.hibernate.loader.Loader.doQuery(Loader.java:697) [hibernate-core-3.3.2.GA.jar:]
          at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259) [hibernate-core-3.3.2.GA.jar:]
          at org.hibernate.loader.Loader.doList(Loader.java:2232) [hibernate-core-3.3.2.GA.jar:]
          at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2129) [hibernate-core-3.3.2.GA.jar:]
          at org.hibernate.loader.Loader.list(Loader.java:2124) [hibernate-core-3.3.2.GA.jar:]
          at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:401) [hibernate-core-3.3.2.GA.jar:]
          at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:363) [hibernate-core-3.3.2.GA.jar:]
          at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196) [hibernate-core-3.3.2.GA.jar:]
          at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1149) [hibernate-core-3.3.2.GA.jar:]
          at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102) [hibernate-core-3.3.2.GA.jar:]
          at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:67) [hibernate-entitymanager-3.4.0.GA.jar:]
          at org.jbpm.task.service.persistence.TaskPersistenceManager.getUnescalatedDeadlinesList(TaskPersistenceManager.java:174) [jbpm-human-task-core-5.3.0.Final.jar:]
          at org.jbpm.task.service.persistence.TaskPersistenceManager.getUnescalatedDeadlines(TaskPersistenceManager.java:146) [jbpm-human-task-core-5.3.0.Final.jar:]
          at org.jbpm.task.service.TaskServiceSession.scheduleUnescalatedDeadlines(TaskServiceSession.java:231) [jbpm-human-task-core-5.3.0.Final.jar:]
          at org.jbpm.task.service.TaskService.initialize(TaskService.java:116) [jbpm-human-task-core-5.3.0.Final.jar:]
          at org.jbpm.task.service.TaskService.initialize(TaskService.java:101) [jbpm-human-task-core-5.3.0.Final.jar:]
          at org.jbpm.task.service.TaskService.<init>(TaskService.java:79) [jbpm-human-task-core-5.3.0.Final.jar:]
          at org.jbpm.task.servlet.HumanTaskServiceServlet.init(HumanTaskServiceServlet.java:127) [classes:]
          at javax.servlet.GenericServlet.init(GenericServlet.java:242) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
          at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
          at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
          at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3631) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
          at org.apache.catalina.core.StandardContext.start(StandardContext.java:3844) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
          at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_33]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_33]
          at java.lang.Thread.run(Thread.java:680) [:1.6.0_33]


19:25:46,744 INFO  [org.jboss.web] (MSC service thread 1-1) registering web context: /jbpm-human-task-war

 

 

Reply to this message by going to Community

Start a new discussion in jBPM at Community