hi,
I have set up and install jBPM 7 to use Oracle database but it doesn't seem to work. The KIE workbench starts up and I can login but when trying to access the Task or Process Instances pages, I get the following exception:
"Unable to complete your request. The following exception occurred: Can't lookup on specified data set: jbpmHumanTasksWithUser."
The strange thing is that no tables are created in the Oracle database during installation (I did not run the SQL script manually).
Also, the log file has an exception that seems to refer to H2:
2017-07-10 09:28:23,660 INFO [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 75) HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2017-07-10 09:28:23,667 WARN [org.hibernate.dialect.H2Dialect] (ServerService Thread Pool -- 75) HHH000431: Unable to determine H2 database version, certain features may not work
2017-07-10 09:28:27,121 WARN [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (ServerService Thread Pool -- 75) SQL Error: 936, SQLState: 42000
2017-07-10 09:28:27,122 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (ServerService Thread Pool -- 75) ORA-00936: missing expression
2017-07-10 09:28:27,127 ERROR [org.kie.server.services.impl.KieServerImpl] (ServerService Thread Pool -- 75) Error when initializing server extension of type jBPM KIE Server extension: java.lang.RuntimeException: Unable to create EntityManagerFactory due to [PersistenceUnit: org.jbpm.domain] Unable to build Hibernate SessionFactory
at org.kie.server.services.jbpm.JbpmKieServerExtension.build(JbpmKieServerExtension.java:701)
at org.kie.server.services.jbpm.JbpmKieServerExtension.init(JbpmKieServerExtension.java:186)
... more
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: org.jbpm.domain] Unable to build Hibernate SessionFactory
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.persistenceException(EntityManagerFactoryBuilderImpl.java:953)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:883)
at org.hibernate.jpa.HibernatePersistenceProvider.createContainerEntityManagerFactory(HibernatePersistenceProvider.java:135)
at org.kie.server.services.jbpm.JbpmKieServerExtension.build(JbpmKieServerExtension.java:699)
Caused by: org.hibernate.exception.SQLGrammarException: Unable to build DatabaseInformation
at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:63)
at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:42)
Caused by: java.sql.SQLSyntaxErrorException: ORA-00936: missing expression
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:445)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
I am pretty confident I have configured Oracle properly as below:
In build.properties:
db.driver.module.prefix=com/oracle
(and commented out the H2 entries)
In jbpm-persistence-JPA2.xml:
<property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect" />
In standalone-full-wildfly-10.1.0.Final.xml:
<datasource pool-name='OracleDS' use-java-context='true' use-ccm='true' enabled='true' jta='true' jndi-name='java:jboss/datasources/jbpmDS'>
<connection-url>jdbc:oracle:thin:@<HOST>:<PORT>:<SID></connection-url>
<driver>oracle</driver>
<security>
<user-name>username</user-name>
<password>password</password>
</security>
</datasource>
<drivers>
<driver name="oracle" module="com.oracle"></driver>
</drivers>