What causes "java.lang.NoClassDefFoundError: com/tibco/as/space/security/AuthenticationCallback" exception

What causes "java.lang.NoClassDefFoundError: com/tibco/as/space/security/AuthenticationCallback" exception

book

Article ID: KB0077922

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -

Description

TIBCO BusinessEvents 5.5.x supports TIBCO ActiveSpaces Enterprise Edition 2.2.1 - 3.x
ActiveSpaces 2.x is supported as Integrated Datagrid and ActiveSpaces 3.x is supported only as external grid via catalog Functions only.

During the installation of BE 5.5.x if user chooses custom installation option and fails to select or unchecked "TIBCO BusinessEvents DataGrid" component then we will skip the AS installation and will not install AS libraries.
After installation when starting any cache based application the above exception occurs since DataGrid component was not installed.
eg: The shipped RMS project is a cache based application and starting it will throw the below exception.

#########
C:\Tibco\be\5.5\rms\bin>C:\tibco\be\5.5\rms\bin\be-rms.exe -c RMS.cdd -u default  RMS.ear

2019 May 07 13:23:56:851 GMT -3 template3sp Fatal [main] - [container.standalone] com/tibco/as/space/security/AuthenticationCallback
java.lang.NoClassDefFoundError: com/tibco/as/space/security/AuthenticationCallback
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at com.tibco.cep.runtime.service.om.api.DaoProviderFactory.initialize(DaoProviderFactory.java:58)
        at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.initialize(RuleServiceProviderImpl.java:526)
        at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.<init>(RuleServiceProviderImpl.java:210)
        at com.tibco.cep.runtime.session.RuleServiceProviderManager.newProvider(RuleServiceProviderManager.java:232)
        at com.tibco.cep.container.standalone.BEMain.jumpStart(BEMain.java:138)
        at com.tibco.cep.container.standalone.BEMain.main(BEMain.java:71)
Caused by: java.lang.ClassNotFoundException: com.tibco.as.space.security.AuthenticationCallback
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 8 more

#########

++++++++ Here are the installation logs showing as false for DataGrid ++++++++++
(05-07-2019.173328), ::INFO::,      Product: TIBCO BusinessEvents Enterprise 5.5.0
(05-07-2019.173328), ::INFO::,           Feature: TIBCO BusinessEvents Studio selected = true
(05-07-2019.173328), ::INFO::,           Feature: TIBCO BusinessEvents Studio isRecord = true

(05-07-2019.173328), ::INFO::,           Feature: TIBCO BusinessEvents DataGrid selected = false
(05-07-2019.173328), ::INFO::,           Feature: TIBCO BusinessEvents DataGrid isRecord = false

(05-07-2019.173328), ::INFO::,           Feature: Monitoring and Management selected = true
(05-07-2019.173328), ::INFO::,           Feature: Monitoring and Management isRecord = true
(05-07-2019.173328), ::INFO::,           Feature: Enterprise Administrator Agent selected = true
(05-07-2019.173328), ::INFO::,           Feature: Enterprise Administrator Agent isRecord = true
++++++++
 

Issue/Introduction

What causes "java.lang.NoClassDefFoundError: com/tibco/as/space/security/AuthenticationCallback" exception

Environment

TIBCO BusinessEvents 5.x All Operating system.

Resolution

During BusinessEvents installation use 'Typical installation' option or choose 'customize installation' option and enable 'TIBCO BusinessEvents DataGrid'.