TIBCO BusinessEvents (BE) Studio debugger - Environment settings (JNI)

TIBCO BusinessEvents (BE) Studio debugger - Environment settings (JNI)

book

Article ID: KB0075333

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition 5.6.1

Description

Application failed to start in Studio debugger "Library not found" although OS library path configured correctly in %BE_HOME%/bin/be-engine.tra.

Sample error (TIBCO Rendezvous (RV):
<DateTime Stamp> Fatal [main] - [container.standalone] Library not found: tibrvjsd
TibrvException[error=901,message=Library not found: tibrvjsd]
    at com.tibco.tibrv.Tibrv.loadLib(Tibrv.java:476)
    at com.tibco.tibrv.Tibrv.open(Tibrv.java:275)
    at com.tibco.cep.driver.tibrv.TibRvChannel.init(SourceFile:47)
    at com.tibco.cep.runtime.channel.impl.ChannelManagerImpl.registerChannel(ChannelManagerImpl.java:122)
    at com.tibco.cep.runtime.channel.impl.ChannelManagerImpl.init(ChannelManagerImpl.java:108)
    at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.initChannels(RuleServiceProviderImpl.java:1221)
    at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.initAll(RuleServiceProviderImpl.java:620)
    at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.configure(RuleServiceProviderImpl.java:265)
    at com.tibco.cep.container.standalone.BEMain.jumpStart(SourceFile:172)
    at com.tibco.cep.container.standalone.BEMain.main(SourceFile:71)
Internal exception:
java.lang.UnsatisfiedLinkError: no tibrvjsd in java.library.path: [D:\tibco_BE561\tibcojre64\11\bin, C:\WINDOWS\Sun\Java\bin, C:\WINDOWS\system32, C:\WINDOWS, d:/tibco_BE561/be/5.6/hotfix/bin, d:/tibco_BE561/be/5.6/bin, d:/tibco_BE561/as/2.4/lib, /bin, .]

Environment

Windows Linux

Resolution

The Studio debugger loads the OS library path (e.g. PATH on Windows, LD_LIBRARY_PATH on Linux) from BE_HOME/bin/be-engine.tra.
The OS library path defined in "Debug Configurations..."/"Run Configurations...".
The default value loaded from %BE_HOME%/studio/eclipse/configuration/studio.tra file and build when a new workspace created.

We recommend to modify the OS Path in studio.tra file before create the workspace, so it's not required to update the OS Path manually for each application in Studio run time environment.

e.g. On Windows ("Library not found: tibrvjsd"):

1.  Existing Workspace 
- Open Menu "Run" -> "Run Configurations..." or "Debug Configurations..."
- Select your application and Update the PATH in Tab "Environment"
e.g.:
PATH=D:/tibco_BE561test/tibrv/8.4/lib;d:/tibco_BE561/be/5.6/hotfix/bin;d:/tibco_BE561/be/5.6/bin;d:/tibco_BE56test/as/2.4/lib;/bin;

2. New Workspace(s) 
Open %BE_HOME%/studio/eclipse/configuration/studio.tra

Add new environment variable for RV_HOME and add %RV_HOME%/bin to tibco.env.PATH.

e.g.:
tibco.env.RV_HOME=D:/tibco_BE561/tibrv/8.4
...
tibco.env.PATH %RV_HOME%/bin;...


Note:
For Linux update LD_LIBRARY_PATH instead of PATH.
 

Issue/Introduction

Studio debugger - OS library Path settings

Additional Information

Studio, OS library, Studio debugger