Okay I have a couple of problems. I'm running on JBoss 5.0.0-CR1, MS-Windows XP SP 3.
My apps use Spring and iBATIS.
I had to switch from a local data source definition (which was working) to a JNDI
container based definition to get the connection pooling. The problem is JBoss keeps
deploying my applications before the data source which causes the app to crash because it
can't find the data source. There must be some way to control this. The only way I
can get the app to deploy after the data source is to un-deploy the app and the restart
the server and after the data source loads redeploy the app.
The next issue is if I do the above to get the app deployed I then get this weird error:
00:29:02,062 WARN [JBossManagedConnectionPool] Throwable while attempting to get a new
connection: null org.jboss.resource.JBossResourceException: Could not create connection; -
nested throwable: (org.jboss.resource.JBossResourceException: Apparently wrong driver
class specified for URL: class: com.mysql.jdbc.Driver, url:
jdbc:mysql://localhost:3306/photosite)
I'm using mysql-connector-java-5.1.6-bin.jar which is the latest, I've got it
inside of the apps WEB-INF\lib directory. I was using the 5.0 driver but got the same
error so I upgraded in hopes the error would go away.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172626#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...