Computernerd
Computernerd

Reputation: 7766

Cannot load driver: com.microsoft.sqlserver.jdbc.SQLServerDriver weblogic 12C

I have a weblogic 12C server which is trying to connect to a MSSQL 2014 DB. I encountered the following issue :

Cannot load driver: com.microsoft.sqlserver.jdbc.SQLServerDriver

I have already check the following solution

The suggested solution does not apply to me as in D:\wls12210\wlserver\common\bin, it does not contain the commEnv.cmd file for me to add the new classpath in.

A look at the documentation suggests Edit the commEnv.cmd/sh script in WL_HOME/common/bin which is the same as the suggest solution

Where is the misssing commEnv.cmdin weblogic 12c ??

Upvotes: 2

Views: 2231

Answers (1)

asboree
asboree

Reputation: 89

From weblogic 1221 documentation here :

To use third-party JDBC drivers that are not installed with WebLogic Server, you can add them to the DOMAIN_HOME/lib directory, where DOMAIN_HOME represents the directory in which the WebLogic Server domain is configured. The default path is ORACLE_HOME/user_projects/domains. For more information, see "Adding JARs to the Domain /lib Directory" in Developing Applications for Oracle WebLogic Server.

Please try as mentioned. I assumed you are using version weblogic 12.2.1 based on the directory structure in the post. When searching for anything in weblogic documentation, I usually search with weblogic version in the search query so it may take you to relevant weblogic documentation(obviously oracle has documentation for several versions). In this case I'm not sure if anything has changed between the versions, but anyway its a good thing to use the version in search query first.

Upvotes: 2

Related Questions