'ClassCastException org.objectweb.jotm.Current cannot be cast to javax.sql.DataSource' when Starting JIRA
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
Runtime exception checking for database driver correctness:
1
java.lang.ClassCastException: org.objectweb.jotm.Current cannot be cast to javax.sql.DataSource
Cause
The file entityengine.xml is not properly configured. You may have specified the JNDI address for UserTransaction instead of the JNDI address for the data source (jdbc/JiraDS).
Resolution
Make sure you have only changed the parts of the entityengine.xml file specified in the appropriate directions for connecting Jira to an external database.
Was this helpful?