JBoss problem class not found
rino.covelli Aug 20, 2012 9:57 AMdear friends,
I' m developing the my firts enterpise application (with eclipse Indigo and Jboss 7.1 ) in wich i added a ejb module and a web module, now i put the file persistance.xml
<?xml version="1.0" encoding="UTF-8"?> <persistence> <persistence-unit name="jpa3"> <provider>org.hibernate.ejb.HibernatePersistence</provider> <class>pojo.Accordo</class> <class>pojo.Azienda</class> <class>pojo.Categoria</class> <class>pojo.Cliente</class> <class>pojo.Ingrediente</class> <class>pojo.ItemOrdinazione</class> <class>pojo.MenuFisso</class> <class>pojo.Pietanza</class> <class>pojo.Prenotazione</class> <class>pojo.Privato</class> <exclude-unlisted-classes>false</exclude-unlisted-classes> <properties> <!-- <property name="hibernate.connection.url" value="jdbc:mysql://192.168.10.146:3306/jpaExamples"/> <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/> <property name="hibernate.connection.password" value="root"/> <property name="hibernate.connection.username" value="root"/> <property name="hibernate.show_sql" value="true"/> <property name="hibernate.format_sql" value="true"/> --> <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/> <property name="hibernate.connection.url" value="jdbc:postgresql://localhost/DBRistorante"/> <property name="hibernate.connection.username" value="postgres"/> <property name="hibernate.connection.password" value="test"/> <property name="hibernate.connection.driver_class" value="org.postgresql.Driver"/> <property name="hibernate.show_sql" value="true"/> <property name="hibernate.hbm2ddl.auto" value="create-drop"/> </properties>
inside the folder META-INF in the ejb module ,but when deploy my appplication i get this error
Caused by: org.hibernate.HibernateException: Specified JDBC Driver org.postgresql.Driver class not found