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

  • Home
  • SEARCH
  • 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 6161595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:30:23+00:00 2026-05-23T21:30:23+00:00

i am getting exception while the server starts. (Server is started using Intelij IDE).

  • 0

i am getting exception while the server starts. (Server is started using Intelij IDE).
i have no idea how to fix it. i am new to hibernate and spring. thanks in advance.

SEVERE: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationMgr' defined in URL [jar:file:/C:/Program%20Files%20(x86)/Apache%20Software%20Foundation/Tomcat%207.0/webapps/ROOT/WEB-INF/lib/dbservice-1.0-SNAPSHOT.jar!/ApplicationContext-Service.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'authenticationDao' threw exception; nested exception is org.springframework.orm.hibernate3.HibernateSystemException: Unknown entity: com.jsi.core.dbservice.model.Authentication; nested exception is org.hibernate.MappingException: Unknown entity: com.jsi.core.dbservice.model.Authentication
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1361)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:871)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)
    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4681)
    at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5184)
    at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5179)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    at java.lang.Thread.run(Thread.java:619)
Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'authenticationDao' threw exception; nested exception is org.springframework.orm.hibernate3.HibernateSystemException: Unknown entity: com.jsi.core.dbservice.model.Authentication; nested exception is org.hibernate.MappingException: Unknown entity: com.jsi.core.dbservice.model.Authentication
    at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:102)
    at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:58)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1358)
    ... 21 more

Authentication entity

/**
 * Authentication Entity - Representation of the db table
 */
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
@Entity
@Table(name = "t_authentication")
public class Authentication extends LongBaseEntity implements Serializable{

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "auth_id")
    private Long mAuthId;

    @Column(name = "authentication_id")
    private Long mAuthenticationId;

    @Column(name = "tcn")
    private Long mTcn;

    @Column(name = "audit_comment")
    private String mAuditComment;

    @Column(name = "last_timestamp")
    private Date mLastTimeStamp;

    @Column(name = "user_id")
    private Long mUserId;

    @Column(name = "authentication_date")
    private Date mAuthenticationDate;

    @Column(name = "hostname")
    private String mHostname;

    @Column(name = "ip_address")
    private String mIpAddress;

    @Column(name = "referrer_url")
    private String mReferrerURL;

    @Column(name = "session_id")
    private String mSessionId;

    public Long getAuthId() {
        return mAuthId;
    }

    public void setAuthId(Long pAuthId) {
        this.mAuthId = pAuthId;
        mId = pAuthId;
    }

    public Long getAuthenticationId() {
        return mAuthenticationId;
    }

    public void setAuthenticationId(Long pAuthenticationId) {
        this.mAuthenticationId = pAuthenticationId;
    }

    public Long getTcn() {
        return mTcn;
    }

    public void setTcn(Long pTcn) {
        this.mTcn = pTcn;
    }

    public String getAuditComment() {
        return mAuditComment;
    }

    public void setAuditComment(String pAuditComment) {
        this.mAuditComment = pAuditComment;
    }

    public Date getLastTimeStamp() {
        return mLastTimeStamp;
    }

    public void setLastTimeStamp(Date pLastTimeStamp) {
        this.mLastTimeStamp = pLastTimeStamp;
    }

    public Long getUserId() {
        return mUserId;
    }

    public void setUserId(Long pUserId) {
        this.mUserId = pUserId;
    }

    public Date getAuthenticationDate() {
        return mAuthenticationDate;
    }

    public void setAuthenticationDate(Date pAuthenticationDate) {
        this.mAuthenticationDate = pAuthenticationDate;
    }

    public String getHostname() {
        return mHostname;
    }

    public void setHostname(String pHostname) {
        this.mHostname = pHostname;
    }

    public String getIpAddress() {
        return mIpAddress;
    }

    public void setIpAddress(String pIpAddress) {
        this.mIpAddress = pIpAddress;
    }

    public String getReferrerURL() {
        return mReferrerURL;
    }

    public void setReferrerURL(String pReferrerURL) {
        this.mReferrerURL = pReferrerURL;
    }

    public String getSessionId() {
        return mSessionId;
    }

    public void setSessionId(String pSessionId) {
        this.mSessionId = pSessionId;
    }

    public String toString() {
        return "Payment{" +
                "mId=" + getId() +
                ", mIpaddress=" + mIpAddress +
                '}';
    }

}

DAO class:

/**
 * Implementation for AuthenticationMgr DAO layer.
 *
 */
import com.jsi.core.dbservice.model.Authentication;
import com.jsi.core.dbservice.model.JSIException;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.springframework.orm.hibernate3.HibernateCallback;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import java.sql.SQLException;
import java.util.List;
public class AuthenticationDao extends HibernateDaoSupport implements IAuthenticationDao {

    @Override
    public List<Authentication> list() {
        final String query = "Select a from Authentication a order by a.id desc";
        return (List<Authentication>) getHibernateTemplate().executeFind(new HibernateCallback() {
            public Object doInHibernate(Session session) throws HibernateException, SQLException {
                return session.createQuery(query).list();
            }
        });
    }

    @Override
    public void save(Authentication authentication) throws JSIException {
        getHibernateTemplate().save(authentication);
    }

    @Override
    public Authentication load(Long id) {
        return getHibernateTemplate().load(Authentication.class, id);

    }

    @Override
    public void update(Authentication authentication) throws JSIException {
        getHibernateTemplate().update(authentication);
    }

    @Override
    public void delete(Long id) {
        getHibernateTemplate().delete(load(id));
    }
}
  • 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-05-23T21:30:23+00:00Added an answer on May 23, 2026 at 9:30 pm

    thanks everyone for your reply. i managed to solve it. it was my mistake. i forgot to add the mapping tag in xml.

    <hibernate-configuration>
        <session-factory>
        <mapping class="com.model.Authentication"/> // i missed this line. after i added it. it worked fine.
        </session-factory>
    </hibernate-configuration>
    

    thanks again.

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

Sidebar

Related Questions

I am getting the following exception while adding data into database: org.hibernate.HibernateException: The database
I'm getting exception while creating connection with SQL Server. ISession factory is shown below
Hi i am getting the following exception while fetching the image from server. I
Why am I getting the exception While executing the Server.Transfer()... Server.Transfer(@~/Student/StudentSendMail.aspx?username= + username); {Unable
I'm getting an Exception while trying to insert a row in oracle table. I'm
I am getting this exception while accessing the jax-ws web service from my client.
I am getting Following Exception while configuring the Connection Pool in Tomcat This is
I am getting he following Exception while running my Quartz Schdular program. Below is
hi i am getting the following exception while running my application and my applicationContext.xml
I am getting the error Format Exception was unhandled at Do While objectReader.Peek <>

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.