[jboss-user] [Beginner's Corner] - JBoss problem class not found

Liberino Covelli do-not-reply at jboss.com
Mon Aug 20 09:57:59 EDT 2012


Liberino Covelli [https://community.jboss.org/people/rino.covelli] created the discussion

"JBoss problem class not found"

To view the discussion, visit: https://community.jboss.org/message/754555#754555

--------------------------------------------------------------
dear 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
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/754555#754555]

Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120820/63163554/attachment.html 


More information about the jboss-user mailing list