VMware Tanzu GemFire [VMs] not starting because of NoClassDefFoundError
search cancel

VMware Tanzu GemFire [VMs] not starting because of NoClassDefFoundError

book

Article ID: 294312

calendar_today

Updated On:

Products

VMware Tanzu Gemfire

Issue/Introduction

VMware Tanzu GemFire [VMs] service instance is not starting after a new deployment of custom jars.

Running BOSH instances will only show locators and possibly in various states:
ubuntu@opsmanager-2-6:~$ bosh -d service-instance_[ID] instances

Using environment '10.10.10.35' as client 'ops_manager'
Task 39666490. Done

Deployment 'service-instance_e666cba4-b8da-44c4-b1cf-06755ab4eaee'

Instance                       Process State AZ  IPs
locator-server/16665efd-2d0b-427a-9b77-ac7370c9301a starting    AZ1 10.10.10.1
locator-server/26667a8d-f5ee-4590-8c23-0fb3e4294588 stopped    AZ2 10.10.10.2
locator-server/46666104-4273-498b-9190-33cbb649d0ff starting    AZ3 10.10.10.3

There are no cache servers shown.


Environment

Product Version: 1.8

Resolution

Check the logs from the cache servers for the following messages:
[error 2020/04/08 08:44:13.509 UTC cacheserver-66635efd-2d0b-427a-9b77-ac7370c9301a <main> tid=0x1] java.lang.NoClassDefFoundError: com/company/service/MyFunction

[error 2020/04/08 06:13:53.191 UTC cacheserver-66635efd-2d0b-427a-9b77-ac7370c9301a <main> tid=0x1] Unable to load all classes from JAR file: /var/vcap/store/gemfire-server/myJarV3.jar

The above messages indicate that the class MyFunction could not be found in the deployed jar called myJarV3.jar. This might be due to an issue with the deployment pipeline.

Make sure that the needed classes are all added to the jars. Redeploy and restart the service instance.