SQL Server Database Connection URL Syntax is Invalid
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
When configuring JIRA with Microsoft SQL Server the following error is thrown:
1
2
3
4
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (The syntax of the connection URL 'jdbc:jtds:sqlserver//localhost:1433/jiradb' is invalid.)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
at org.ofbiz.core.entity.transaction.JNDIFactory.getJndiConnection(JNDIFactory.java:168)
Cause
The connection string is in an invalid format:
1
url="jdbc:jtds:sqlserver//localhost:1433/jiradb"
Note the missing colon ( : ) between sqlserver//
Resolution
The connection string should be of format:
1
url="jdbc:jtds:sqlserver://localhost:1433/jiradb"
Was this helpful?