"java.lang.ClassNotFoundException: com.sun.jdi.ClassLoaderReference" when deploying EAR file

"java.lang.ClassNotFoundException: com.sun.jdi.ClassLoaderReference" when deploying EAR file

book

Article ID: KB0077139

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Extreme 1.3.x

Description

When attempting to deploy an EAR file in BE-X, the following exception occurs and deployment fails:
java.lang.RuntimeException: java.lang.ClassNotFoundException: com.sun.jdi.ClassLoaderReference
        at org.objectweb.asm.ClassWriter.getCommonSuperClass(Unknown Source)
        at com.kabira.platform.classloader.ClassLoader$LocalClassWriter.getCommonSuperClass(ClassLoader.java:2262)
        at org.objectweb.asm.ClassWriter.a(Unknown Source)
        at org.objectweb.asm.Frame.a(Unknown Source)
        at org.objectweb.asm.Frame.a(Unknown Source)
        at org.objectweb.asm.MethodWriter.visitMaxs(Unknown Source)
        at org.objectweb.asm.tree.MethodNode.accept(Unknown Source)
        at org.objectweb.asm.tree.MethodNode.accept(Unknown Source)
        at org.objectweb.asm.tree.ClassNode.accept(Unknown Source)
        at com.kabira.platform.classloader.ClassLoader.completeClass(ClassLoader.java:589)
        at com.kabira.platform.classloader.ClassLoader.findClass(ClassLoader.java:552)
        at com.kabira.platform.classloader.ClassLoader.loadClass(ClassLoader.java:279)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at com.kabira.platform.classloader.ClassLoader.completeClass(ClassLoader.java:632)
        at com.kabira.platform.classloader.ClassLoader.findClass(ClassLoader.java:552)
        at com.kabira.platform.classloader.ClassLoader.loadClass(ClassLoader.java:279)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at com.tibco.xp.runtime.Execute.startRulesEngine(Execute.java:88)
        at com.tibco.xp.runtime.Execute.main(Execute.java:57)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.tibco.xp.earhandler.MainWrapper.run(MainWrapper.java:38)

Issue/Introduction

"java.lang.ClassNotFoundException: com.sun.jdi.ClassLoaderReference" when deploying EAR file

Resolution

This issue typically occurs after upgrading from a previous maintenance release that shipped with an earlier version of the JDK.  It is resolved by copying the updated tools.jar from $JAVA_HOME/lib to your node deploy directory.