[Database Custom Field] Connecting to JIRA Database

Hi! I've been trying to use the Database Custom Field plugin to connect to my own JIRA database, with no success. Is there anything I might be missing to make it work?

Here's what I've put in context.xml:

<Resource name="jdbc/defaultDS"
          auth="Container" type="javax.sql.DataSource"
          username="sa"
          password=""
          driverClassName="org.hsqldb.jdbcDriver"
          url="jdbc:hsqldb://localhost:2990/jiradb;create=true;"
 />

The JIRA log tells:

Database JNDI >>jdbc/defaultDS<<, error obtaining connection

I haven't changed the default username or password, since this is just testing. Any other databases work with no problems.

What is wrong?

1 answer

1 accepted

Hi Guilherme,

You can see the Jira database configuration in the dbconfig.xml file from Jira's home directory.

You should copy the connection url from there.

It should be of form: jdbc:hsqldb:<jira_home_path>/database/jiradb .

Kind Regards,

Alex

I was trying to avoid using an address from the PC itself and insisting with localhost, but that really doesn't seem to be working. Oh well, this did it, thank you.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

148 views 1 10
Read article

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