简体   繁体   中英

error.java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver

I am very new to JAVA webservices. I am creating a soap based webservice in java using apache axis2-1.5.6. I have deployed the service on local machine . Now I want to fetch the data from database. Is there any way to perform the same as I have created the JDBC connection but while creating the connection to the database I am getting the following exception...

error.java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver.

I have placed the sqljdbc.jar file in my WEB-INF but still getting the same error. Please provide me any suggestion what is going wrong with my web service.

将用于连接的jar文件“ sqljdbc4”或“ sqljdbc”添加到axis2主文件夹的lib文件夹中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM