TIBCO Spotfire Server not able to start with error "java.lang.NoClassDefFoundError: com/tibco/as/space/ASException"

TIBCO Spotfire Server not able to start with error "java.lang.NoClassDefFoundError: com/tibco/as/space/ASException"

book

Article ID: KB0079791

calendar_today

Updated On:

Products Versions
Spotfire Server 7.5 and higher

Description

https://docs.tibco.com/pub/spotfire_server/7.11.1/doc/html/TIB_sfire_server_tsas_admin_help/GUID-2432DDFD-4517-43BC-9325-96C926523EEA.htmlAfter upgrading from version 7.5 or higher to a newer version, you may come across an issue where the Spotfire server does not start successfully. In the TIBCO Spotfire Server's server.log, the following is seen:
ERROR 2017-07-07T14:52:16,963-0700 [*Initialization*] web.context.ContextLoader: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serviceAnnouncer' defined in ServletContext resource [/WEB-INF/applicationContext-nodeManager-common.xml]: Cannot resolve reference to bean 'serviceObservers' while setting bean property 'serviceObservers'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nodeManager' defined in ServletContext resource [/WEB-INF/applicationContext-nodeManager-common.xml]: Cannot resolve reference to bean 'heartBeatInspector' while setting bean property 'heartBeatInspector'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'heartBeatInspector' defined in ServletContext resource [/WEB-INF/applicationContext-nodeManager-supervisor.xml]: Cannot resolve reference to bean 'distributedMapFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'distributedMapFactory' defined in ServletContext resource [/WEB-INF/applicationContext-common-server.xml]: Cannot resolve reference to bean 'activeSpacesInstance' while setting bean property 'asInstance'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activeSpacesInstance' defined in ServletContext resource [/WEB-INF/applicationContext-common-server.xml]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.spotfire.server.cluster.ActiveSpacesClusterInstanceBase]: Factory method 'createInstance' threw exception; nested exception is java.lang.NoClassDefFoundError: com/tibco/as/space/ASException
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)

In the TIBCO Spotfire Server's catalina.log the following is seen:
 
07-Jul-2017 15:11:46.778 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class com.spotfire.server.lifecycle.SpotfireServerInitializer
 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serviceAnnouncer' defined in ServletContext resource [/WEB-INF/applicationContext-nodeManager-common.xml]: Cannot resolve reference to bean 'serviceObservers' while setting bean property 'serviceObservers'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nodeManager' defined in ServletContext resource [/WEB-INF/applicationContext-nodeManager-common.xml]: Cannot resolve reference to bean 'heartBeatInspector' while setting bean property 'heartBeatInspector'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'heartBeatInspector' defined in ServletContext resource [/WEB-INF/applicationContext-nodeManager-supervisor.xml]: Cannot resolve reference to bean 'distributedMapFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'distributedMapFactory' defined in ServletContext resource [/WEB-INF/applicationContext-common-server.xml]: Cannot resolve reference to bean 'activeSpacesInstance' while setting bean property 'asInstance'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activeSpacesInstance' defined in ServletContext resource [/WEB-INF/applicationContext-common-server.xml]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.spotfire.server.cluster.ActiveSpacesClusterInstanceBase]: Factory method 'createInstance' threw exception; nested exception is java.lang.NoClassDefFoundError: com/tibco/as/space/ASException
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)

Issue/Introduction

This article describes a case when a clustered TIBCO Spotfire Server is not able to start and which is commonly seen after an upgrade from 7.5 or higher to a newer version and when clustering is enabled

Resolution

Ensure the as-common.jar (for ActiveSpaces) is copied correctly and only once to the <Spotfire Server install dir>\tomcat\webapps\spotfire\WEB-INF\lib folder on each server machine.

Additional Information

Documentation: TIBCO Spotfire Server Installation and Administration > Setting up a cluster of Spotfire Servers