Database Custom Field plugin database connection

Milan Rusek May 27, 2012

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
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 27, 2012

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...

Radu Dumitriu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 27, 2012

Nic is right: GalaxyDevDB != GalaxyDevDS.

Sumit Kumar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 15, 2016

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

 

Thanks,

Sumit

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 15, 2016

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.

 

0 votes
Milan Rusek May 27, 2012

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

Best Regards,

Milan

Radu Dumitriu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 27, 2012

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
TAGS
AUG Leaders

Atlassian Community Events