i had created my J2EE application with appfuse , i want to save some data to database but the problem in hibernante configuration ,this is the exception:
WARN [http-8080-1] ConnectionProviderInitiator.initiateService(143) | HHH000181: No appropriate connection provider encountered, assuming application will be supplying connections juin 07, 2013 5:16:05 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet faces threw exception org.hibernate.HibernateException: Connection cannot be null when 'hibernate.dialect' not set
and this is database configuration in pom.xml :
<dbunit.dataTypeFactoryName>org.dbunit.ext.mysql.MySqlDataTypeFactory</dbunit.dataTypeFactoryName>
<dbunit.operation.type>CLEAN_INSERT</dbunit.operation.type>
<hibernate.dialect>org.hibernate.dialect.MySQL5InnoDBDialect</hibernate.dialect>
<jdbc.groupId>mysql</jdbc.groupId>
<jdbc.artifactId>mysql-connector-java</jdbc.artifactId>
<jdbc.version>5.1.22</jdbc.version>
<jdbc.driverClassName>com.mysql.jdbc.Driver</jdbc.driverClassName>
<!-- <jdbc.url>jdbc:mysql://localhost/${db.name}?createDatabaseIfNotExist=true&amp;useUnicode=true&amp;characterEncoding=utf-8&amp;autoReconnect=true</jdbc.url> -->
<jdbc.url>jdbc:mysql://localhost/castor</jdbc.url>
<jdbc.username>root</jdbc.username>
<jdbc.password></jdbc.password>
and if i configure the file hibernate.cfg.xml the server can't start:
<hibernate-configuration>
<session-factory>
<mapping class="org.appfuse.model.Role"/>
<mapping class="com.geviteam.castor.webapp.model.TrajetModel"/>
</session-factory>
</hibernate-configuration>