Question : JBoss ClassNotFoundException: com.microsoft.sqlserver.jd<wbr />bc.SQLServ<wbr />erDriver

I am unabel to connect to a SQK server 2005 database

I have deployed datasource using mssqlds.xml in jboss/server/default/deploy

sqljdbc.jar has been placed in jboss/server/default/lib directory

driver class is com.microsoft.sqlserver.jdbc.SQLServerDriver. However then i run it i get

2009-07-23 16:35:11,859 || ERROR || Error: Could not create connection; - nested throwable: (org.jboss.resource.JBossResource
Exception: Failed to register driver for: com.microsoft.sqlserver.jdbc.SQLServerDriver; - nested throwable: (java.lang.ClassN
otFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver)); - nested throwable: (org.jboss.resource.JBossResourceExcept
ion: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver f
or: com.microsoft.sqlserver.jdbc.SQLServerDriver; - nested throwable: (java.lang.ClassNotFoundException: com.microsoft.sqlser
ver.jdbc.SQLServerDriver)))

any ideas?

Answer : JBoss ClassNotFoundException: com.microsoft.sqlserver.jd<wbr />bc.SQLServ<wbr />erDriver

I hope your Classpath Variables are not set and Drivers are not registered as your error says "Failed to register driver for: com.microsoft.sqlserver.jdbc.SQLServerDriver"

Follow this Microsoft support on how to set Classpath Variables and How to register your Server.

http://support.microsoft.com/kb/313100

Hope this helps
Random Solutions  
 
programming4us programming4us