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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:30:08+00:00 2026-06-15T15:30:08+00:00

I am getting the following error when I call ApplicationContext ctx = new ClassPathXmlApplicationContext(spring.xml)

  • 0

I am getting the following error when I call

ApplicationContext ctx = new ClassPathXmlApplicationContext(“spring.xml”)
`

<bean id="derbyDataSource" class="org.apache.commons.dbcp.BasicDataSource">
    <property name="driverClassName" value="org.apache.derby.jdbc.EmbeddedDriver" />
    <property name="url" value="jdbc:derby:db/analyticsDB;create=true" />
    <property name="username" value="username" />
    <property name="password" value="password" />
    <property name="initialSize" value="5" />
    <property name="maxActive" value="50" />
</bean>

<bean id="sessionFactory"
    class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
    <property name="dataSource" ref="derbyDataSource" />
    <property name="packagesToScan" value="com.example.analytics.model" />
    <property name="hibernateProperties">
        <props>
            <prop key="dialect">org.hibernate.dialect.DerbyDialect</prop>
            <prop key="hibernate.show_sql">true</prop> 
            <prop key="hibernate.hbm2ddl.auto">create</prop> 
        </props>
    </property>
</bean>

`

Changing log4j version to 1.2.15 produces this exception.

The issue been resolved after I added the following to spring.xml
<prop key="javax.persistence.validation.mode">none</prop>

  • 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-15T15:30:10+00:00Added an answer on June 15, 2026 at 3:30 pm

    The important part here is java.lang.NoSuchFieldError: TRACE.

    It seems to be an error with the version of log4j / slf4j you are using.

    You should only use version 1.2.12 or higher of log4j, and make sure there is only one version of log4j jar in your classpath.

    You should also make sure to not use an slf4j version lower than 1.5.1.

    • 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 error Fatal error: Call to undefined method MongoCollection::command() in
I'm getting the following error, while using ExtJs MVC, Uncaught TypeError: Cannot call method
I am getting the following error on line 17 Fatal error: Call to a
I'm getting the following error when I call the SaveChanges() method on my entity
Why am I getting the following error? Fatal error: Call to undefined method mysqli_stmt::query()
I am getting the following error with my drupal website. Fatal error: Call to
I'm getting the following error when trying to run a project with spring and
I am getting the following error: Fatal error: Call to undefined method MDB2_Error::quoteIdentifier() The
I'm using PHP 5.2 and getting the following error message: Fatal error: Call to
Getting the following the error : Fatal error: Call to a member function load()

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.