10 Replies Latest reply on Mar 7, 2013 12:28 PM by Ouadi BELMOKHTAR

    Unable to build EntityManagerFactory [PersistenceUnit: org.jbpm.persistence.jpa]

    Ouadi BELMOKHTAR Newbie

      Can anyone help me please what's the problem her :

       

       

      17:11:30,823 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [text, notification_names_id, notification_subjects_id, task_descriptions_id, id, task_names_id, notification_descriptions_id, reassignment_documentation_id, deadline_documentation_id, language, shorttext, notification_documentation_id, task_subjects_id]

      17:11:30,824 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: [fk2349686b98b62b, fk2349686b5eebb6d9, fk2349686b3330f6d9, fk2349686bf952cee4, fk2349686bd488ceeb, fk2349686bb2fa6b18, fk2349686b8046a239, fk2349686b69b21ee8, fk2349686b2162dfb4]

      17:11:30,827 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [fk2349686b98b62b, fk2349686b3330f6d9, fk2349686b5eebb6d9, primary, fk2349686bf952cee4, fk2349686bd488ceeb, fk2349686bb2fa6b18, fk2349686b8046a239, fk2349686b69b21ee8, fk2349686b2162dfb4]

      17:11:30,848 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.NodeInstanceLog

      17:11:30,855 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [id, nodename, log_date, nodeinstanceid, type, processinstanceid, processid, nodeid]

      17:11:30,856 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: []

      17:11:30,856 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [primary]

      17:11:30,885 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.Notification

      17:11:30,886 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [id, escalation_notifications_id, priority, dtype]

      17:11:30,887 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: [fk2d45dd0b3e0890b]

      17:11:30,888 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [primary, fk2d45dd0b3e0890b]

      17:11:30,917 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.Notification_BAs

      17:11:30,919 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [task_id, entity_id]

      17:11:30,920 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: [fk2dd68ee09c76eaba, fk2dd68ee02c122ed2]

      17:11:30,922 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [fk2dd68ee09c76eaba, fk2dd68ee02c122ed2]

      17:11:30,937 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.Notification_Recipients

      17:11:30,938 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [task_id, entity_id]

      17:11:30,939 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: [fk98fd214e9c76eaba, fk98fd214e2c122ed2]

      17:11:30,939 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [fk98fd214e9c76eaba, fk98fd214e2c122ed2]

      17:11:30,953 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.OrganizationalEntity

      17:11:30,955 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [id, dtype]

      17:11:30,957 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: []

      17:11:30,957 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [primary]

      17:11:30,979 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.PeopleAssignments_BAs

      17:11:30,979 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [task_id, entity_id]

      17:11:30,980 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: [fk9d8cf4ec36b2f154, fk9d8cf4ec2c122ed2]

      17:11:30,981 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [fk9d8cf4ec36b2f154, fk9d8cf4ec2c122ed2]

      17:11:30,989 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.PeopleAssignments_ExclOwners

      17:11:30,993 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [task_id, entity_id]

      17:11:30,994 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: [fkc77b97e436b2f154, fkc77b97e42c122ed2]

      17:11:30,995 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [fkc77b97e436b2f154, fkc77b97e42c122ed2]

      17:11:31,010 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.PeopleAssignments_PotOwners

      17:11:31,011 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [task_id, entity_id]

      17:11:31,014 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: [fk1ee418d36b2f154, fk1ee418d2c122ed2]

      17:11:31,015 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [fk1ee418d36b2f154, fk1ee418d2c122ed2]

      17:11:31,044 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.PeopleAssignments_Recipients

      17:11:31,045 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [task_id, entity_id]

      17:11:31,046 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: [fkc6f615c22c122ed2, fkc6f615c236b2f154]

      17:11:31,047 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [fkc6f615c22c122ed2, fkc6f615c236b2f154]

      17:11:31,060 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.PeopleAssignments_Stakeholders

      17:11:31,061 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [task_id, entity_id]

      17:11:31,061 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: [fk482f79d536b2f154, fk482f79d52c122ed2]

      17:11:31,062 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [fk482f79d536b2f154, fk482f79d52c122ed2]

      17:11:31,086 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.ProcessInstanceEventInfo

      17:11:31,087 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [id, optlock, eventtype, processinstanceid]

      17:11:31,090 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: []

      17:11:31,091 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [primary]

      17:11:31,105 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.ProcessInstanceInfo

      17:11:31,106 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [startdate, lastreaddate, state, processinstancebytearray, optlock, instanceid, lastmodificationdate, processid]

      17:11:31,107 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: []

      17:11:31,108 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [primary]

      17:11:31,115 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.ProcessInstanceLog

      17:11:31,115 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [id, end_date, status, parentprocessinstanceid, start_date, outcome, processinstanceid, processid]

      17:11:31,116 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: []

      17:11:31,117 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [primary]

      17:11:31,123 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.Reassignment

      17:11:31,124 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [escalation_reassignments_id, id]

      17:11:31,125 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: [fk724d0560a5c17ee0]

      17:11:31,130 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [fk724d0560a5c17ee0, primary]

      17:11:31,143 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.Reassignment_potentialOwners

      17:11:31,147 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [task_id, entity_id]

      17:11:31,147 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: [fk90b59cffe17e130f, fk90b59cff2c122ed2]

      17:11:31,148 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [fk90b59cffe17e130f, fk90b59cff2c122ed2]

      17:11:31,162 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.SessionInfo

      17:11:31,162 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [rulesbytearray, id, startdate, optlock, lastmodificationdate]

      17:11:31,163 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: []

      17:11:31,163 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [primary]

      17:11:31,169 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.SubTasksStrategy

      17:11:31,170 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [id, name, task_id, dtype]

      17:11:31,170 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: [fkde5df2e136b2f154]

      17:11:31,171 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [primary, fkde5df2e136b2f154]

      17:11:31,186 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.Task

      17:11:31,187 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [outputcontentid, parentid, optlock, expirationtime, previousstatus, id, faultname, createdby_id, archived, skipable, priority, faulttype, taskinitiator_id, documentcontentid, faultaccesstype, outputaccesstype, allowedtodelegate, status, completedon, documentaccesstype, outputtype, createdon, activationtime, faultcontentid, processinstanceid, processsessionid, actualowner_id, workitemid, documenttype, processid]

      17:11:31,189 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: [fk27a9a5f213f8b5, fk27a9a56ce1ef3a, fk27a9a59e619a0]

      17:11:31,195 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [fk27a9a5f213f8b5, primary, fk27a9a56ce1ef3a, fk27a9a59e619a0]

      17:11:31,207 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.VariableInstanceLog

      17:11:31,214 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [id, variableinstanceid, variableid, value, log_date, processinstanceid, processid]

      17:11:31,214 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: []

      17:11:31,215 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [primary]

      17:11:31,220 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.WorkItemInfo

      17:11:31,221 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [workitembytearray, name, workitemid, state, optlock, creationdate, processinstanceid]

      17:11:31,231 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: []

      17:11:31,235 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [primary]

      17:11:31,248 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.task_comment

      17:11:31,249 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [id, taskdata_comments_id, text, addedat, addedby_id]

      17:11:31,249 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: [fk61f475a52ff04688, fk61f475a5b35e68f5]

      17:11:31,250 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [fk61f475a52ff04688, primary, fk61f475a5b35e68f5]

      17:11:31,269 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.ATTACHMENT_ID_SEQ

      17:11:31,270 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [next_val]

      17:11:31,271 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: []

      17:11:31,271 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: []

      17:11:31,276 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.BOOLEANEXPR_ID_SEQ

      17:11:31,279 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [next_val]

      17:11:31,279 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: []

      17:11:31,279 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: []

      17:11:31,290 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.COMMENT_ID_SEQ

      17:11:31,291 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [next_val]

      17:11:31,291 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: []

      17:11:31,292 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: []

      17:11:31,300 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.DEADLINE_ID_SEQ

      17:11:31,301 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [next_val]

      17:11:31,301 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: []

      17:11:31,302 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: []

      17:11:31,310 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.ESCALATION_ID_SEQ

      17:11:31,311 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [next_val]

      17:11:31,311 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: []

      17:11:31,312 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: []

      17:11:31,316 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.I18NTEXT_ID_SEQ

      17:11:31,317 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [next_val]

      17:11:31,317 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: []

      17:11:31,318 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: []

      17:11:31,322 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.NODE_INST_LOG_ID_SEQ

      17:11:31,323 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [next_val]

      17:11:31,324 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: []

      17:11:31,324 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: []

      17:11:31,329 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.NOTIFICATION_ID_SEQ

      17:11:31,329 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [next_val]

      17:11:31,330 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: []

      17:11:31,330 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: []

      17:11:31,361 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.PROC_INST_EVENT_ID_SEQ

      17:11:31,361 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [next_val]

      17:11:31,362 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: []

      17:11:31,363 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: []

      17:11:31,372 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.PROC_INST_LOG_ID_SEQ

      17:11:31,373 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [next_val]

      17:11:31,374 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: []

      17:11:31,375 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: []

      17:11:31,384 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.REASSIGNMENT_ID_SEQ

      17:11:31,385 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [next_val]

      17:11:31,386 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: []

      17:11:31,387 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: []

      17:11:31,395 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.SESSIONINFO_ID_SEQ

      17:11:31,398 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [next_val]

      17:11:31,398 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: []

      17:11:31,399 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: []

      17:11:31,407 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.VAR_INST_LOG_ID_SEQ

      17:11:31,408 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [next_val]

      17:11:31,409 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: []

      17:11:31,410 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: []

      17:11:31,419 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.WORKITEMINFO_ID_SEQ

      17:11:31,420 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [next_val]

      17:11:31,421 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: []

      17:11:31,421 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: []

      17:11:31,431 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: DB_jBPM5_WebApp_Example.hibernate_sequence

      17:11:31,432 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [next_val]

      17:11:31,432 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: []

      17:11:31,433 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: []

      17:11:31,433 INFO  [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-4) HHH000232: Schema update complete

      17:11:32,199 INFO  [org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl] (MSC service thread 1-1) HHH000402: Using Hibernate built-in connection pool (not for production use!)

      17:11:32,202 INFO  [org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl] (MSC service thread 1-1) HHH000115: Hibernate connection pool size: 20

      17:11:32,203 INFO  [org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl] (MSC service thread 1-1) HHH000006: Autocommit mode: true

      17:11:32,204 INFO  [org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl] (MSC service thread 1-1) HHH000401: using driver [com.mysql.jdbc.Driver] at URL [jdbc:mysql://localhost:3306/DB_jBPM5_WebApp_Example]

      17:11:32,208 INFO  [org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl] (MSC service thread 1-1) HHH000046: Connection properties: {user=root, password=****, autocommit=true, release_mode=auto}

      17:11:32,210 WARN  [org.hibernate.engine.jdbc.internal.JdbcServicesImpl] (MSC service thread 1-1) HHH000342: Could not obtain connection to query metadata : No suitable driver found for jdbc:mysql://localhost:3306/DB_jBPM5_WebApp_Example

      17:11:32,219 INFO  [org.hibernate.dialect.Dialect] (MSC service thread 1-1) HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect

      17:11:32,220 INFO  [org.hibernate.engine.jdbc.internal.LobCreatorBuilder] (MSC service thread 1-1) HHH000422: Disabling contextual LOB creation as connection was null

      17:11:32,227 WARN  [org.hibernate.service.jta.platform.internal.JtaPlatformInitiator] (MSC service thread 1-1) HHH000427: Using deprecated org.hibernate.transaction.TransactionManagerLookup strategy [hibernate.transaction.manager_lookup_class], use newer org.hibernate.service.jta.platform.spi.JtaPlatform strategy instead [hibernate.transaction.jta.platform]

      17:11:32,228 INFO  [org.hibernate.service.jta.platform.internal.JtaPlatformInitiator] (MSC service thread 1-1) HHH000428: Encountered legacy TransactionManagerLookup specified; convert to newer org.hibernate.service.jta.platform.spi.JtaPlatform contract specified via hibernate.transaction.jta.platform setting

      17:11:32,230 INFO  [org.hibernate.engine.transaction.internal.TransactionFactoryInitiator] (MSC service thread 1-1) HHH000268: Transaction strategy: org.hibernate.engine.transaction.internal.jdbc.JdbcTransactionFactory

      17:11:32,232 INFO  [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (MSC service thread 1-1) HHH000397: Using ASTQueryTranslatorFactory

      17:11:32,436 INFO  [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-1) HHH000228: Running hbm2ddl schema update

      17:11:32,437 INFO  [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-1) HHH000102: Fetching database metadata

      17:11:32,437 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-1) HHH000319: Could not get database metadata: java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/DB_jBPM5_WebApp_Example

                at java.sql.DriverManager.getConnection(DriverManager.java:604) [rt.jar:1.7.0_15]

                at java.sql.DriverManager.getConnection(DriverManager.java:190) [rt.jar:1.7.0_15]

                at org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl.getConnection(DriverManagerConnectionProviderImpl.java:173) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.prepare(SuppliedConnectionProviderConnectionHelper.java:51) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:194) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:178) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:457) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1737) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:56) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63) [hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final]

                at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47) [hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final]

                at main.java.com.sample.taskserver.HumanTaskStartupServlet.init(HumanTaskStartupServlet.java:38) [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.13.Final.jar:]

                at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873) [jbossweb-7.0.13.Final.jar:]

                at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_15]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_15]

                at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_15]

       

       

      17:11:32,456 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-1) HHH000299: Could not complete schema update: java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/DB_jBPM5_WebApp_Example

                at java.sql.DriverManager.getConnection(DriverManager.java:604) [rt.jar:1.7.0_15]

                at java.sql.DriverManager.getConnection(DriverManager.java:190) [rt.jar:1.7.0_15]

                at org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl.getConnection(DriverManagerConnectionProviderImpl.java:173) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.prepare(SuppliedConnectionProviderConnectionHelper.java:51) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:194) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:178) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:457) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1737) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:56) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63) [hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final]

                at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47) [hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final]

                at main.java.com.sample.taskserver.HumanTaskStartupServlet.init(HumanTaskStartupServlet.java:38) [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.13.Final.jar:]

                at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873) [jbossweb-7.0.13.Final.jar:]

                at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_15]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_15]

                at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_15]

       

       

      17:11:32,481 WARN  [org.hibernate.internal.SessionFactoryImpl] (MSC service thread 1-1) HHH000008: JTASessionContext being used with JDBCTransactionFactory; auto-flush will not operate correctly with getCurrentSession()

      17:11:33,027 WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (MSC service thread 1-1) SQL Error: 0, SQLState: 08001

      17:11:33,028 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (MSC service thread 1-1) No suitable driver found for jdbc:mysql://localhost:3306/DB_jBPM5_WebApp_Example

      17:11:33,032 WARN  [org.jbpm.task.service.persistence.TaskLocalTransactionManager] (MSC service thread 1-1) Unable to begin transaction: javax.persistence.PersistenceException: org.hibernate.exception.JDBCConnectionException: Could not open connection

                at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1361) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1289) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:1371) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:60) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                at org.jbpm.task.service.persistence.TaskLocalTransactionManager.begin(TaskLocalTransactionManager.java:42) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.persistence.TaskPersistenceManager.beginTransaction(TaskPersistenceManager.java:100) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.persistence.TaskPersistenceManager.getUnescalatedDeadlines(TaskPersistenceManager.java:177) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.scheduleUnescalatedDeadlines(TaskServiceSession.java:242) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskService.initialize(TaskService.java:134) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskService.initialize(TaskService.java:119) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskService.<init>(TaskService.java:97) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at main.java.com.sample.taskserver.HumanTaskStartupServlet.init(HumanTaskStartupServlet.java:39) [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.13.Final.jar:]

                at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873) [jbossweb-7.0.13.Final.jar:]

                at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_15]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_15]

                at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_15]

      Caused by: org.hibernate.exception.JDBCConnectionException: Could not open connection

                at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:131) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:47) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:110) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.obtainConnection(LogicalConnectionImpl.java:304) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.getConnection(LogicalConnectionImpl.java:169) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.doBegin(JdbcTransaction.java:67) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.begin(AbstractTransactionImpl.java:160) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.internal.SessionImpl.beginTransaction(SessionImpl.java:1263) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:57) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                ... 19 more

      Caused by: java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/DB_jBPM5_WebApp_Example

                at java.sql.DriverManager.getConnection(DriverManager.java:604) [rt.jar:1.7.0_15]

                at java.sql.DriverManager.getConnection(DriverManager.java:190) [rt.jar:1.7.0_15]

                at org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl.getConnection(DriverManagerConnectionProviderImpl.java:173) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.internal.AbstractSessionImpl$NonContextualJdbcConnectionAccess.obtainConnection(AbstractSessionImpl.java:276) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.obtainConnection(LogicalConnectionImpl.java:297) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                ... 24 more

       

       

      17:11:33,085 INFO  [main.java.com.sample.handler.CustomExceptionHandler] (MSC service thread 1-1) ------------------------------------ERROR-------------------------------------

      17:11:33,086 ERROR [main.java.com.sample.handler.CustomExceptionHandler] (MSC service thread 1-1) STACK TRACE: org.jbpm.task.service.persistence.TaskLocalTransactionManager.begin(TaskLocalTransactionManager.java:46)

      17:11:33,087 INFO  [main.java.com.sample.handler.CustomExceptionHandler] (MSC service thread 1-1) ------------------------------------ERROR-------------------------------------

      17:11:33,088 ERROR [stderr] (MSC service thread 1-1) java.lang.RuntimeException: Unable to begin transaction

      17:11:33,089 ERROR [stderr] (MSC service thread 1-1)           at org.jbpm.task.service.persistence.TaskLocalTransactionManager.begin(TaskLocalTransactionManager.java:46)

      17:11:33,094 ERROR [stderr] (MSC service thread 1-1)           at org.jbpm.task.service.persistence.TaskPersistenceManager.beginTransaction(TaskPersistenceManager.java:100)

      17:11:33,094 ERROR [stderr] (MSC service thread 1-1)           at org.jbpm.task.service.persistence.TaskPersistenceManager.getUnescalatedDeadlines(TaskPersistenceManager.java:177)

      17:11:33,095 ERROR [stderr] (MSC service thread 1-1)           at org.jbpm.task.service.TaskServiceSession.scheduleUnescalatedDeadlines(TaskServiceSession.java:242)

      17:11:33,100 ERROR [stderr] (MSC service thread 1-1)           at org.jbpm.task.service.TaskService.initialize(TaskService.java:134)

      17:11:33,100 ERROR [stderr] (MSC service thread 1-1)           at org.jbpm.task.service.TaskService.initialize(TaskService.java:119)

      17:11:33,101 ERROR [stderr] (MSC service thread 1-1)           at org.jbpm.task.service.TaskService.<init>(TaskService.java:97)

      17:11:33,101 ERROR [stderr] (MSC service thread 1-1)           at main.java.com.sample.taskserver.HumanTaskStartupServlet.init(HumanTaskStartupServlet.java:39)

      17:11:33,102 ERROR [stderr] (MSC service thread 1-1)           at javax.servlet.GenericServlet.init(GenericServlet.java:242)

      17:11:33,102 ERROR [stderr] (MSC service thread 1-1)           at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202)

      17:11:33,103 ERROR [stderr] (MSC service thread 1-1)           at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102)

      17:11:33,103 ERROR [stderr] (MSC service thread 1-1)           at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655)

      17:11:33,103 ERROR [stderr] (MSC service thread 1-1)           at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873)

      17:11:33,105 ERROR [stderr] (MSC service thread 1-1)           at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)

      17:11:33,105 ERROR [stderr] (MSC service thread 1-1)           at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

      17:11:33,106 ERROR [stderr] (MSC service thread 1-1)           at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

      17:11:33,107 ERROR [stderr] (MSC service thread 1-1)           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

      17:11:33,107 ERROR [stderr] (MSC service thread 1-1)           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

      17:11:33,108 ERROR [stderr] (MSC service thread 1-1)           at java.lang.Thread.run(Thread.java:722)

      17:11:33,108 ERROR [stderr] (MSC service thread 1-1) Caused by: javax.persistence.PersistenceException: org.hibernate.exception.JDBCConnectionException: Could not open connection

      17:11:33,109 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1361)

      17:11:33,109 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1289)

      17:11:33,110 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:1371)

      17:11:33,110 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:60)

      17:11:33,111 ERROR [stderr] (MSC service thread 1-1)           at org.jbpm.task.service.persistence.TaskLocalTransactionManager.begin(TaskLocalTransactionManager.java:42)

      17:11:33,111 ERROR [stderr] (MSC service thread 1-1)           ... 18 more

      17:11:33,112 ERROR [stderr] (MSC service thread 1-1) Caused by: org.hibernate.exception.JDBCConnectionException: Could not open connection

      17:11:33,112 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:131)

      17:11:33,113 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:47)

      17:11:33,113 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125)

      17:11:33,114 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:110)

      17:11:33,115 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.obtainConnection(LogicalConnectionImpl.java:304)

      17:11:33,115 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.getConnection(LogicalConnectionImpl.java:169)

      17:11:33,116 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.doBegin(JdbcTransaction.java:67)

      17:11:33,116 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.begin(AbstractTransactionImpl.java:160)

      17:11:33,117 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.internal.SessionImpl.beginTransaction(SessionImpl.java:1263)

      17:11:33,117 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:57)

      17:11:33,117 ERROR [stderr] (MSC service thread 1-1)           ... 19 more

      17:11:33,118 ERROR [stderr] (MSC service thread 1-1) Caused by: java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/DB_jBPM5_WebApp_Example

      17:11:33,118 ERROR [stderr] (MSC service thread 1-1)           at java.sql.DriverManager.getConnection(DriverManager.java:604)

      17:11:33,119 ERROR [stderr] (MSC service thread 1-1)           at java.sql.DriverManager.getConnection(DriverManager.java:190)

      17:11:33,119 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl.getConnection(DriverManagerConnectionProviderImpl.java:173)

      17:11:33,120 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.internal.AbstractSessionImpl$NonContextualJdbcConnectionAccess.obtainConnection(AbstractSessionImpl.java:276)

      17:11:33,120 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.obtainConnection(LogicalConnectionImpl.java:297)

      17:11:33,121 ERROR [stderr] (MSC service thread 1-1)           ... 24 more

      17:11:33,139 WARN  [bitronix.tm.utils.ManagementRegistrar] (MSC service thread 1-1) cannot register object with name bitronix.tm:type=Transaction,Gtrid=3132372E302E312E310000013D40AFC20C00000000: bitronix.tm.internal.BitronixRuntimeException: cannot call method 'registerMBean'

                at bitronix.tm.utils.ManagementRegistrar.mbeanServerCall(ManagementRegistrar.java:123) [btm-2.1.2.jar:2.1.2]

                at bitronix.tm.utils.ManagementRegistrar.register(ManagementRegistrar.java:86) [btm-2.1.2.jar:2.1.2]

                at bitronix.tm.BitronixTransaction.setStatus(BitronixTransaction.java:340) [btm-2.1.2.jar:2.1.2]

                at bitronix.tm.BitronixTransaction.setStatus(BitronixTransaction.java:323) [btm-2.1.2.jar:2.1.2]

                at bitronix.tm.BitronixTransaction.setActive(BitronixTransaction.java:314) [btm-2.1.2.jar:2.1.2]

                at bitronix.tm.BitronixTransactionManager.begin(BitronixTransactionManager.java:103) [btm-2.1.2.jar:2.1.2]

                at main.java.com.sample.processserver.TaskProcessServlet.init(TaskProcessServlet.java:41) [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.13.Final.jar:]

                at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873) [jbossweb-7.0.13.Final.jar:]

                at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_15]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_15]

                at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_15]

      Caused by: java.lang.IllegalAccessException: Class bitronix.tm.utils.ManagementRegistrar can not access a member of class org.jboss.as.jmx.PluggableMBeanServerImpl with modifiers "public"

                at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:95) [rt.jar:1.7.0_15]

                at java.lang.reflect.AccessibleObject.slowCheckMemberAccess(AccessibleObject.java:261) [rt.jar:1.7.0_15]

                at java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:253) [rt.jar:1.7.0_15]

                at java.lang.reflect.Method.invoke(Method.java:594) [rt.jar:1.7.0_15]

                at bitronix.tm.utils.ManagementRegistrar.mbeanServerCall(ManagementRegistrar.java:121) [btm-2.1.2.jar:2.1.2]

                ... 17 more

       

       

      17:11:33,150 INFO  [main.java.com.sample.processserver.AllMethods] (MSC service thread 1-1) Value of key : procXmlPath

      17:11:33,156 INFO  [main.java.com.sample.processserver.AllMethods] (MSC service thread 1-1) Value of value : /home/ouadi/MS-SID/infos_Stage/Projet_Workflow_Monetique/workspace_stage/WebApplication2/src

      17:11:33,156 INFO  [main.java.com.sample.processserver.AllMethods] (MSC service thread 1-1) Value of Return Value : /home/ouadi/MS-SID/infos_Stage/Projet_Workflow_Monetique/workspace_stage/WebApplication2/src

      17:11:33,157 INFO  [main.java.com.sample.processserver.AllMethods] (MSC service thread 1-1) URL : /home/ouadi/MS-SID/infos_Stage/Projet_Workflow_Monetique/workspace_stage/WebApplication2/src/ProcessDefInfo.xml

      17:11:33,162 INFO  [main.java.com.sample.processserver.AllMethods] (MSC service thread 1-1) Tag Value : HumanTasksGroupAssigned.bpmn

      17:11:33,163 INFO  [main.java.com.sample.processserver.AllMethods] (MSC service thread 1-1) Tag Value : SampleHumanTaskFormVariables.bpmn

      17:11:33,163 INFO  [main.java.com.sample.processserver.AllMethods] (MSC service thread 1-1) Tag Value : DynamicTaskAssignment.bpmn

      17:11:33,164 INFO  [main.java.com.sample.processserver.AllMethods] (MSC service thread 1-1) Value of processParameters : [HumanTasksGroupAssigned.bpmn, SampleHumanTaskFormVariables.bpmn, DynamicTaskAssignment.bpmn]

      17:11:33,177 INFO  [main.java.com.sample.processserver.JbpmAPIUtil] (MSC service thread 1-1) Value of processNames : [HumanTasksGroupAssigned.bpmn, SampleHumanTaskFormVariables.bpmn, DynamicTaskAssignment.bpmn]

      17:11:33,178 INFO  [main.java.com.sample.processserver.JbpmAPIUtil] (MSC service thread 1-1) Value of processNames : [HumanTasksGroupAssigned.bpmn, SampleHumanTaskFormVariables.bpmn, DynamicTaskAssignment.bpmn]

      17:11:34,261 INFO  [main.java.com.sample.handler.CustomExceptionHandler] (MSC service thread 1-1) ------------------------------------ERROR-------------------------------------

      17:11:34,263 ERROR [main.java.com.sample.handler.CustomExceptionHandler] (MSC service thread 1-1) STACK TRACE: org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:914)

      17:11:34,264 INFO  [main.java.com.sample.handler.CustomExceptionHandler] (MSC service thread 1-1) ------------------------------------ERROR-------------------------------------

      17:11:34,264 ERROR [stderr] (MSC service thread 1-1) javax.persistence.PersistenceException: [PersistenceUnit: org.jbpm.persistence.jpa] Unable to build EntityManagerFactory

      17:11:34,265 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:914)

      17:11:34,265 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889)

      17:11:34,266 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:56)

      17:11:34,266 ERROR [stderr] (MSC service thread 1-1)           at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)

      17:11:34,267 ERROR [stderr] (MSC service thread 1-1)           at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47)

      17:11:34,268 ERROR [stderr] (MSC service thread 1-1)           at main.java.com.sample.processserver.JbpmAPIUtil.createSession(JbpmAPIUtil.java:510)

      17:11:34,268 ERROR [stderr] (MSC service thread 1-1)           at main.java.com.sample.processserver.TaskProcessServlet.init(TaskProcessServlet.java:43)

      17:11:34,269 ERROR [stderr] (MSC service thread 1-1)           at javax.servlet.GenericServlet.init(GenericServlet.java:242)

      17:11:34,269 ERROR [stderr] (MSC service thread 1-1)           at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202)

      17:11:34,270 ERROR [stderr] (MSC service thread 1-1)           at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102)

      17:11:34,270 ERROR [stderr] (MSC service thread 1-1)           at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655)

      17:11:34,272 ERROR [stderr] (MSC service thread 1-1)           at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873)

      17:11:34,273 ERROR [stderr] (MSC service thread 1-1)           at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)

      17:11:34,273 ERROR [stderr] (MSC service thread 1-1)           at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

      17:11:34,274 ERROR [stderr] (MSC service thread 1-1)           at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

      17:11:34,274 ERROR [stderr] (MSC service thread 1-1)           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

      17:11:34,275 ERROR [stderr] (MSC service thread 1-1)           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

      17:11:34,276 ERROR [stderr] (MSC service thread 1-1)           at java.lang.Thread.run(Thread.java:722)

      17:11:34,276 ERROR [stderr] (MSC service thread 1-1) Caused by: org.hibernate.service.jndi.JndiException: Unable to lookup JNDI name [java:jboss/datasources/jBPM5WebAppExampleDS]

      17:11:34,277 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.service.jndi.internal.JndiServiceImpl.locate(JndiServiceImpl.java:68)

      17:11:34,277 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.service.jdbc.connections.internal.DatasourceConnectionProviderImpl.configure(DatasourceConnectionProviderImpl.java:116)

      17:11:34,278 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)

      17:11:34,279 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)

      17:11:34,279 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)

      17:11:34,280 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.buildJdbcConnectionAccess(JdbcServicesImpl.java:234)

      17:11:34,280 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:91)

      17:11:34,281 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)

      17:11:34,281 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)

      17:11:34,282 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)

      17:11:34,282 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71)

      17:11:34,283 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2270)

      17:11:34,283 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2266)

      17:11:34,284 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1735)

      17:11:34,284 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84)

      17:11:34,285 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904)

      17:11:34,285 ERROR [stderr] (MSC service thread 1-1)           ... 17 more

      17:11:34,286 ERROR [stderr] (MSC service thread 1-1) Caused by: javax.naming.NameNotFoundException: unable to find a bound object at name 'java:jboss/datasources/jBPM5WebAppExampleDS'

      17:11:34,286 ERROR [stderr] (MSC service thread 1-1)           at bitronix.tm.jndi.BitronixContext.lookup(BitronixContext.java:83)

      17:11:34,287 ERROR [stderr] (MSC service thread 1-1)           at bitronix.tm.jndi.BitronixContext.lookup(BitronixContext.java:67)

      17:11:34,288 ERROR [stderr] (MSC service thread 1-1)           at javax.naming.InitialContext.lookup(InitialContext.java:415)

      17:11:34,288 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.service.jndi.internal.JndiServiceImpl.locate(JndiServiceImpl.java:65)

      17:11:34,289 ERROR [stderr] (MSC service thread 1-1)           ... 32 more

      17:11:34,301 INFO  [org.jboss.web] (MSC service thread 1-1) JBAS018210: Registering web context: /WebApplication2

      17:11:34,318 INFO  [org.jboss.as] (MSC service thread 1-3) JBAS015951: Admin console listening on http://127.0.0.1:9990

      17:11:34,319 INFO  [org.jboss.as] (MSC service thread 1-3) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 13503ms - Started 186 of 264 services (76 services are passive or on-demand)

      17:11:34,479 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "WebApplication2.war"

       

        • 1. Re: Unable to build EntityManagerFactory [PersistenceUnit: org.jbpm.persistence.jpa]
          Jiri Svitak Novice

          Hello Quadi BEL,

           

          what is the version of your MySQL database and the driver? Because as I can see in the log, you use org.hibernate.dialect.MySQLDialect in your persistence.xml. Latest MySQL is of version 5 and it requires org.hibernate.dialectMySQL5Dialect (it's possible to try also MySQL5InnoDBDialect for InnoDB storage engine).

          • 2. Re: Unable to build EntityManagerFactory [PersistenceUnit: org.jbpm.persistence.jpa]
            Ouadi BELMOKHTAR Newbie

            Thank you for reply,

             

            MySQL version is : 5.5.16

             

            Driver version is : mysql-connector-java-5.1.23-bin.jar

             

            Help me please, I'm blocked in this step !!

            • 3. Re: Unable to build EntityManagerFactory [PersistenceUnit: org.jbpm.persistence.jpa]
              Ouadi BELMOKHTAR Newbie

              I'm adapting the propertie :

               

              <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5Dialect" />

               

              But the same problem occured !

              • 4. Re: Unable to build EntityManagerFactory [PersistenceUnit: org.jbpm.persistence.jpa]
                Jiri Svitak Novice

                It seems to be a problem with your jdbc driver. So, make sure that you have your driver configured properly and also that  you do not use multiple MySQL drivers at one time.

                There are more ways how to configure jbdc driver, for standalone use you can simply deploy the driver as a JBoss module:

                https://community.jboss.org/wiki/DataSourceConfigurationInAS7

                • 5. Re: Unable to build EntityManagerFactory [PersistenceUnit: org.jbpm.persistence.jpa]
                  Ouadi BELMOKHTAR Newbie

                  MySQL driver must exist in "modules/mysql/main/mysql-connector.jar" and in application "/lib" folder isn't it.

                  • 6. Re: Unable to build EntityManagerFactory [PersistenceUnit: org.jbpm.persistence.jpa]
                    Shobhit Tyagi Master

                    You can remove the driver from from the application as the module is already defined. Just to ensure there are no duplicates.

                    • 7. Re: Unable to build EntityManagerFactory [PersistenceUnit: org.jbpm.persistence.jpa]
                      Ouadi BELMOKHTAR Newbie

                      So, roxy1987 can you build a simple example use JBoss 7 AS and MySQL server PLEASE.

                      • 8. Re: Unable to build EntityManagerFactory [PersistenceUnit: org.jbpm.persistence.jpa]
                        Ouadi BELMOKHTAR Newbie

                        The problem of MySQL driver is fixed after removing the driver jar file from my application classpath,

                         

                        But others problems comming :

                         

                        17:02:55,999 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA

                        17:02:56,317 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA

                        17:02:56,386 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting

                        17:02:57,758 INFO  [org.xnio] XNIO Version 3.0.3.GA

                        17:02:57,766 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)

                        17:02:57,786 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA

                        17:02:57,803 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA

                        17:02:57,865 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers

                        17:02:57,880 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem

                        17:02:57,922 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.

                        17:02:58,003 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem

                        17:02:58,007 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem

                        17:02:58,027 INFO  [org.jboss.as.security] (MSC service thread 1-3) JBAS013100: Current PicketBox version=4.0.7.Final

                        17:02:58,031 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem

                        17:02:58,155 INFO  [org.jboss.as.connector] (MSC service thread 1-2) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)

                        17:02:58,161 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

                        17:02:58,176 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension

                        17:02:58,204 INFO  [org.jboss.as.naming] (MSC service thread 1-1) JBAS011802: Starting Naming Service

                        17:02:58,260 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-4) JBAS015400: Bound mail session [java:jboss/mail/Default]

                        17:02:58,274 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)

                        17:02:58,497 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-4) JBoss Web Services - Stack CXF Server 4.0.2.GA

                        17:02:58,744 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-3) Starting Coyote HTTP/1.1 on http--127.0.0.1-8080

                        17:02:59,195 INFO  [org.jboss.as.remoting] (MSC service thread 1-3) JBAS017100: Listening on /127.0.0.1:9999

                        17:02:59,196 INFO  [org.jboss.as.remoting] (MSC service thread 1-2) JBAS017100: Listening on /127.0.0.1:4447

                        17:02:59,227 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-2) JBAS015012: Started FileSystemDeploymentService for directory /home/ouadi/programing_tools/servres/JBoss/jboss-as-7.1.1.Final/standalone/deployments

                        17:02:59,371 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

                        17:02:59,372 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) JBAS010400: Bound data source [java:/MySqlDS]

                        17:02:59,370 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) JBAS010400: Bound data source [java:jboss/datasources/jBPMDS]

                        17:02:59,484 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "WebApplication2.war"

                        17:03:01,452 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry activation.jar in "/content/WebApplication2.war/WEB-INF/lib/mail-1.4.jar"  does not point to a valid jar for a Class-Path reference.

                        17:03:01,601 INFO  [org.jboss.as.jpa] (MSC service thread 1-1) JBAS011401: Read persistence.xml for org.jbpm.persistence.jpa

                        17:03:01,604 INFO  [org.jboss.as.jpa] (MSC service thread 1-1) JBAS011401: Read persistence.xml for org.jbpm.task

                        17:03:01,877 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

                        17:03:01,936 INFO  [org.jboss.as.jpa] (MSC service thread 1-4) JBAS011402: Starting Persistence Unit Service 'WebApplication2.war#org.jbpm.persistence.jpa'

                        17:03:01,937 INFO  [org.jboss.as.jpa] (MSC service thread 1-2) JBAS011402: Starting Persistence Unit Service 'WebApplication2.war#org.jbpm.task'

                        17:03:02,142 INFO  [org.hibernate.annotations.common.Version] (MSC service thread 1-4) HCANN000001: Hibernate Commons Annotations {4.0.1.Final}

                        17:03:02,149 INFO  [org.hibernate.Version] (MSC service thread 1-4) HHH000412: Hibernate Core {4.0.1.Final}

                        17:03:02,156 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-4) HHH000206: hibernate.properties not found

                        17:03:02,159 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-4) HHH000021: Bytecode provider name : javassist

                        17:03:02,180 INFO  [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-2) HHH000204: Processing PersistenceUnitInfo [

                                  name: org.jbpm.task

                                  ...]

                        17:03:02,191 INFO  [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-4) HHH000204: Processing PersistenceUnitInfo [

                                  name: org.jbpm.persistence.jpa

                                  ...]

                        17:03:02,422 WARN  [org.hibernate.internal.util.xml.DTDEntityResolver] (MSC service thread 1-2) HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!

                         

                         

                         

                        17:03:02,688 ERROR [org.hibernate.internal.util.xml.ErrorLogger] (MSC service thread 1-4) HHH000196: Error parsing XML (5) : cvc-complex-type.3.1: Value '1.0' of attribute 'version' of element 'entity-mappings' is not valid with respect to the corresponding attribute use. Attribute 'version' has a fixed value of '2.0'.

                        17:03:02,719 ERROR [org.hibernate.internal.util.xml.ErrorLogger] (MSC service thread 1-2) HHH000196: Error parsing XML (5) : cvc-complex-type.3.1: Value '1.0' of attribute 'version' of element 'entity-mappings' is not valid with respect to the corresponding attribute use. Attribute 'version' has a fixed value of '2.0'.

                        17:03:02,823 WARN  [org.hibernate.internal.util.xml.DTDEntityResolver] (MSC service thread 1-4) HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!

                        17:03:03,372 INFO  [org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator] (MSC service thread 1-2) HHH000130: Instantiating explicit connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider

                        17:03:03,375 INFO  [org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator] (MSC service thread 1-4) HHH000130: Instantiating explicit connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider

                        17:03:03,903 INFO  [bitronix.tm.BitronixTransactionManager] (MSC service thread 1-4) Bitronix Transaction Manager version 2.1.2

                        17:03:03,908 WARN  [bitronix.tm.Configuration] (MSC service thread 1-4) cannot get this JVM unique ID. Make sure it is configured and you only use ASCII characters. Will use IP address instead (unsafe for production usage!).

                        17:03:03,907 INFO  [org.hibernate.dialect.Dialect] (MSC service thread 1-2) HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect

                        17:03:03,927 INFO  [bitronix.tm.Configuration] (MSC service thread 1-4) JVM unique ID: <127.0.1.1>

                        17:03:03,968 INFO  [org.hibernate.engine.transaction.internal.TransactionFactoryInitiator] (MSC service thread 1-2) HHH000268: Transaction strategy: org.hibernate.engine.transaction.internal.jta.CMTTransactionFactory

                        17:03:03,981 INFO  [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (MSC service thread 1-2) HHH000397: Using ASTQueryTranslatorFactory

                        17:03:04,014 WARN  [bitronix.tm.journal.DiskJournal] (MSC service thread 1-4) active log file is unclean, did you call BitronixTransactionManager.shutdown() at the end of the last run?

                        ^C17:03:04,060 INFO  [org.hibernate.validator.util.Version] (MSC service thread 1-2) Hibernate Validator 4.2.0.Final

                         

                         

                         

                        17:03:04,033 WARN  [bitronix.tm.utils.ManagementRegistrar] (MSC service thread 1-4) cannot register object with name bitronix.tm:type=Recoverer,ServerId=127_0_1_1: bitronix.tm.internal.BitronixRuntimeException: cannot call method 'registerMBean'

                                  at bitronix.tm.utils.ManagementRegistrar.mbeanServerCall(ManagementRegistrar.java:123) [btm-2.1.2.jar:2.1.2]

                                  at bitronix.tm.utils.ManagementRegistrar.register(ManagementRegistrar.java:86) [btm-2.1.2.jar:2.1.2]

                                  at bitronix.tm.recovery.Recoverer.<init>(Recoverer.java:104) [btm-2.1.2.jar:2.1.2]

                                  at bitronix.tm.TransactionManagerServices.getRecoverer(TransactionManagerServices.java:139) [btm-2.1.2.jar:2.1.2]

                                  at bitronix.tm.BitronixTransactionManager.<init>(BitronixTransactionManager.java:64) [btm-2.1.2.jar:2.1.2]

                                  at bitronix.tm.TransactionManagerServices.getTransactionManager(TransactionManagerServices.java:62) [btm-2.1.2.jar:2.1.2]

                                  at bitronix.tm.jndi.BitronixContext.lookup(BitronixContext.java:76) [btm-2.1.2.jar:2.1.2]

                                  at javax.naming.InitialContext.lookup(InitialContext.java:411) [rt.jar:1.7.0_15]

                                  at org.jboss.jca.adapters.jdbc.WrapperDataSource.initUserTransaction(WrapperDataSource.java:262)

                                  at org.jboss.jca.adapters.jdbc.WrapperDataSource.checkTransactionActive(WrapperDataSource.java:222)

                                  at org.jboss.jca.adapters.jdbc.WrappedConnection.checkTransactionActive(WrappedConnection.java:1599)

                                  at org.jboss.jca.adapters.jdbc.WrappedConnection.checkStatus(WrappedConnection.java:1614)

                                  at org.jboss.jca.adapters.jdbc.WrappedConnection.checkTransaction(WrappedConnection.java:1588)

                                  at org.jboss.jca.adapters.jdbc.WrappedConnection.getMetaData(WrappedConnection.java:816)

                                  at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:121) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                                  at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                                  at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                                  at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                                  at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                                  at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2270) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                                  at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2266) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                                  at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1735) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                                  at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                                  at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                                  at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                                  at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                                  at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:162) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]

                                  at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.start(PersistenceUnitServiceImpl.java:85) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]

                                  at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                                  at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_15]

                                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_15]

                                  at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_15]

                        Caused by: java.lang.IllegalAccessException: Class bitronix.tm.utils.ManagementRegistrar can not access a member of class org.jboss.as.jmx.PluggableMBeanServerImpl with modifiers "public"

                                  at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:95) [rt.jar:1.7.0_15]

                                  at java.lang.reflect.AccessibleObject.slowCheckMemberAccess(AccessibleObject.java:261) [rt.jar:1.7.0_15]

                                  at java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:253) [rt.jar:1.7.0_15]

                                  at java.lang.reflect.Method.invoke(Method.java:594) [rt.jar:1.7.0_15]

                                  at bitronix.tm.utils.ManagementRegistrar.mbeanServerCall(ManagementRegistrar.java:121) [btm-2.1.2.jar:2.1.2]

                                  ... 32 more

                         

                         

                        17:03:04,224 INFO  [org.jboss.as.logging] JBAS011503: Restored bootstrap log handlers

                        17:03:04,227 INFO  [org.hibernate.dialect.Dialect] HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect

                        17:03:04,231 INFO  [org.hibernate.engine.transaction.internal.TransactionFactoryInitiator] HHH000268: Transaction strategy: org.hibernate.engine.transaction.internal.jta.CMTTransactionFactory

                        17:03:04,232 INFO  [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] HHH000397: Using ASTQueryTranslatorFactory

                        17:03:05,144 INFO  [org.hibernate.tool.hbm2ddl.SchemaUpdate] HHH000228: Running hbm2ddl schema update

                        17:03:05,145 INFO  [org.hibernate.tool.hbm2ddl.SchemaUpdate] HHH000102: Fetching database metadata

                         

                         

                         

                        ...................

                         

                         

                        17:10:03,680 INFO  [main.java.com.sample.handler.CustomExceptionHandler] (MSC service thread 1-2) ------------------------------------ERROR-------------------------------------

                        17:10:03,683 ERROR [main.java.com.sample.handler.CustomExceptionHandler] (MSC service thread 1-2) STACK TRACE: org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:914)

                        17:10:03,684 INFO  [main.java.com.sample.handler.CustomExceptionHandler] (MSC service thread 1-2) ------------------------------------ERROR-------------------------------------

                        17:10:03,685 ERROR [stderr] (MSC service thread 1-2) javax.persistence.PersistenceException: [PersistenceUnit: org.jbpm.task] Unable to build EntityManagerFactory

                        17:10:03,686 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:914)

                        17:10:03,686 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889)

                        17:10:03,688 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:56)

                        17:10:03,689 ERROR [stderr] (MSC service thread 1-2)           at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)

                        17:10:03,689 ERROR [stderr] (MSC service thread 1-2)           at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47)

                        17:10:03,693 ERROR [stderr] (MSC service thread 1-2)           at main.java.com.sample.taskserver.HumanTaskStartupServlet.init(HumanTaskStartupServlet.java:42)

                        17:10:03,693 ERROR [stderr] (MSC service thread 1-2)           at javax.servlet.GenericServlet.init(GenericServlet.java:242)

                        17:10:03,694 ERROR [stderr] (MSC service thread 1-2)           at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202)

                        17:10:03,694 ERROR [stderr] (MSC service thread 1-2)           at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102)

                        17:10:03,695 ERROR [stderr] (MSC service thread 1-2)           at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655)

                        17:10:03,695 ERROR [stderr] (MSC service thread 1-2)           at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873)

                        17:10:03,696 ERROR [stderr] (MSC service thread 1-2)           at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)

                        17:10:03,696 ERROR [stderr] (MSC service thread 1-2)           at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                        17:10:03,696 ERROR [stderr] (MSC service thread 1-2)           at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                        17:10:03,697 ERROR [stderr] (MSC service thread 1-2)           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

                        17:10:03,698 ERROR [stderr] (MSC service thread 1-2)           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

                        17:10:03,698 ERROR [stderr] (MSC service thread 1-2)           at java.lang.Thread.run(Thread.java:722)

                        17:10:03,700 ERROR [stderr] (MSC service thread 1-2) Caused by: org.hibernate.service.jndi.JndiException: Unable to lookup JNDI name [java:jboss/datasources/jBPMDS]

                        17:10:03,701 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.service.jndi.internal.JndiServiceImpl.locate(JndiServiceImpl.java:68)

                        17:10:03,701 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.service.jdbc.connections.internal.DatasourceConnectionProviderImpl.configure(DatasourceConnectionProviderImpl.java:116)

                        17:10:03,702 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)

                        17:10:03,702 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)

                        17:10:03,703 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)

                        17:10:03,705 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.buildJdbcConnectionAccess(JdbcServicesImpl.java:234)

                        17:10:03,705 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:91)

                        17:10:03,706 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)

                        17:10:03,707 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)

                        17:10:03,708 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)

                        17:10:03,708 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71)

                        17:10:03,709 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2270)

                        17:10:03,709 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2266)

                        17:10:03,710 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1735)

                        17:10:03,710 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84)

                        17:10:03,710 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904)

                        17:10:03,711 ERROR [stderr] (MSC service thread 1-2)           ... 16 more

                        17:10:03,713 ERROR [stderr] (MSC service thread 1-2) Caused by: javax.naming.NameNotFoundException: unable to find a bound object at name 'java:jboss/datasources/jBPMDS'

                        17:10:03,720 ERROR [stderr] (MSC service thread 1-2)           at bitronix.tm.jndi.BitronixContext.lookup(BitronixContext.java:83)

                        17:10:03,720 ERROR [stderr] (MSC service thread 1-2)           at bitronix.tm.jndi.BitronixContext.lookup(BitronixContext.java:67)

                        17:10:03,721 ERROR [stderr] (MSC service thread 1-2)           at javax.naming.InitialContext.lookup(InitialContext.java:415)

                        17:10:03,721 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.service.jndi.internal.JndiServiceImpl.locate(JndiServiceImpl.java:65)

                        17:10:03,721 ERROR [stderr] (MSC service thread 1-2)           ... 31 more

                        17:10:03,745 WARN  [bitronix.tm.utils.ManagementRegistrar] (MSC service thread 1-2) cannot register object with name bitronix.tm:type=Transaction,Gtrid=3132372E302E312E310000013D45D4C0D900000000: bitronix.tm.internal.BitronixRuntimeException: cannot call method 'registerMBean'

                                  at bitronix.tm.utils.ManagementRegistrar.mbeanServerCall(ManagementRegistrar.java:123) [btm-2.1.2.jar:2.1.2]

                                  at bitronix.tm.utils.ManagementRegistrar.register(ManagementRegistrar.java:86) [btm-2.1.2.jar:2.1.2]

                                  at bitronix.tm.BitronixTransaction.setStatus(BitronixTransaction.java:340) [btm-2.1.2.jar:2.1.2]

                                  at bitronix.tm.BitronixTransaction.setStatus(BitronixTransaction.java:323) [btm-2.1.2.jar:2.1.2]

                                  at bitronix.tm.BitronixTransaction.setActive(BitronixTransaction.java:314) [btm-2.1.2.jar:2.1.2]

                                  at bitronix.tm.BitronixTransactionManager.begin(BitronixTransactionManager.java:103) [btm-2.1.2.jar:2.1.2]

                                  at main.java.com.sample.processserver.TaskProcessServlet.init(TaskProcessServlet.java:41) [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.13.Final.jar:]

                                  at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873) [jbossweb-7.0.13.Final.jar:]

                                  at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

                                  at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                                  at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_15]

                                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_15]

                                  at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_15]

                        Caused by: java.lang.IllegalAccessException: Class bitronix.tm.utils.ManagementRegistrar can not access a member of class org.jboss.as.jmx.PluggableMBeanServerImpl with modifiers "public"

                                  at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:95) [rt.jar:1.7.0_15]

                                  at java.lang.reflect.AccessibleObject.slowCheckMemberAccess(AccessibleObject.java:261) [rt.jar:1.7.0_15]

                                  at java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:253) [rt.jar:1.7.0_15]

                                  at java.lang.reflect.Method.invoke(Method.java:594) [rt.jar:1.7.0_15]

                                  at bitronix.tm.utils.ManagementRegistrar.mbeanServerCall(ManagementRegistrar.java:121) [btm-2.1.2.jar:2.1.2]

                                  ... 17 more

                         

                         

                        17:10:03,768 INFO  [main.java.com.sample.processserver.AllMethods] (MSC service thread 1-2) Value of key : procXmlPath

                        17:10:03,769 INFO  [main.java.com.sample.processserver.AllMethods] (MSC service thread 1-2) Value of value : /home/ouadi/MS-SID/infos_Stage/Projet_Workflow_Monetique/workspace_stage/WebApplication2/src

                        17:10:03,769 INFO  [main.java.com.sample.processserver.AllMethods] (MSC service thread 1-2) Value of Return Value : /home/ouadi/MS-SID/infos_Stage/Projet_Workflow_Monetique/workspace_stage/WebApplication2/src

                        17:10:03,771 INFO  [main.java.com.sample.processserver.AllMethods] (MSC service thread 1-2) URL : /home/ouadi/MS-SID/infos_Stage/Projet_Workflow_Monetique/workspace_stage/WebApplication2/src/ProcessDefInfo.xml

                        17:10:03,778 INFO  [main.java.com.sample.processserver.AllMethods] (MSC service thread 1-2) Tag Value : HumanTasksGroupAssigned.bpmn

                        17:10:03,779 INFO  [main.java.com.sample.processserver.AllMethods] (MSC service thread 1-2) Tag Value : SampleHumanTaskFormVariables.bpmn

                        17:10:03,780 INFO  [main.java.com.sample.processserver.AllMethods] (MSC service thread 1-2) Tag Value : DynamicTaskAssignment.bpmn

                        17:10:03,780 INFO  [main.java.com.sample.processserver.AllMethods] (MSC service thread 1-2) Value of processParameters : [HumanTasksGroupAssigned.bpmn, SampleHumanTaskFormVariables.bpmn, DynamicTaskAssignment.bpmn]

                        17:10:03,788 INFO  [main.java.com.sample.processserver.JbpmAPIUtil] (MSC service thread 1-2) Value of processNames : [HumanTasksGroupAssigned.bpmn, SampleHumanTaskFormVariables.bpmn, DynamicTaskAssignment.bpmn]

                        17:10:03,789 INFO  [main.java.com.sample.processserver.JbpmAPIUtil] (MSC service thread 1-2) Value of processNames : [HumanTasksGroupAssigned.bpmn, SampleHumanTaskFormVariables.bpmn, DynamicTaskAssignment.bpmn]

                         

                         

                        17:10:05,077 INFO  [main.java.com.sample.handler.CustomExceptionHandler] (MSC service thread 1-2) ------------------------------------ERROR-------------------------------------

                        17:10:05,077 ERROR [main.java.com.sample.handler.CustomExceptionHandler] (MSC service thread 1-2) STACK TRACE: org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:914)

                        17:10:05,078 INFO  [main.java.com.sample.handler.CustomExceptionHandler] (MSC service thread 1-2) ------------------------------------ERROR-------------------------------------

                        17:10:05,079 ERROR [stderr] (MSC service thread 1-2) javax.persistence.PersistenceException: [PersistenceUnit: org.jbpm.persistence.jpa] Unable to build EntityManagerFactory

                        17:10:05,079 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:914)

                        17:10:05,080 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889)

                        17:10:05,080 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:56)

                        17:10:05,081 ERROR [stderr] (MSC service thread 1-2)           at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)

                        17:10:05,081 ERROR [stderr] (MSC service thread 1-2)           at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47)

                        17:10:05,082 ERROR [stderr] (MSC service thread 1-2)           at main.java.com.sample.processserver.JbpmAPIUtil.createSession(JbpmAPIUtil.java:511)

                        17:10:05,082 ERROR [stderr] (MSC service thread 1-2)           at main.java.com.sample.processserver.TaskProcessServlet.init(TaskProcessServlet.java:43)

                        17:10:05,083 ERROR [stderr] (MSC service thread 1-2)           at javax.servlet.GenericServlet.init(GenericServlet.java:242)

                        17:10:05,083 ERROR [stderr] (MSC service thread 1-2)           at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202)

                        17:10:05,084 ERROR [stderr] (MSC service thread 1-2)           at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102)

                        17:10:05,084 ERROR [stderr] (MSC service thread 1-2)           at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655)

                        17:10:05,085 ERROR [stderr] (MSC service thread 1-2)           at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873)

                        17:10:05,085 ERROR [stderr] (MSC service thread 1-2)           at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)

                        17:10:05,086 ERROR [stderr] (MSC service thread 1-2)           at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                        17:10:05,086 ERROR [stderr] (MSC service thread 1-2)           at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                        17:10:05,087 ERROR [stderr] (MSC service thread 1-2)           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

                        17:10:05,088 ERROR [stderr] (MSC service thread 1-2)           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

                        17:10:05,088 ERROR [stderr] (MSC service thread 1-2)           at java.lang.Thread.run(Thread.java:722)

                        17:10:05,089 ERROR [stderr] (MSC service thread 1-2) Caused by: org.hibernate.service.jndi.JndiException: Unable to lookup JNDI name [java:jboss/datasources/jBPMDS]

                        17:10:05,089 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.service.jndi.internal.JndiServiceImpl.locate(JndiServiceImpl.java:68)

                        17:10:05,090 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.service.jdbc.connections.internal.DatasourceConnectionProviderImpl.configure(DatasourceConnectionProviderImpl.java:116)

                        17:10:05,091 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)

                        17:10:05,093 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)

                        17:10:05,094 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)

                        17:10:05,094 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.buildJdbcConnectionAccess(JdbcServicesImpl.java:234)

                        17:10:05,095 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:91)

                        17:10:05,095 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)

                        17:10:05,096 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)

                        17:10:05,097 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)

                        17:10:05,098 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71)

                        17:10:05,098 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2270)

                        17:10:05,098 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2266)

                        17:10:05,099 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1735)

                        17:10:05,100 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84)

                        17:10:05,100 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904)

                        17:10:05,101 ERROR [stderr] (MSC service thread 1-2)           ... 17 more

                        17:10:05,101 ERROR [stderr] (MSC service thread 1-2) Caused by: javax.naming.NameNotFoundException: unable to find a bound object at name 'java:jboss/datasources/jBPMDS'

                        17:10:05,102 ERROR [stderr] (MSC service thread 1-2)           at bitronix.tm.jndi.BitronixContext.lookup(BitronixContext.java:83)

                        17:10:05,102 ERROR [stderr] (MSC service thread 1-2)           at bitronix.tm.jndi.BitronixContext.lookup(BitronixContext.java:67)

                        17:10:05,103 ERROR [stderr] (MSC service thread 1-2)           at javax.naming.InitialContext.lookup(InitialContext.java:415)

                        17:10:05,103 ERROR [stderr] (MSC service thread 1-2)           at org.hibernate.service.jndi.internal.JndiServiceImpl.locate(JndiServiceImpl.java:65)

                        17:10:05,103 ERROR [stderr] (MSC service thread 1-2)           ... 32 more

                        17:10:05,116 INFO  [org.jboss.web] (MSC service thread 1-2) JBAS018210: Registering web context: /WebApplication2

                        17:10:05,124 INFO  [org.jboss.as] (MSC service thread 1-3) JBAS015951: Admin console listening on http://127.0.0.1:9990

                        17:10:05,129 INFO  [org.jboss.as] (MSC service thread 1-3) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 13300ms - Started 188 of 267 services (76 services are passive or on-demand)

                        17:10:05,328 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "WebApplication2.war"

                        • 9. Re: Unable to build EntityManagerFactory [PersistenceUnit: org.jbpm.persistence.jpa]
                          Jiri Svitak Novice

                          17:10:03,713 ERROR [stderr] (MSC service thread 1-2) Caused by: javax.naming.NameNotFoundException: unable to find a bound object at name 'java:jboss/datasources/jBPMDS'

                           

                          Check your persistence.xml and also standalone.xml if they have the same JNDI name for your data source. Usually it's named 'java:jboss/datasources/jbpmDS'.

                          • 10. Re: Unable to build EntityManagerFactory [PersistenceUnit: org.jbpm.persistence.jpa]
                            Ouadi BELMOKHTAR Newbie

                            'standalone.xml' DataSource configuration :

                             

                                            <datasource jndi-name="java:jboss/datasources/jBPMDS" pool-name="jBPMDS" enabled="true" use-java-context="true">

                                                <connection-url>jdbc:mysql://localhost:3306/DB_jBPM5_WebApp_Example</connection-url>

                                                <driver>mysql</driver>

                                                <pool>

                                                    <max-pool-size>30</max-pool-size>

                                                </pool>

                                                <security>

                                                    <user-name>root</user-name>

                                                    <password>***</password>

                                                </security>

                                            </datasource>

                             

                             

                             

                            persistence.xml configuration :

                             

                             

                            <?xml version="1.0" encoding="UTF-8" standalone="yes"?>

                            <persistence version="1.0" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd

                            http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_1_0.xsd" xmlns:orm="http://java.sun.com/xml/ns/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/persistence">

                                

                                

                                      <persistence-unit name="org.jbpm.persistence.jpa" transaction-type="JTA">

                                    <provider>org.hibernate.ejb.HibernatePersistence</provider>

                                    <jta-data-source>java:jboss/datasources/jBPMDS</jta-data-source>

                                   

                                          <class>org.drools.persistence.info.SessionInfo</class>

                                    <class>org.drools.persistence.info.WorkItemInfo</class>

                                    <class>org.jbpm.process.audit.ProcessInstanceLog</class>

                                    <class>org.jbpm.process.audit.NodeInstanceLog</class>

                                    <class>org.jbpm.process.audit.VariableInstanceLog</class>

                                          <class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class>

                                    <class>org.jbpm.persistence.processinstance.ProcessInstanceEventInfo</class>

                                    

                                    <class>org.jbpm.task.Task</class>

                                                <class>org.jbpm.task.Comment</class>

                                                <class>org.jbpm.task.Attachment</class>

                                                <class>org.jbpm.task.I18NText</class>

                                                <class>org.jbpm.task.SubTasksStrategy</class>

                                                <class>org.jbpm.task.Deadline</class>

                                                <class>org.jbpm.task.Escalation</class>

                                                <class>org.jbpm.task.Reassignment</class>

                                                <class>org.jbpm.task.Notification</class>

                                                <class>org.jbpm.task.BooleanExpression</class>

                                                <class>org.jbpm.task.User</class>

                                                <class>org.jbpm.task.PeopleAssignments</class>          

                                    <properties>

                                        <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>

                                        <property name="hibernate.connection.autocommit" value="true"/>

                                        <property name="hibernate.max_fetch_depth" value="3"/>

                                        <property name="hibernate.hbm2ddl.auto" value="update" />

                                        <property name="hibernate.show_sql" value="false" />

                                        <!--

                                        <property name="hibernate.transaction.manager_lookup_class" value=" org.hibernate.transaction.WebSphereExtendedJTATransactionLookup"/>

                                        -->

                                    </properties>

                                </persistence-unit>

                             

                             

                             

                                <persistence-unit name="org.jbpm.task">

                                    <provider>org.hibernate.ejb.HibernatePersistence</provider>

                                    <non-jta-data-source>java:jboss/datasources/jBPMDS</non-jta-data-source>

                                    <class>org.jbpm.task.Attachment</class>

                                    <class>org.jbpm.task.Content</class>

                                    <class>org.jbpm.task.BooleanExpression</class>

                                    <class>org.jbpm.task.Comment</class>

                                    <class>org.jbpm.task.Deadline</class>

                                    <class>org.jbpm.task.Delegation</class>

                                    <class>org.jbpm.task.Escalation</class>

                                    <class>org.jbpm.task.Group</class>

                                    <class>org.jbpm.task.I18NText</class>

                                    <class>org.jbpm.task.Notification</class>

                                    <class>org.jbpm.task.EmailNotification</class>

                                    <class>org.jbpm.task.EmailNotificationHeader</class>

                                    <class>org.jbpm.task.PeopleAssignments</class>

                                    <class>org.jbpm.task.Reassignment</class>

                                    <class>org.jbpm.task.Status</class>

                                    <class>org.jbpm.task.Task</class>

                                    <class>org.jbpm.task.TaskData</class>

                                    <class>org.jbpm.task.SubTasksStrategy</class>

                                    <class>org.jbpm.task.OnParentAbortAllSubTasksEndStrategy</class>

                                    <class>org.jbpm.task.OnAllSubTasksEndParentEndStrategy</class>

                                    <class>org.jbpm.task.User</class>

                             

                             

                                    <class>org.drools.persistence.info.SessionInfo</class>

                                    <class>org.drools.persistence.info.WorkItemInfo</class>

                                          <class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class>

                                    <class>org.jbpm.persistence.processinstance.ProcessInstanceEventInfo</class>

                                

                                    <properties>

                                        <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>

                                        <property name="hibernate.connection.autocommit" value="true"/>

                                        <property name="hibernate.max_fetch_depth" value="3"/>

                                        <property name="hibernate.hbm2ddl.auto" value="update" />

                                        <property name="hibernate.show_sql" value="false" />

                                        <!--

                                        <property name="hibernate.transaction.manager_lookup_class" value=" org.hibernate.transaction.WebSphereExtendedJTATransactionLookup"/>

                                        -->

                                    </properties>

                                   

                                </persistence-unit>

                            </persistence>