0

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.

3
  • 1
    If you're using an Apache connection pool you need to put it into the container's lib directory, not your own. Commented Apr 29, 2014 at 5:47
  • Have u copied jar in WEB-INF or WEB-INF/lib? Commented Apr 29, 2014 at 5:51
  • I kept it in WEB-INF/lib and not its working Thanks. Commented Apr 30, 2014 at 7:25

1 Answer 1

3

Add the jar file used for the connection, 'sqljdbc4' or 'sqljdbc' inside the lib folder of the axis2 home folder.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.