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 8689361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:37:40+00:00 2026-06-12T23:37:40+00:00

I have app with several entity. During deploying on JBoss AS7 I occur exception

  • 0

I have app with several entity. During deploying on JBoss AS7 I occur exception listed below:

Im using idea 11.1.3; ubuntu 12.04; maven 3.0.3 and if needed I can show pom file of the project.

17:24:00,770 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.persistenceunit."kladr.ear/kladr-ejb-1.0-SNAPSHOT.jar#primary": org.jboss.msc.service.StartException in service jboss.persistenceunit."kladr.ear/kladr-ejb-1.0-SNAPSHOT.jar#primary": Failed to start service
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_35]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_35]
    at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_35]
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: primary] Unable to build EntityManagerFactory
    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:914)
    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889)
    at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73)
    at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:162)
    at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.start(PersistenceUnitServiceImpl.java:85)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
    ... 3 more
Caused by: org.hibernate.MappingException: Duplicate property mapping of version found in com.kmware.ttk.kladr.model.KladrSettings
    at org.hibernate.mapping.PersistentClass.checkPropertyDuplication(PersistentClass.java:486)
    at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:476)
    at org.hibernate.mapping.RootClass.validate(RootClass.java:268)
    at org.hibernate.cfg.Configuration.validate(Configuration.java:1287)
    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1729)
    at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84)
    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904)
    ... 9 more

Here is my class code(without imports):

@Entity
@Table(name = "KLADR_SETTINGS",schema ="KLADR")
public class KladrSettings extends RQObject  implements Serializable{
    private static final long serialVersionUID = -8557672721736414960L;
    private String id;
    private String url;
    private String pathName;
    private String namePackage;
    private int sizeArchive;
    private Long version;

    @Id
    @Column(name = "KLADR_SETTINGS_ID")
    public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id;
    }

    @Column(name = "KLADR_SETTINGS_URL")
    public String getUrl() {
        return url;
    }
    public void setUrl(String url) {
        this.url = url;
    }

    @Column(name = "KLADR_SETTINGS_PATHNAME")
    public String getPathName() {
        return pathName;
    }
    public void setPathName(String pathName) {
        this.pathName = pathName;
    }

    @Column(name = "KLADR_SETTINGS_NAMEPACKAGE")
    public String getNamePackage() {
        return namePackage;
    }
    public void setNamePackage(String namePackage) {
        this.namePackage = namePackage;
    }
    @Column(name = "KLADR_SETTINGS_SIZE_ARCHIVE")
    public int getSizeArchive() {
        return sizeArchive;
    }
    public void setSizeArchive(int sizeArchive) {
        this.sizeArchive = sizeArchive;
    }

    @Column(name = "KLADR_SETTINGS_VERSION")
    public Long getVersion() {
        return version;
    }
    public void setVersion(Long version) {
        this.version = version;
    }


    @Override public PortableEntity toPortableEntity(boolean loadCollections, boolean loadNested) {

        PKladrSettings pentity = new PKladrSettings(getId(), getName(), getVersion(),
                getDeleted());

        pentity.setId(getId());
        pentity.setNamePackage(getNamePackage());
        pentity.setPathName(getPathName());
        pentity.setSizeArchive(getSizeArchive());
        pentity.setUrl(getUrl());
        pentity.setVersion(getVersion());

        return pentity;

    }

    @Override public void fromPortable(PortableEntity pentity) {
        PKladrSettings input = null;
        if (pentity instanceof PKladrSettings){
            input = (PKladrSettings) pentity;
        }
        if(input!=null){
            this.setId(input.getId());
            this.setName(input.getDisplayName());
            this.setVersion(input.getVersion());
            this.setDeleted(input.isDeleted());

            this.setNamePackage(input.getNamePackage());
            this.setPathName(input.getPathName());
            this.setSizeArchive(input.getSizeArchive());
            this.setUrl(input.getUrl());

        }
    }

    @Override public void loadLazyCollections() {

    }
}

What does it mean duplicate property mapping?

  • 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-12T23:37:41+00:00Added an answer on June 12, 2026 at 11:37 pm

    It looks like the property private Long version; is defined on both the super class and the extending class. remove it from one of them and it should work.

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

Sidebar

Related Questions

I have a document-based Core Data app. My main Core Data entity has several
I have an app that is saving to a db (using Entity Framework) and
I'm using app engine datastore so I have entity like this. @PersistenceCapable public class
I have an app with several SeekBars in a Scrollview. Atm almost everything is
I have an app with several different tabs. The first of these tabs should
I have an app that contains several activities...so lets say user is navigating activity
I have an app that have several views. In one view I would like
I have an app which contains a scrollview with several tableviews. Each tableview is
I have an app that lets the user interact with several forms. I can
In my iOS app I have several UIElement s that can process user input:

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.