GatewayMigrationUtility.sh gives error java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider
search cancel

GatewayMigrationUtility.sh gives error java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider

book

Article ID: 187151

calendar_today

Updated On:

Products

CA API Gateway API SECURITY CA API Gateway Precision API Monitoring Module for API Gateway (Layer 7) CA API Gateway Enterprise Service Manager (Layer 7) STARTER PACK-7 CA Microgateway

Issue/Introduction

Running GatewayMigrationUtility.sh
Gives error
Exception in thread "main" java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider
       at com.ca.gateway.rest.api.resource.RESManClientFactory.buildRestmanClient (Unknown Source)
       at com.ca.gateway.rest.commandline.command.ListCommand.<init> (Unknown Source)
       at com.ca.gateway.rest.commandline.command.CommandRegistry.<clinit> (Unknown Source)
       at com.ca.gateway.rest.commandline.Main.a (Unknown Source)
       at com.ca.gateway.rest.commandline.Main.main (Unknown Source)
caused by: java.lang.ClassNotFoundException: org.boucnycastle.jce.provider.BouncyCastleProvider
       at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
       at java.lang.URLClassLoader.loadClass(ClassLoader.java:424)
       at sun.miscLauncer$AppClassLoader.loadClass(Launcher.java:349)
       at java.net.URLClassLoader.loadClass(ClassLoader.java:358)
       ... 5 more

Environment

Release : 9.3

Component : API GATEWAY

Resolution

It was found that this GatewayMigrationUtility is running local to the gateway.
But the customer recently changed permissions on the entire directory (both ownership, and rwx)

Install a fresh gmu version with default root ownership of GatewayMigrationUntility.sh and dependent Jars, and the problem is resolved.