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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
is it necessary to define JNDI in context.xml, can't we have it inside server.xml file ?
Thanks,
Sumit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes! I see now! Thank you so much! Now it works well!
Best Regards,
Milan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you like it and find it useful, don't forget to vote it :). Also, you should mark as accepted the above answer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.