a small error in configuring hibernate

This is a discussion on a small error in configuring hibernate within the J2EE forums in Framework and Interface Programming category; here is the following code i get these error mysql database is not been reconsied could any one help me <?xml version='1.0' encoding='utf-8'?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory name="SessionFactory"> <property name="hibernate.connection.driver_class">com.**mys ql.jdbc.Drive*r*</property> <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/dinesh </property> <property name="hibernate.connection.username">root</property> <property name="hibernate.connection.password">cmc</property> <property name="hibernate.connection.pool_size">10</property> <property name="dialect">org.hibernate.dialect.MySQLDialect</property> <property name="hibernate.hbm2ddl.auto">update</property> <mapping resource="contact.hbm.xml"/> </session-factory> </hibernate-configuration> the error is C:\Documents and Settings\cmc1\IdeaProjects\ramki\src\hibernate.cfg .xml Error:Error:line (7)Cannot resolve class 'Driver'. Error:Error:line (7)Cannot resolve class or java package 'jdbc'. Error:Error:line (7)Cannot resolve class or java package 'mysql'....

Go Back   Application Development Forum > Framework and Interface Programming > J2EE

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 04-30-2008, 08:54 AM
dineshkumar
Guest
 
Default a small error in configuring hibernate

here is the following code i get these error mysql database is not been reconsied could any one help me
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory name="SessionFactory">
<property name="hibernate.connection.driver_class">com.**mys ql.jdbc.Drive*r*</property>

<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/dinesh
</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password">cmc</property>
<property name="hibernate.connection.pool_size">10</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<mapping resource="contact.hbm.xml"/>
</session-factory>
</hibernate-configuration>
the error is

C:\Documents and Settings\cmc1\IdeaProjects\ramki\src\hibernate.cfg .xml
Error:Error:line (7)Cannot resolve class 'Driver'.
Error:Error:line (7)Cannot resolve class or java package 'jdbc'.
Error:Error:line (7)Cannot resolve class or java package 'mysql'.
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 04:47 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.