Confluence - Configure Database



I have a problem. I try configure Confluence, but I don't know what do in step "Configure Database".

I check options "java:comp/env/jdbc/DataSourceName" and "jdbc/DataSourceName". Still I can see this same error:

Setup Datasource Database Failed

The following error(s) occurred:

  • Could not lookup datasource successfully: com.atlassian.config.bootstrap.BootstrapException: Couldn't locate Datasource (java:comp/env/jdbc/) in the initial context. An object was bound to this name but whatever we found, it wasn't a Datasource:

Anyone can help me?

2 answers

0 vote

What database are you trying to connect to, and what connection settings are you giving to Confluence?

  • Did you restart after changing the server.xml file?
  • Can you show us the section of your server.xml file which describes the datasource, after hiding the passwords?

                      Yes, I did  restart server. I use postgresql. database.

                       server.xml :

                       <Resource name="jdbc/confluence" auth="Container" type="javax.sql.DataSource"
                        validationQuery="select 1" />


                       I have file /atlassian/confluence/lib/postgresql-9.2-1004.jdbc4.jar on serer.

                       I add some text on end file /atlassian/confluence/confluence/WEB-INF/web.xml:

        <description>Connection Pool</description>









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
Asked May 24, 2018 in Confluence

What are the resources that you use to learn more about Atlassian Products?

I am gathering information about resources available for Atlassian product knowledge transferring for a presentation in our local Atlassian User Group. I want to group them in four categories From ...

604 views 18 16
View question

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