hi ramazanyich,
Thanks for your comment.....i have put the jdbc driver in WEB-INF/lib directory
Thanks..!!
Main Topics
Browse All TopicsHello Experts,
i am not able to connect mysql database from my web application using hibernate with Jboss 5.0 Application server....if i use Jboss 4.x ,it is working fine....with Jboss 5.0 it is giving(Could not obtain connection metadata java.sql.SQLException: No suitable driver) following exception..!!
Exception:
15:57:11,622 INFO [Environment] Hibernate 3.3.1.GA
15:57:11,714 INFO [Configuration] configuring from resource: /hibernate.cfg.xml
15:57:11,715 INFO [Configuration] Configuration resource: /hibernate.cfg.xml
15:57:11,731 INFO [Configuration] Reading mappings from resource : eaft/admanagement/hibernat
15:57:11,801 INFO [HbmBinder] Mapping class: eaft.admanagement.hibernat
15:57:11,826 INFO [Configuration] Reading mappings from resource : eaft/admanagement/hibernat
15:57:11,852 INFO [HbmBinder] Mapping class: eaft.admanagement.hibernat
15:57:11,853 INFO [Configuration] Reading mappings from resource : eaft/admanagement/hibernat
15:57:11,874 INFO [HbmBinder] Mapping class: eaft.admanagement.hibernat
15:57:11,944 INFO [Configuration] Reading mappings from resource : eaft/admanagement/hibernat
15:57:11,953 INFO [HbmBinder] Mapping class: eaft.admanagement.hibernat
15:57:11,954 INFO [Configuration] Reading mappings from resource : eaft/admanagement/hibernat
15:57:12,048 INFO [HbmBinder] Mapping class: eaft.admanagement.hibernat
15:57:12,049 INFO [Configuration] Reading mappings from resource : eaft/admanagement/hibernat
15:57:12,063 INFO [HbmBinder] Mapping class: eaft.admanagement.hibernat
15:57:12,073 INFO [Configuration] Reading mappings from resource : eaft/admanagement/hibernat
15:57:12,089 INFO [HbmBinder] Mapping class: eaft.admanagement.hibernat
15:57:12,090 INFO [Configuration] Reading mappings from resource : eaft/admanagement/hibernat
15:57:12,137 INFO [HbmBinder] Mapping class: eaft.admanagement.hibernat
15:57:12,138 INFO [Configuration] Reading mappings from resource : eaft/admanagement/hibernat
15:57:12,148 INFO [HbmBinder] Mapping class: eaft.admanagement.hibernat
15:57:12,149 INFO [Configuration] Reading mappings from resource : eaft/admanagement/hibernat
15:57:12,165 INFO [HbmBinder] Mapping class: eaft.admanagement.hibernat
15:57:12,167 INFO [Configuration] Configured SessionFactory: null
15:57:12,169 INFO [HbmBinder] Mapping collection: eaft.admanagement.hibernat
15:57:12,170 INFO [HbmBinder] Mapping collection: eaft.admanagement.hibernat
15:57:12,170 INFO [HbmBinder] Mapping collection: eaft.admanagement.hibernat
15:57:12,170 INFO [HbmBinder] Mapping collection: eaft.admanagement.hibernat
15:57:12,174 INFO [HbmBinder] Mapping collection: eaft.admanagement.hibernat
15:57:12,175 INFO [HbmBinder] Mapping collection: eaft.admanagement.hibernat
15:57:12,175 INFO [HbmBinder] Mapping collection: eaft.admanagement.hibernat
15:57:12,175 INFO [HbmBinder] Mapping collection: eaft.admanagement.hibernat
15:57:12,175 INFO [HbmBinder] Mapping collection: eaft.admanagement.hibernat
15:57:12,175 INFO [HbmBinder] Mapping collection: eaft.admanagement.hibernat
15:57:12,175 INFO [HbmBinder] Mapping collection: eaft.admanagement.hibernat
15:57:12,175 INFO [HbmBinder] Mapping collection: eaft.admanagement.hibernat
15:57:12,330 INFO [DriverManagerConnectionPr
15:57:12,330 INFO [DriverManagerConnectionPr
15:57:12,330 INFO [DriverManagerConnectionPr
15:57:12,334 INFO [DriverManagerConnectionPr
15:57:12,334 INFO [DriverManagerConnectionPr
15:57:12,335 WARN [SettingsFactory] Could not obtain connection metadata
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.get
at java.sql.DriverManager.get
at org.hibernate.connection.D
at org.hibernate.cfg.Settings
at org.hibernate.cfg.Configur
at org.hibernate.cfg.Configur
at org.apache.jsp.JSP.Home.Us
at org.apache.jasper.runtime.
at javax.servlet.http.HttpSer
at org.apache.jasper.servlet.
at org.apache.jasper.servlet.
at org.apache.jasper.servlet.
at javax.servlet.http.HttpSer
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.jboss.web.tomcat.filte
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.jboss.web.tomcat.secur
at org.jboss.web.tomcat.secur
at org.jboss.web.tomcat.secur
at org.jboss.web.tomcat.secur
at org.apache.catalina.core.S
at org.apache.catalina.valves
at org.jboss.web.tomcat.servi
at org.apache.catalina.core.S
at org.apache.catalina.connec
at org.apache.coyote.http11.H
at org.apache.coyote.http11.H
at org.apache.tomcat.util.net
at java.lang.Thread.run(Threa
15:57:12,366 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQ
15:57:12,374 INFO [TransactionFactoryFactory
15:57:12,377 INFO [TransactionManagerLookupF
15:57:12,378 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
15:57:12,378 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
15:57:12,380 INFO [SettingsFactory] Scrollable result sets: disabled
15:57:12,380 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
15:57:12,380 INFO [SettingsFactory] Connection release mode: auto
15:57:12,381 INFO [SettingsFactory] Maximum outer join fetch depth: 2
15:57:12,382 INFO [SettingsFactory] Default batch fetch size: 1
15:57:12,382 INFO [SettingsFactory] Generate SQL with comments: disabled
15:57:12,382 INFO [SettingsFactory] Order SQL updates by primary key: disabled
15:57:12,382 INFO [SettingsFactory] Order SQL inserts for batching: disabled
15:57:12,382 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQ
15:57:12,387 INFO [ASTQueryTranslatorFactory
15:57:12,387 INFO [SettingsFactory] Query language substitutions: {}
15:57:12,387 INFO [SettingsFactory] JPA-QL strict compliance: disabled
15:57:12,387 INFO [SettingsFactory] Second-level cache: enabled
15:57:12,387 INFO [SettingsFactory] Query cache: disabled
15:57:12,387 INFO [SettingsFactory] Cache region factory : org.hibernate.cache.impl.N
15:57:12,388 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
15:57:12,388 INFO [SettingsFactory] Structured second-level cache entries: disabled
15:57:12,396 INFO [SettingsFactory] Statistics: disabled
15:57:12,396 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
15:57:12,396 INFO [SettingsFactory] Default entity-mode: pojo
15:57:12,396 INFO [SettingsFactory] Named query checking : enabled
15:57:12,449 INFO [SessionFactoryImpl] building session factory
15:57:12,777 INFO [SessionFactoryObjectFacto
15:57:12,834 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: 08001
15:57:12,835 ERROR [JDBCExceptionReporter] No suitable driver
15:57:12,838 ERROR [STDERR] org.hibernate.exception.JD
at org.hibernate.exception.SQ
at org.hibernate.exception.JD
at org.hibernate.exception.JD
at org.hibernate.jdbc.Connect
at org.hibernate.jdbc.Connect
at org.hibernate.jdbc.JDBCCon
at org.hibernate.transaction.
at org.hibernate.impl.Session
at org.apache.jsp.JSP.Home.Us
at org.apache.jasper.runtime.
at javax.servlet.http.HttpSer
at org.apache.jasper.servlet.
at org.apache.jasper.servlet.
at org.apache.jasper.servlet.
at javax.servlet.http.HttpSer
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.jboss.web.tomcat.filte
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.jboss.web.tomcat.secur
at org.jboss.web.tomcat.secur
at org.jboss.web.tomcat.secur
at org.jboss.web.tomcat.secur
at org.apache.catalina.core.S
at org.apache.catalina.valves
at org.jboss.web.tomcat.servi
at org.apache.catalina.core.S
at org.apache.catalina.connec
at org.apache.coyote.http11.H
at org.apache.coyote.http11.H
at org.apache.tomcat.util.net
at java.lang.Thread.run(Threa
Caused by: java.sql.SQLException: No suitable driver
at java.sql.DriverManager.get
at java.sql.DriverManager.get
at org.hibernate.connection.D
at org.hibernate.jdbc.Connect
... 31 more
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: ramazanyichPosted on 2009-10-23 at 08:50:24ID: 25645588
where did you put your mysql jdbc driver ?