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.


Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.