Confluence 4.0 - Error when configuring the legacy JIRA database connector

I am trying to configure confluence 4.0 to use our existing JIRA installation (version 4.2.2) for user managment. I'm following the instructions on this page:

In step #5 I hit the 'Test Settings' button and get the following error message:

Connection test failed. Response from the server:
org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL grammar [select count(*) from userbase]; nested exception is java.sql.SQLException: Invalid object name 'userbase'.

This message looks like it is connecting OK to my JiraDS datasource (which is SQL Server 2005) but can't find the object 'userbase'. I've check the SQL server database and the table userbase exists under the schema 'jiraschema'.

Anybody have an idea of what might be wrong?

1 answer

1 accepted

0 votes
Accepted answer

Hi Ray,

It looks most likely to be an issue with the schema names being inconsistent between Confluence and JIRA configuration files.

As per the article:

  1. In JIRA, check atlassian-jira/WEB-INF/classes/entity-engines.xml. Note the schema name. It is likely 'jiraschema'.
  2. In Confluence, check conf/server.xml. Notice the schema name.
  3. In SQL Server, check the schema name. It may be 'dbo' or other.

To fix:

Change the schema in SQL Server to match the settings in server.xml and entity-engines.xml

Hope this helps.


Vincent Choy

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

118 views 3 4
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you