amber jboss1999 wrote:
If I used provided scope and put the jar back in lib/<subfolder>, I'd get ClassNotFoundException. It's WEIRD.
The driver jar should be in JBOSS_HOME/server/<servername>/lib folder (and not any subfolder).
amber jboss1999 wrote:
. But it's not perfect, b/c jBoss6 is still throwing exceptions, saying "
Caused by: org.jboss.resource.JBossResourceException: Apparently wrong driver class specified for URL: class: net.sourceforge.jtds.jdbc.Driver, url: jdbc:jtds:sqlserver://<server>:<port>;database=<db>".
Please post the entire exception stacktrace and the latest *-ds.xml file that you are using.