Management Server fails to start

Hi,

I am running an AIO installation of Apigee Edge for private cloud v4.50.00. Recently, the management server can't start due to the below classnotfound exception. Please, advise.

2021-05-26 12:59:51,438 org: env: target: contextId: action: Thread-2 INFO KERNEL.DEPLOYMENT - ServiceDeployer.stopService() : ServiceDeployer.unDeploy() : Successfully stopped the service : AuditWipeoutService 2021-05-26 13:00:56,633 org: env: target: contextId: action: main INFO KERNEL - MicroKernel.initInternals() : MicroKernel.start() : MicroKernel start initiated... 2021-05-26 13:00:56,639 org: env: target: contextId: action: main INFO KERNEL - MicroKernel.logJavaAndOSProperties() : Java/OS Properties - {java.ext.dirs=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-5.b12.el7_4.x86_64/jre/lib/ext:/usr/java/packages/lib/ext, java.runtime.name=OpenJDK Runtime Environment, java.runtime.version=1.8.0_151-b12, java.specification.version=1.8, java.vendor=Oracle Corporation, java.security.nssprovider.enabled=false, java.class.version=52.0, java.vendor.url=http://java.oracle.com/, java.specification.name=Java Platform API Specification, java.security.auth.login.config=/opt/apigee/edge-management-server-4.50.00-0.0.20116/conf/jaas.config, java.awt.printerjob=sun.print.PSPrinterJob, os.arch=amd64, java.vm.version=25.151-b12, os.name=Linux, java.home=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-5.b12.el7_4.x86_64/jre, os.version=3.10.0-1127.el7.x86_64, java.endorsed.dirs=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-5.b12.el7_4.x86_64/jre/lib/endorsed, java.rmi.server.randomIDs=true, java.version=1.8.0_151, java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment, java.vm.specification.version=1.8, java.vendor.url.bug=http://bugreport.sun.com/bugreport/, java.vm.specification.name=Java Virtual Machine Specification, java.specification.vendor=Oracle Corporation, java.vm.vendor=Oracle Corporation, java.vm.info=mixed mode, java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib, java.security.properties=/opt/apigee/edge-management-server/conf/jvmsecurity.properties, java.vm.name=OpenJDK 64-Bit Server VM, java.vm.specification.vendor=Oracle Corporation, java.io.tmpdir=/var/tmp} 2021-05-26 13:00:56,654 org: env: target: contextId: action: main INFO KERNEL.CONFIG - KernelConfiguration.loadKernelProperties() : KernelConfiguration.loadKernelProperties() : MicroKernel properties : {checkmarx.scan.validator.enabled=true, profile=management-server, skip.tenantid_index=true, java.security.properties=/opt/apigee/edge-management-server/conf/jvmsecurity.properties, json.deserializer.ignore.unmapped.properties=true, datastax.loadTokenToHostMappingForKeyspaces=true, jsse.enableSNIExtension=false, jute.maxbuffer=10485750, java.io.tmpdir=/var/tmp, has.monetization=${microkernel_hasMonetization}, cwc_pod=default, hermes.nonbatch=false, qpid.session.command_limit=524288, com.warrenstrange.googleauth.rng.algorithm=SHA1PRNG, apigee.syslogger.dateFormat={T}conf_system_apigee.syslogger.dateFormat{/T}, default.response.format=json, flogger.backend_factory=com.apigee.flogger.Slf4jBackendFactory#getInstance, rbac.number.of.tries.for.email.search=1, jdk.tls.allowUnsafeServerCertChange=true, astyanax.datastores=taurus-datastore,kms-datastore,dc-datastore,cache-datastore,counter-datastore,keyvaluemap-datastore,application-datastore,audit-datastore,apimodel-datastore,auth-datastore,scheduler-datastore,edgenotification-datastore, javax.xml.xpath.XPathFactory=http://java.sun.com/jaxp/xpath/dom=org.apache.xpath.jaxp.XPathFactoryImpl, migration.mode.status=false, useG1GC=false, javax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl, useStringDeduplication=false, qpid.session.byte_limit=8388608, lib.dir.name=lib/infra/services,lib/gateway/services,lib/gateway/steps,../edge-analytics/lib/analytics/services, sun.net.maxDatagramSockets=2048, checkmarx.scan.validator.epochtimestampmillis=0, pod=central, com.warrenstrange.googleauth.rng.algorithmProvider=SUN, casssandra.maxConnectTimeInMillis=-1, com.datastax.driver.CHECK_IO_DEADLOCKS=false, setCodeCache=false, json.request.schema.validation.enabled=true, license.file.location=/opt/apigee/customer/conf/license.txt, log.level=INFO, checkmarx.scan.validator.newentity.enabled={T}conf_system_checkmarx.scan.validator.newentity.enabled{/T}, com.datastax.driver.USE_NATIVE_CLOCK=false, validation.entity.name.enabled=true, shutdownServicesOnStop=true, region=dc-1, python.verbose=error, bundle.validation.enabled=false, authenticated.user.header.name=X-Apigee-Current-User, revokeoauthv2.policy.validate=true, javacallout.policy.validate=false, java.security.nssprovider.enabled=false, org.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog} 2021-05-26 13:00:56,705 org: env: target: contextId: action: main ERROR KERNEL - MicroKernel.main() : MicroKernel.main() : Error in starting up the kernel : java.lang.ClassNotFoundException: org.apache.logging.log4j.jcl.LogFactoryImpl (Caused by java.lang.ClassNotFoundException: org.apache.logging.log4j.jcl.LogFactoryImpl) org.apache.commons.logging.LogConfigurationException: java.lang.ClassNotFoundException: org.apache.logging.log4j.jcl.LogFactoryImpl (Caused by java.lang.ClassNotFoundException: org.apache.logging.log4j.jcl.LogFactoryImpl) at org.apache.commons.logging.LogFactory.createFactory(LogFactory.java:1158) at org.apache.commons.logging.LogFactory$2.run(LogFactory.java:960) at java.security.AccessController.doPrivileged(Native Method) at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:957) at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:490) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:669)

Regards,

Hany

0 4 333
4 REPLIES 4

Not applicable

I could recall some issues like this happened because of java sub version.

Can you try java 1.8.0_149 or below?

Hi Ajitav,

I am running Openjdk 1.8.0_151

java -version openjdk version "1.8.0_151" OpenJDK Runtime Environment (build 1.8.0_151-b12) OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)

Regards,

Hany

Sorry for miss type. I corrected. Try a subversion below 149 or above 153

Hi,

I found out that the admin is attaching a javaagent statically in the start script of the management server. That is why the missing dependencies exception was raised. I will consider upgrading the OpenJDK as well. Thanks Ajitav.