It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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 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 May 27, 2012

Nic is right: GalaxyDevDB != GalaxyDevDS.

Sumit Kumar Feb 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 Feb 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 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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Marketplace Apps & Integrations

Demo Den Ep. 4: Continuous Integration with CircleCI & Jira Software

Get ready! Demo Den Episode 4 is coming your way on Tuesday, May 28, 2018 with a Continuous Integration and Delivery special demo. CircleCI Director of Solutions Engineering, Eddie Webb will show us ...

449 views 0 4
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you