Results 1 to 7 of 7

Thread: Dependency problem for AOP

  1. #1

    Exclamation Dependency problem for AOP

    Hi,

    I'm trying to implement AOP in my application. On deployment I'm getting this error:
    Code:
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orgAddressCtrl': Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/objectweb/asm/Type
    I have Type class in my class path:
    org.springframework.asm.Type

    Why it still trying to look for org/objectweb/asm/Type?
    What can be the solution?

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,624

    Default

    Well because they are different obviously. There is a dependency on asm so you will need to include that on your classpath.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3

    Default

    I pulled these out of the spring-2.5.6.SEC01 package under /lib/asm.
    Attached Files Attached Files

  4. #4

    Default

    Quote Originally Posted by Marten Deinum View Post
    Well because they are different obviously. There is a dependency on asm so you will need to include that on your classpath.
    Where can I find this package?

  5. #5

  6. #6

    Default

    You can use the zip file from my previous post, or grab them from the /lib/asm folder in the Spring 2.5.6.SEC01 package: http://www.springsource.com/download/community

  7. #7

    Default

    Quote Originally Posted by jamestastic View Post
    You can use the zip file from my previous post, or grab them from the /lib/asm folder in the Spring 2.5.6.SEC01 package: http://www.springsource.com/download/community
    I have downloaded from the link I provided in my post and it works perfect.

    Thanks.

Posting Permissions

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