Jsp-java.lang.classnotfoundexception:com.microsoft.sqlserver.jdbc.sqlserverdriver

Source: Internet
Author: User

Using a JSP to connect to a database is not so easy, it is normal to connect to SQL Server 2008 using pure Java, but always error classnotfoundexception when using JSP calls. Very depressed jar driver package that's the way it is.

  • (x) CSDN blog A netizen said to change the driver and URL to 4.0 jar driver, or not, I even modified to 4.1 of the jar driver. also always error.
  • (x) Online Netizen said to copy the Sqljdbc_auth.dll to C:\Windows\System32 , or not.
  • (x) Then I thought it was the JDK version difference that would affect, I changed the JDK, or not.
  • (x) then put the jar4.1 driver package under the Web under the Web-inf Lib, also not.
  • (√) Finally put the driver package under the Jdk1.7.0_17\jre\lib\ext, if successful, csdn really experienced buddies.

After the test was successful, I removed the sqljdbc_auth.dll from the C:\Windows\System32 and removed the jar driver package from the Web-inf lib. and modify the jar4.1 as the normal jar package, the operation is normal.

Jsp-java.lang.classnotfoundexception:com.microsoft.sqlserver.jdbc.sqlserverdriver

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.