Added connection to conf/server.xml, rebooted, do not see connection

I'm trying to add a Cache connection to the SQL addon.  I initally tried it on the config page in the administration but I kept getting errors.  I decided to try the alternate method and I don't see the connection in the dropdown for the macro edit window.  I restarted the server and still don't see it.

Here is the context section of server.xml

<Context path="" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true">
	<Manager pathname="" />
	<Resource name="jdbc/NewDSN"
		validationQuery="Select 1"/>

2 answers

1 accepted

Okay so I figured it out.

I had to add the connection to the admin interface like below:


Initially I had tried dataSource=jdbc/NewDSN since that was the "name" in the XML file. 

So I realized after you do this you still have to add the connection to the admin interface, which I did. So now it shows up in the dropdown, but when executed it says "jdbc/NewDSN" isn't found.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published 6 hours ago in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

28 views 0 2
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