Results 1 to 4 of 4

Thread: Tomcat 6.0 + Spring + JPA + Hibernate autowire initialization error

  1. #1

    Default Tomcat 6.0 + Spring + JPA + Hibernate autowire initialization error

    Hi,

    I am using an autowired bean with Spring/JPA/Hibernate. When I am running a junit test, everything works fine. However, when I deploy it in Tomcat 6.0 (after removing the SimpleLoadTimeWeaver and using TomcatInstrumentableClassLoader) it gives me BeanInitialization Error.

    I have attached the files used and the stacktrace
    Attached Files Attached Files

  2. #2
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,425

    Default

    I would presume it's due to an incompatible version of the asm JAR on the classpath. I'd try the one that ships with Spring in \lib\asm.
    Last edited by karldmoore; Aug 29th, 2007 at 12:10 PM.
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

  3. #3

    Default

    You are right...Thanks a lot...There was a conflict between hibernate asm. I removed that and had put spring asm as well as spring cglib jars. With that it worked...Thanks a lot for your help.

  4. #4
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,425

    Default

    Quote Originally Posted by bhavinkamani View Post
    You are right...Thanks a lot...There was a conflict between hibernate asm. I removed that and had put spring asm as well as spring cglib jars. With that it worked...Thanks a lot for your help.
    Not a problem! I usually find it easier to go with the JARs that ship with Spring. It's usually the quickest way to solve conflicts.
    Last edited by karldmoore; Aug 29th, 2007 at 12:10 PM.
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •