Results 1 to 4 of 4
  1. #1
    anouar2002 is offline Member
    Join Date
    Apr 2012
    Posts
    13
    Rep Power
    0

    Default J2ee Hibernate Problem

    Hi guys,
    I'm currently developing a J2EE application, specifically using Hibernate and Spring.
    I use Mysql as database.
    My problem is when I want to add values ​​in my database, this error always appears:

    SLF4J: Class path contains multiple SLF4J bindings.
    SLF4J: Found binding in [jar:file:/D:/Etudes/2%c3%a8me%20Ann%c3%a9e/Semestre%202/Dev%20Web%202/Seance%201/libHibernate/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
    SLF4J: Found binding in [jar:file:/D:/Etudes/2%c3%a8me%20Ann%c3%a9e/Semestre%202/Dev%20Web%202/Seance%201/libHibernate/slf4j-simple-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
    SLF4J: See SLF4J Error Codes for an explanation.
    SLF4J: This version of SLF4J requires log4j version 1.2.12 or later. See also SLF4J Error Codes
    log4j:WARN No appenders could be found for logger (org.hibernate.type.BasicTypeRegistry).
    log4j:WARN Please initialize the log4j system properly.
    Initial SessionFactory creation failed.org.hibernate.HibernateException: /hibernate.cfg.xml not found
    Exception in thread "main" java.lang.ExceptionInInitializerError

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,949
    Rep Power
    19

    Default Re: J2ee Hibernate Problem

    You can ignore the slf4j things (though you might want to get hold of an up to date log4j so you get rid of these warnings).
    The last 2 lines are the important bit, which implies you don't have a hibernate config file.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,193
    Rep Power
    19

    Default Re: J2ee Hibernate Problem

    Moved from Advanced Java

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    anouar2002 is offline Member
    Join Date
    Apr 2012
    Posts
    13
    Rep Power
    0

Similar Threads

  1. Problem with hibernate insert
    By dennisbf in forum New To Java
    Replies: 11
    Last Post: 09-15-2011, 06:25 PM
  2. Problem in Deploying j2ee web application
    By arshadalisoomro in forum Advanced Java
    Replies: 0
    Last Post: 01-24-2011, 02:23 PM
  3. problem in hibernate
    By jperson in forum JDBC
    Replies: 1
    Last Post: 01-11-2011, 10:10 AM
  4. problem in hibernate need help!
    By jrgahan in forum Advanced Java
    Replies: 0
    Last Post: 05-22-2008, 09:00 AM
  5. Postgres and j2ee problem
    By bbq in forum JDBC
    Replies: 1
    Last Post: 07-05-2007, 04:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •