JBoss ON installation fails with "org.hibernate.HibernateException: Dialect class not found"

Solution Verified - Updated -

Issue

  • Receive below error running rhqctl install:
00:12:42,314 ERROR [org.rhq.enterprise.server.installer.Installer] The installer will now exit due to previous errors: java.lang.Exception: Cannot obtain client connection to the RHQ app server!!
  • See below additional error in the log:
02:42:07,370 ERROR [org.rhq.enterprise.server.installer.Installer] The installer will now exit due to previous errors: org.rhq.common.jbossas.client.controller.FailureException: Failed to add new subsystem [rhq-startup]: {"JBAS014671: Failed services" => {"jboss.persistenceunit.\"rhq.ear/rhq-core-domain-ejb3.jar#rhqpu\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"rhq.ear/rhq-core-domain-ejb3.jar#rhqpu\": javax.persistence.PersistenceException: [PersistenceUnit: rhqpu] Unable to build EntityManagerFactory
    Caused by: javax.persistence.PersistenceException: [PersistenceUnit: rhqpu] Unable to build EntityManagerFactory
    Caused by: org.hibernate.HibernateException: Dialect class not found: org.hibernate.dialect.Oracle12cDialect
    Caused by: org.hibernate.service.classloading.spi.ClassLoadingException: Unable to load class [org.hibernate.dialect.Oracle12cDialect]
    Caused by: java.lang.ClassNotFoundException: Could not load requested class : org.hibernate.dialect.Oracle12cDialect"},"JBAS014771: Services with missing/unavailable dependencies" =>

Environment

  • Red Hat JBoss Operations Network (ON) 3.3
  • database properties from the rhq-server.properties file:
#Oracle database
rhq.server.database.connection-url=jdbc:oracle:thin:@servername.com:1521:sid
rhq.server.database.user-name=jonadmin
rhq.server.database.password=479d5d16475af52d086ca8af5e691758
rhq.server.database.type-mapping=Oracle12c
hibernate.dialect=org.hibernate.dialect.Oracle12cDialect
rhq.server.quartz.driverDelegateClass=org.quartz.impl.jdbcjobstore.oracle.OracleDelegate

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content