HAWK or RV java.lang.NoClassDefFoundError error on startup ofTIBCO BusinessEvents agent in Studio debugger (works in console).

HAWK or RV java.lang.NoClassDefFoundError error on startup ofTIBCO BusinessEvents agent in Studio debugger (works in console).

book

Article ID: KB0087566

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Resolution:
Description:
===========
HAWK or RV java.lang.NoClassDefFoundError error on startup of  TIBCO BusinessEvents agent in Studio debugger (works in console).


Environment:
==========
TIBCO BusinessEvents 5.x
Windows Systems

Symptoms:
=========
Exception:
java.lang.NoClassDefFoundError: com/tibco/tibrv/TibrvException
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at com.tibco.cep.runtime.session.RuleAdministratorFactory.createRuleAdministrator(RuleAdministratorFactory.java:21)
    at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.initialize(RuleServiceProviderImpl.java:515)
    at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.&ltinit>(RuleServiceProviderImpl.java:164)
    at com.tibco.cep.runtime.session.RuleServiceProviderManager.newProvider(RuleServiceProviderManager.java:207)
    at com.tibco.cep.container.standalone.BEMain.jumpStart(SourceFile:125)
    at com.tibco.cep.container.standalone.BEMain.main(SourceFile:69)
Caused by: java.lang.ClassNotFoundException: com.tibco.tibrv.TibrvException
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    ... 8 more

or:

java.lang.NoClassDefFoundError: COM/TIBCO/hawk/ami/AmiException
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at com.tibco.cep.runtime.session.RuleAdministratorFactory.createRuleAdministrator(RuleAdministratorFactory.java:21)
    at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.initialize(RuleServiceProviderImpl.java:515)
    at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.&ltinit>(RuleServiceProviderImpl.java:164)
    at com.tibco.cep.runtime.session.RuleServiceProviderManager.newProvider(RuleServiceProviderManager.java:207)
    at com.tibco.cep.container.standalone.BEMain.jumpStart(SourceFile:125)
    at com.tibco.cep.container.standalone.BEMain.main(SourceFile:69)
Caused by: java.lang.ClassNotFoundException: COM.TIBCO.hawk.ami.AmiException
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    ... 8 more

Cause:
======
HAWK_HOME set in Windows environment but not set in be-engine.tra .

Resolution:
===========
1). Set HAWK_HOME and RV_HOME in be-engine.tra (see solution: : SOL1-BG4MKO)

2). Delete HAWK_HOME from Windows environment.

3). Add HAWK_HOME environment variable and set it to blank (empty not work) in "Run Configurations" dialog in Studio.

Issue/Introduction

HAWK or RV java.lang.NoClassDefFoundError error on startup ofTIBCO BusinessEvents agent in Studio debugger (works in console).