Database Custom Field plugin database connection

Hi,

I have a problem with configuring database connection for Database Custom Field plugin. The following messages I can read in log file:

2012-05-25 17:11:49,548 http-8080-1 ERROR milanrusek 1031x273x1 zsddas 85.71.97.86 /browse/BS-7935 [commons.jira.kconfig.PluginConfiguration] Database JNDI >>GalaxyDevDS<< is not defined
2012-05-25 17:11:49,549 http-8080-1 ERROR milanrusek 1031x273x1 zsddas 85.71.97.86 /browse/BS-7935 [databasecf.querydb.impl.QueryDatabaseImpl] Not connected. Possible database misconfiguration ?
2012-05-25 17:11:49,549 http-8080-1 ERROR milanrusek 1031x273x1 zsddas 85.71.97.86 /browse/BS-7935 [databasecf.querydb.impl.QueryDatabaseImpl] Could not execute SQL query >>SELECT 1<< on database GalaxyDevDS.
java.sql.SQLException: Not connected. Possible database misconfiguration ?

I set up configuration conform to the plugin's specification for MySQL. In conf/context.xml I have written:

<Resource name="GalaxyDevDB"
          auth="Container" type="javax.sql.DataSource"
          username="login"
          password="******"
          driverClassName="com.mysql.jdbc.Driver"
          url="jdbc:mysql://127.0.0.1:3306/galaxy"
/>

I am using JIRA version 5.0 (build 713).

Could you help me, please!

Best Regards,

Milan

2 answers

1 accepted

4 votes
Accepted answer

Check your spelling? Resource name and the error in the log do not match, so you've got two different names in the two areas you need to configure...

Nic is right: GalaxyDevDB != GalaxyDevDS.

is it necessary to define JNDI in context.xml, can't we have it inside server.xml file ?

 

Thanks,

Sumit

You could put it in the server.xml file, if I understand correctly, but you still have to refer to it in the context.xml.  So you might as well do it all in there.

 

Yes! I see now! Thank you so much! Now it works well!

Best Regards,

Milan

If you like it and find it useful, don't forget to vote it :). Also, you should mark as accepted the above answer.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in Marketplace Apps

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,307 views 0 8
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