Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9294783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T21:26:59+00:00 2026-06-18T21:26:59+00:00

I can not run my hibernate application. I’m constantly getting this error: SLF4J: Class

  • 0

I can not run my hibernate application. I’m constantly getting this error:

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/MAG/.m2/repository/org/slf4j/slf4j-jdk14/1.7.2/slf4j-jdk14-1.7.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Users/MAG/.m2/repository/org/slf4j/slf4j-log4j12/1.5.8/slf4j-log4j12-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.JDK14LoggerFactory]
2013-02-14 14:49:05 org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.3.0.SP1
2013-02-14 14:49:05 org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
2013-02-14 14:49:05 org.hibernate.cfg.Environment buildBytecodeProvider
INFO: Bytecode provider name : javassist
2013-02-14 14:49:05 org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
2013-02-14 14:49:05 org.hibernate.cfg.Configuration configure
INFO: configuring from resource: /hibernate.cfg.xml
2013-02-14 14:49:05 org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: Configuration resource: /hibernate.cfg.xml
2013-02-14 14:49:05 org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : model/man/Man.hbm.xml
2013-02-14 14:49:06 org.hibernate.util.XMLHelper$ErrorLogger error
SEVERE: Error parsing XML: XML InputStream(25) Attribute "name" must be declared for element type "many-to-many".
2013-02-14 14:49:06 org.hibernate.util.XMLHelper$ErrorLogger error
SEVERE: Error parsing XML: XML InputStream(33) Attribute "name" must be declared for element type "many-to-many".
2013-02-14 14:49:06 org.hibernate.util.XMLHelper$ErrorLogger error
SEVERE: Error parsing XML: XML InputStream(38) The content of element type "set" must match "(meta*,subselect?,cache?,synchronize*,comment?,key,(element|one-to-many|many-to-many|composite-element|many-to-any),loader?,sql-insert?,sql-update?,sql-delete?,sql-delete-all?,filter*)".

The idea of my program is that:
Man is super class for Owner and Renter.
Owner can have many Flats but Flat can have one Owner.
Renter can have many RenterBills but RenterBill can have one Renter.
Renter can have many Flats and Flats can have many renters.

My Man.hbm.xml:

<class name="Man" table="MEN">
    <id name="id" column="MAN_ID">
        <generator class="native" />
    </id>
    <property name="pesel" column="MAN_PESEL" />
    <property name="idNumber" column="MAN_ID_NUMBER" />
    <property name="email" column="MAN_EMAIL" />
    <property name="name" column="MAN_NAME" />
    <property name="surname" column="MAN_SURNAME" />
    <property name="telephoneNumber" column="MAN_TELEPHONE_NUMBER" />
    <many-to-one name="address" column="ADDRESS_ID" not-null="true" />

    <joined-subclass name="Owner" table="OWNERS">
        <key column="MAN_ID" />
        <property name="password" column="OWNER_PASSWORD" not-null="true" />
        <property name="seed" column="OWNER_SEED" not-null="true" />
        <set name="flats" table="OWNER_FLATS">
            <key column="MAN_ID" />
            <many-to-many name="flats" column="FLAT_ID" class="Flat" />
        </set>
    </joined-subclass>

    <joined-subclass name="Renter" table="RENTERS">
        <key column="MAN_ID" />
        <set name="flats" table="RENTER_FLATS">
            <key column="MAN_ID" />
            <many-to-many name="flats" column="FLAT_ID" class="Flat" />
        </set>
        <set name="bills" table="RENTER_BILLS">
            <key column="MAN_ID" />
            <many-to-one name="bills" column="RENTER_BILL_ID" class="RenterBill" />
        </set>
    </joined-subclass>
</class>

Java classes:
Man.java

package model.man;
import model.addresses.Address;
public abstract class Man {

    private int id;
    private String pesel;
    private String idNumber;
    private String email;
    private String name;
    private String surname;
    private String telephoneNumber;
    private Address address;

       /* getters setters */
}

Owner.java

package model.man;

import java.util.Iterator;
import java.util.Set;

import model.flat.Flat;

public class Owner extends Man implements Iterable<Flat> {

    private String password;
    private String seed;
    private Set<Flat> flats;

    /* getters setters */
}

Renter.java

package model.man;

import java.util.HashSet;
import java.util.Set;

import model.bills.RenterBill;
import model.flat.Flat;

public class Renter extends Man {

    private Set<Flat> flats = new HashSet<Flat>();
    private Set<RenterBill> bills = new HashSet<RenterBill>();

                /* getters setters */
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T21:27:00+00:00Added an answer on June 18, 2026 at 9:27 pm
    SEVERE: Error parsing XML: XML InputStream(25) Attribute "name" must be declared for element type "many-to-many".
    2013-02-14 14:49:06 org.hibernate.util.XMLHelper$ErrorLogger error
    SEVERE: Error parsing XML: XML InputStream(33) Attribute "name" must be declared for element type "many-to-many".
    2013-02-14 14:49:06 org.hibernate.util.XMLHelper$ErrorLogger error
    SEVERE: Error parsing XML: XML InputStream(38) The content of element type "set" must match "(meta*,subselect?,cache?,synchronize*,comment?,key,(element|one-to-many|many-to-many|composite-element|many-to-any),loader?,sql-insert?,sql-update?,sql-delete?,sql-delete-all?,filter*)".
    

    Try removing the ‘name’ attribute from your many-to-many tag.

    UPDATE

    You have a set mapped as a many-to-one as well. This typically shows up in your Java POJO as a single instance of the referenced class. You may have meant to use a one-to-many tag there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

how i can deploy an application to iphone but not run the application. is
Now i am getting this error in my spring application what this indicate ?
Can not run following SQL from ant's sql task : BEGIN DBMS_AQADM.CREATE_QUEUE_TABLE( queue_table =>
I have two ASP.NET sites (they can not run in the same process) and
It appears m2eclipse is not recognizing my $M2_OPTS variable. I can run the same
We run a Spring 3.1/Hibernate 4/Java 7/Tomcat 7/MSSQL 2008 R2 web application. We must
I'm hoping someone has run into this problem before and can help me out.
I have been facing this issue with my application and do not know what
At runtime an application (based on Java/Spring/Hibernate) throws the following exception: 07:18:38.511 ERROR Error
I tried to run flyway in my application before hibernate is hooking in on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.