Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

java.sql.SQLException: No suitable driver found for jdbc:sqlserver://...

RambanamP
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.
August 2, 2011

Hi,

I am trying to access external database(sqlserver2005) from plugin for athis i placed sqljdbc4.jar under WEB-INF/lib folder it is worked good in jira 4.0.

where as it is not working in jira 4.4, even i tried by adding jtds-1.2.5.jar but no use it is throwing java.sql.SQLException: No suitable driver found for jdbc:sqlserver:... exception.

ps let me know which version or jar i have to add.

Thanks

Prasad

3 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
RambanamP
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, 2013

I can able to intract with external Database by configuring JNDI in server.xml

1 vote
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.
August 2, 2011

As per the instructions at http://confluence.atlassian.com/display/JIRA/Connecting+JIRA+to+SQL+Server+2005 the driver needs to go in the lib directory for TOMCAT, not Jira.

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.
August 2, 2011

Please read the bit I put in bold properly.

If I'd meant jira home, I'd have said jira home. If I meant the jira lib directory, I'd have put the jira lib directory

RambanamP
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.
August 2, 2011

Hi Nick,

You mean jira home/lib folder? if it is yes then i tried by placing jars there also but no use getting same error :(

thanks for ur quick response

Prasad

RambanamP
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.
August 2, 2011

Nick,

I placed jar under ...\Atlassian4.4\JIRA 4.4\lib, if it is wrong please let me know the path of TOMCAT lib directory

Thanks

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.
August 2, 2011

That might be the right place, but it depends on how you installed Jira.

If you used a WAR/EAR build, then you should really know the structure of your own Tomcat/other-app-server

But it sounds like you used Jira Standalone, so I think that's the right place - to check, can you confirm the lib directory had other files in there already? Check the ownership and permissions on the database .jar file are the same as the other .jar files that are already in there.

Also, is it definitely the right jar? You downloaded it directly, and you didn't use IE (which does stupid things with file names)

RambanamP
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.
August 2, 2011

yes, i installed standalone jira on windows.

The lib directory already have some jars appart from those jars i added my jar also and ownership also same as other jars.

and i am tested by using chrome aswell Firefox, and sql jar downloaded using firefox

thanks

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.
August 2, 2011

Ok, that's all good, except that it means I'm struggling to work out what's wrong. (I've got a windows install on hand, just dropped that .jar into it and restarted and it's worked fine!).

Could you open it with a zip program and check it really is a proper .jar file? (Check one of the others if you don't know what the structure should be). Also, in Jira, can you check the Admin -> System Info for class paths, loaded libraries etc - there may be a clue there.

0 votes
RambanamP
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.
August 17, 2011

I can able to intract with external database from type one plugin where as not able to get connection from type to plugin getting java.sql.SQLException: No suitable driver found for jdbc:sqlserver... exception

TAGS
AUG Leaders

Atlassian Community Events