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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:37:01+00:00 2026-05-14T06:37:01+00:00

hi i am getting the following exception while running my application and my applicationContext.xml

  • 0

hi i am getting the following exception while running my application
and my applicationContext.xml is

<?xml version="1.0" encoding="UTF-8"?>
<beans
    xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:p="http://www.springframework.org/schema/p"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">


    <bean id="dataSource"
        class="org.apache.commons.dbcp.BasicDataSource">
        <property name="driverClassName"
            value="com.mysql.jdbc.Driver">
        </property>
        <property name="url" value="jdbc:mysql://localhost/SureshDB"></property>
        <property name="username" value="root"></property>
        <property name="password" value="root"></property>
    </bean>
    <bean id="sessionFactory"
        class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
        <property name="dataSource">
            <ref bean="dataSource" />
        </property>
        <property name="hibernateProperties">
            <props>
                <prop key="hibernate.dialect">
                    org.hibernate.dialect.MySQLDialect
                </prop>
            </props>
        </property>
        <property name="mappingResources">
            <list>
                <value>com/jsfcompref/register/UserTa.hbm.xml</value></list>
        </property></bean>
    <bean id="UserTaDAO" class="com.jsfcompref.register.UserTaDAO">
        <property name="sessionFactory">
            <ref bean="sessionFactory" />
        </property>
    </bean>

    <bean id="UserTaService" class="com.jsfcompref.register.UserTaServiceImpl">
        <property name="userTaDao">
            <ref bean="UserTaDAO"/>
        </property>
    </bean>

    </beans>

Error creating bean with name
‘sessionFactory’ defined in class path
resource [applicationContext.xml]:
Invocation of init method failed;
nested exception is
java.lang.NoSuchMethodError:
org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V

any suggestion would be heplful

  • 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-14T06:37:01+00:00Added an answer on May 14, 2026 at 6:37 am

    Your exception

    nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit

    Hibernate depends on asm

    Go to Spring installation directory and include all of jars in the following folders

    <SPRING_HOME>/lib/asm/
    <SPRING_HOME>/lib/dom4j/
    <SPRING_HOME>/lib/antlr/
    <SPRING_HOME>/lib/jakarta-commons/
    <SPRING_HOME>/lib/javassist
    <SPRING_HOME>/lib/cglib/
    <SPRING_HOME>/lib/hibernate // without hibernate-entitymanager.jar
    <SPRING_HOME>/lib/slf4j/
    <SPRING_HOME>/lib/j2ee/persistence.jar
    <SPRING_HOME>/lib/j2ee/jta.jar
    

    I hope now it runs ok

    Do not forget include MySQL driver if you do not want to see a new exception

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

Sidebar

Related Questions

I'm getting the following exception while redrawing my DataGridView control: Unhandled exception : Odwołanie
This is XML <?xml version=1.0 encoding=UTF-8?> <person> <fullname>Guilherme</fullname> <age>10</age> <address>address,address,address,address,</address> </person> <person> <fullname>Guilherme</fullname> <age>10</age>
I am getting the following exception when deploying my application to Jboss 5.0.1 :
hey guys, i'm getting an exception on the following inner exception: {Value cannot be
I am getting the following exception when calling any of my Mapper.Map methods. Inheritance
I am getting an exception while using SSHJ. Here is how I implemented it:
I am getting following error while exporting data to excel sheet ERROR: Message :
I'm gettting the following exception when performing an insert to an Oracle Databse using
I getting the following error when I try to connect to my server app
I am getting the following error: Access denied for user 'apache'@'localhost' (using password: NO)

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.