[ http://jira.jboss.com/jira/browse/JBAS-753?page=comments#action_12312670 ] Scott M Stark commented on JBAS-753: ------------------------------------
Logged In: YES user_id=175228 There would seem to be duplicate sources of the org.gjt.mm.mysql.Driver that are confusing the javax.sql.DriverManager used to load the class. Where is the jdbc driver jar(s) in the configuration you are running? > Driver problem with DatabaseServerloginModule > --------------------------------------------- > > Key: JBAS-753 > URL: http://jira.jboss.com/jira/browse/JBAS-753 > Project: JBoss Application Server > Type: Bug > Components: CMP service > Versions: JBossAS-3.2.6 Final > Reporter: SourceForge User > Assignee: Scott M Stark > > > SourceForge Submitter: svaret . > My application (web app) uses MySQL as a database. I > am also using form-based authentication so that the > web-container will authenticate the user. I use > DatabaseServerLoginModule to retrieve users, roles and > passwords. > Whenever I start my application I always get this error > the first time I try to login. I then try to login again and > then it works fine. It's just the first time. > Best regards /Lasse > Operating system: XP > JDK: 1.4.2 > Server output: > 22:58:44,514 ERROR [DatabaseServerLoginModule] > Query failed > org.jboss.util.NestedSQLException: Apparently wrong > driver class specified for U > RL: class: org.gjt.mm.mysql.Driver, url: > jdbc:mysql://localhost/betservant; - ne > sted throwable: > (org.jboss.resource.JBossResourceException: Apparently > wrong dri > ver class specified for URL: class: > org.gjt.mm.mysql.Driver, url: jdbc:mysql://l > ocalhost/betservant) > at > org.jboss.resource.adapter.jdbc.WrapperDataSource.get > Connection(Wrapp > erDataSource.java:106) > at > org.jboss.security.auth.spi.DatabaseServerLoginModule.g > etUsersPasswor > d(DatabaseServerLoginModule.java:96) > at > org.jboss.security.auth.spi.UsernamePasswordLoginModul > e.login(Usernam > ePasswordLoginModule.java:143) > at sun.reflect.NativeMethodAccessorImpl.invoke0 > (Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke > (NativeMethodAccessorImpl. > java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke > (DelegatingMethodAcces > sorImpl.java:25) > at java.lang.reflect.Method.invoke > (Method.java:324) > at javax.security.auth.login.LoginContext.invoke > (LoginContext.java:675) > at > javax.security.auth.login.LoginContext.access$000 > (LoginContext.java:1 > 29) > at javax.security.auth.login.LoginContext$4.run > (LoginContext.java:610) > at java.security.AccessController.doPrivileged > (Native Method) > at > javax.security.auth.login.LoginContext.invokeModule > (LoginContext.java > :607) > at javax.security.auth.login.LoginContext.login > (LoginContext.java:534) > at > org.jboss.security.plugins.JaasSecurityManager.defaultLo > gin(JaasSecur > ityManager.java:462) > at > org.jboss.security.plugins.JaasSecurityManager.authentic > ate(JaasSecur > ityManager.java:417) > at > org.jboss.security.plugins.JaasSecurityManager.isValid > (JaasSecurityMa > nager.java:244) > at > org.jboss.security.plugins.JaasSecurityManager.isValid > (JaasSecurityMa > nager.java:219) > at > org.jboss.jetty.security.JBossUserRealm$JBossUserPrincip > al.isAuthenti > cated(JBossUserRealm.java:92) > at > org.jboss.jetty.security.JBossUserRealm$JBossUserPrincip > al.authentica > te(JBossUserRealm.java:154) > at > org.jboss.jetty.security.JBossUserRealm.authenticate > (JBossUserRealm.j > ava:323) > at > org.mortbay.jetty.servlet.FormAuthenticator.authenticat > ed(FormAuthent > icator.java:106) > at > org.mortbay.jetty.servlet.ServletHttpContext.jSecurityCh > eck(ServletHt > tpContext.java:121) > at > org.mortbay.jetty.servlet.ServletHttpContext.checkSecur > ityConstraints > (ServletHttpContext.java:137) > at > org.mortbay.jetty.servlet.WebApplicationHandler.dispatch > (WebApplicati > onHandler.java:235) > at org.mortbay.jetty.servlet.ServletHandler.handle > (ServletHandler.java:5 > 58) > at org.mortbay.http.HttpContext.handle > (HttpContext.java:1714) > at > org.mortbay.jetty.servlet.WebApplicationContext.handle > (WebApplication > Context.java:507) > at org.mortbay.http.HttpContext.handle > (HttpContext.java:1664) > at org.mortbay.http.HttpServer.service > (HttpServer.java:863) > at org.jboss.jetty.Jetty.service(Jetty.java:460) > at org.mortbay.http.HttpConnection.service > (HttpConnection.java:775) > at org.mortbay.http.HttpConnection.handleNext > (HttpConnection.java:939) > at org.mortbay.http.HttpConnection.handle > (HttpConnection.java:792) > at > org.mortbay.http.SocketListener.handleConnection > (SocketListener.java: > 201) > at org.mortbay.util.ThreadedServer.handle > (ThreadedServer.java:289) > at org.mortbay.util.ThreadPool$PoolThread.run > (ThreadPool.java:455) > Caused by: org.jboss.resource.JBossResourceException: > Apparently wrong driver cl > ass specified for URL: class: org.gjt.mm.mysql.Driver, > url: jdbc:mysql://localho > st/betservant > at > org.jboss.resource.adapter.jdbc.local.LocalManagedConn > ectionFactory.g > etDriver(LocalManagedConnectionFactory.java:284) > at > org.jboss.resource.adapter.jdbc.local.LocalManagedConn > ectionFactory.c > reateManagedConnection > (LocalManagedConnectionFactory.java:146) > at > org.jboss.resource.connectionmanager.InternalManagedC > onnectionPool.cr > eateConnection > (InternalManagedConnectionPool.java:352) > at > org.jboss.resource.connectionmanager.InternalManagedC > onnectionPool.ge > tConnection(InternalManagedConnectionPool.java:151) > at > org.jboss.resource.connectionmanager.JBossManagedCon > nectionPool$OnePo > ol.getConnection(JBossManagedConnectionPool.java:648) > at > org.jboss.resource.connectionmanager.BaseConnectionM > anager2.getManage > dConnection(BaseConnectionManager2.java:413) > at > org.jboss.resource.connectionmanager.TxConnectionMan > ager.getManagedCo > nnection(TxConnectionManager.java:331) > at > org.jboss.resource.connectionmanager.BaseConnectionM > anager2.allocateC > onnection(BaseConnectionManager2.java:488) > at > org.jboss.resource.connectionmanager.BaseConnectionM > anager2$Connectio > nManagerProxy.allocateConnection > (BaseConnectionManager2.java:798) > at > org.jboss.resource.adapter.jdbc.WrapperDataSource.get > Connection(Wrapp > erDataSource.java:102) > ... 35 more > 22:58:44,514 WARN [JBossUserRealm#null] > authentication failure: java -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
