Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel

Quick Links to:

Table of Contents
minLevel3
Panel

When I deploy my application to the OC4J container, the deployment fails with

an exception:  org

a NoSuchMethodError for class org.objectweb.asm.ClassVisitor.visit.

    The OC4J deployment fails with the error:  Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/Strin;g[Ljava/lang/String;Ljava/lang/String;)

ANSWER:

  • The issue is that multiple (and old) versions of the "asm" jar are being deployed.   Do the following:
    1. remove dependencies asm and cglib from the project pom.xml file.
    2. add dependency on cglib-nodep version 2.2.2 (this pulls in asm).
    3. put in exclusions for any other indirect dependencies on cglib and asm.

...