<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>KB-1291 "Could not find driver for SQL Server... java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver" error thrown when adding a data source in the Admin Console with WebLogic as the application server</title><link>https://community.appian.com/support/w/kb/499/kb-1291-could-not-find-driver-for-sql-server-java-lang-classnotfoundexception-com-microsoft-sqlserver-jdbc-sqlserverdriver-error-thrown-when-adding-a-data-source-in-the-admin-console-with-weblogic-as-the-application-server</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1291 "Could not find driver for SQL Server... java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver" error thrown when adding a data source in the Admin Console with WebLogic as the application server</title><link>https://community.appian.com/support/w/kb/499/kb-1291-could-not-find-driver-for-sql-server-java-lang-classnotfoundexception-com-microsoft-sqlserver-jdbc-sqlserverdriver-error-thrown-when-adding-a-data-source-in-the-admin-console-with-weblogic-as-the-application-server</link><pubDate>Mon, 23 Jul 2018 17:39:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f5636faf-d527-4929-acbd-65f79bf87c2b</guid><dc:creator>Jordan Horwat</dc:creator><comments>https://community.appian.com/support/w/kb/499/kb-1291-could-not-find-driver-for-sql-server-java-lang-classnotfoundexception-com-microsoft-sqlserver-jdbc-sqlserverdriver-error-thrown-when-adding-a-data-source-in-the-admin-console-with-weblogic-as-the-application-server#comments</comments><description>Current Revision posted to Appian Knowledge Base by Jordan Horwat on 7/23/2018 5:39:58 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;When attempting to add a SQL Server data source through the Admin Console, testing the connection fails, and the following error is printed in the application server log:&lt;/p&gt;
&lt;pre&gt;ERROR com.appiancorp.rdbms.datasource.DataSourceFactory - Could not find driver for SQL Server
java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:357)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:318)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:186)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:264)
    at com.appiancorp.rdbms.datasource.DataSourceFactory.getDriverClass(DataSourceFactory.java:65)
    at com.appiancorp.rdbms.datasource.DataSourceFactory.create(DataSourceFactory.java:50)
    at com.appiancorp.rdbms.datasource.TeneoDataSourceValidator.testDataSourceConnection(TeneoDataSourceValidator.java:59)
    at com.appiancorp.expression.plugin.DataSourceFunctions.testDataSource_appian_internal(DataSourceFunctions.java:150)
...
&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;Weblogic cannot locate the appropriate SQL Server JDBC driver needed to connect to the database.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Download the appropriate SQL Server JDBC driver.&lt;/li&gt;
&lt;li&gt;Place the &lt;strong&gt;sqljdbc*.jar&lt;/strong&gt; file (e.g., &lt;strong&gt;sqljdbc4.jar&lt;/strong&gt;) in the &lt;code&gt;&amp;lt;WEBLOGIC_HOME&amp;gt;/user_projects/domains/base_domain/lib&lt;/code&gt; directory.&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;li&gt;Try adding the data source again.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to Appian 16.1 and later using WebLogic as the application server.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;March 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: weblogic, database, admin console, infrastructure&lt;/div&gt;
</description></item><item><title>KB-1291 "Could not find driver for SQL Server... java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver" error thrown when adding a data source in the Admin Console with WebLogic as the application server</title><link>https://community.appian.com/support/w/kb/499/kb-1291-could-not-find-driver-for-sql-server-java-lang-classnotfoundexception-com-microsoft-sqlserver-jdbc-sqlserverdriver-error-thrown-when-adding-a-data-source-in-the-admin-console-with-weblogic-as-the-application-server/revision/1</link><pubDate>Tue, 07 Mar 2017 16:13:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f5636faf-d527-4929-acbd-65f79bf87c2b</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/499/kb-1291-could-not-find-driver-for-sql-server-java-lang-classnotfoundexception-com-microsoft-sqlserver-jdbc-sqlserverdriver-error-thrown-when-adding-a-data-source-in-the-admin-console-with-weblogic-as-the-application-server#comments</comments><description>Revision 1 posted to Appian Knowledge Base by Nick Vigilante on 3/7/2017 4:13:31 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;When attempting to add a SQL Server data source through the Admin Console, testing the connection fails, and the following error is printed in the application server log:&lt;/p&gt;
&lt;pre&gt;ERROR com.appiancorp.rdbms.datasource.DataSourceFactory - Could not find driver for SQL Server
java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:357)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:318)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:186)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:264)
    at com.appiancorp.rdbms.datasource.DataSourceFactory.getDriverClass(DataSourceFactory.java:65)
    at com.appiancorp.rdbms.datasource.DataSourceFactory.create(DataSourceFactory.java:50)
    at com.appiancorp.rdbms.datasource.TeneoDataSourceValidator.testDataSourceConnection(TeneoDataSourceValidator.java:59)
    at com.appiancorp.expression.plugin.DataSourceFunctions.testDataSource_appian_internal(DataSourceFunctions.java:150)
...
&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;Weblogic cannot locate the appropriate SQL Server JDBC driver needed to connect to the database.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Download the appropriate SQL Server JDBC driver.&lt;/li&gt;
&lt;li&gt;Place the &lt;strong&gt;sqljdbc*.jar&lt;/strong&gt; file (e.g., &lt;strong&gt;sqljdbc4.jar&lt;/strong&gt;) in the &lt;code&gt;&amp;lt;WEBLOGIC_HOME&amp;gt;/user_projects/domains/base_domain/lib&lt;/code&gt; directory.&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;li&gt;Try adding the data source again.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to Appian 16.1 and later using WebLogic as the application server.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;March 2017&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: weblogic, database, admin console&lt;/div&gt;
</description></item></channel></rss>