Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Docker images on Apple M1 #416

Closed
theyinyanguy opened this issue Jun 24, 2021 · 7 comments
Closed

Using Docker images on Apple M1 #416

theyinyanguy opened this issue Jun 24, 2021 · 7 comments
Milestone

Comments

@theyinyanguy
Copy link

Description:
I'm consuming these docker images on Apple macbook air which is based on Apple Silicon (ARM instruction set). When I use these images the apim container fails. I guess this is due to linux-amd64 JDK. Below is the error log.
Using the ARM based JDK should resolve this issue.

Start WSO2 Carbon server

JAVA_HOME environment variable is set to /opt/java/openjdk

CARBON_HOME environment variable is set to /home/wso2carbon/wso2am-4.0.0

Using Java memory options: -Xms256m -Xmx1024m

[2021-06-24 02:25:23,856] INFO {org.wso2.config.mapper.ConfigParser} - Initializing configurations with deployment configurations

andes [org.wso2.andes.wso2.internal.QpidBundleActivator] INFO : Setting BundleContext in PluginManager

callhome [org.wso2.carbon.callhome.internal.CallHomeActivator] DEBUG : Activating CallHome agent

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate plugin type for PaxOsgi Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate plugin for PaxOsgi Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to invoke factory method in class org.apache.logging.log4j.core.config.AppendersPlugin for element Appenders: java.lang.NullPointerException Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

java.lang.NullPointerException

at org.apache.logging.log4j.core.config.plugins.visitors.PluginElementVisitor.visit(PluginElementVisitor.java:52)

at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.generateParameters(PluginBuilder.java:258)

at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:135)

at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1002)

at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:942)

at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:552)

at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:241)

at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:288)

at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:579)

at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:285)

at org.ops4j.pax.logging.log4j2.internal.PaxLoggingServiceImpl.configureLog4J2(PaxLoggingServiceImpl.java:439)

at org.ops4j.pax.logging.log4j2.internal.PaxLoggingServiceImpl.updated(PaxLoggingServiceImpl.java:272)

at org.ops4j.pax.logging.log4j2.internal.Activator.start(Activator.java:120)

at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:842)

at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)

at java.base/java.security.AccessController.doPrivileged(Native Method)

at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:834)

at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:791)

at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:1013)

at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:365)

at org.eclipse.osgi.container.Module.doStart(Module.java:598)

at org.eclipse.osgi.container.Module.start(Module.java:462)

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$1.run(ModuleContainer.java:1820)

at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$2$1.execute(EquinoxContainerAdaptor.java:150)

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1813)

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1770)

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1735)

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1661)

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)

at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234)

at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:345)

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "PaxOsgi" for logger config "root" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "CARBON_CONSOLE" for logger config "root" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "ERROR_LOGFILE" for logger config "root" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "CARBON_LOGFILE" for logger config "root" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "CARBON_TRACE_LOGFILE" for logger config "trace.messages" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "ATOMIKOS_LOGFILE" for logger config "com.atomikos" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "AUDIT_LOGFILE" for logger config "AUDIT_LOG" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "TRACE_APPENDER" for logger config "TRACE_LOGGER" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "CARBON_LOGFILE" for logger config "org.apache.axis2.wsdl.codegen.writer.PrettyPrinter" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "CORRELATION" for logger config "correlation" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "CARBON_LOGFILE" for logger config "org.apache.directory.shared.ldap.ldif.LdifReader" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "CARBON_LOGFILE" for logger config "org.apache.directory.shared.ldap" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "CARBON_LOGFILE" for logger config "org.apache.directory.server.ldap.LdapProtocolHandler" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "OPEN_TRACING" for logger config "trace" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "CARBON_LOGFILE" for logger config "org.apache.directory.shared.ldap.entry.DefaultServerAttribute" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "CARBON_LOGFILE" for logger config "org.apache.directory.server.ldap.handlers" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "SERVICE_APPENDER" for logger config "SERVICE_LOGGER" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "CARBON_LOGFILE" for logger config "org.apache.directory.server.ldap.LdapSession" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "CARBON_LOGFILE" for logger config "org.apache.directory.server.core" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "CARBON_LOGFILE" for logger config "org.apache.directory.server.core.DefaultDirectoryService" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "BOTDATA_APPENDER" for logger config "org.wso2.carbon.apimgt.gateway.mediators.BotDetectionMediator" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "CARBON_LOGFILE" for logger config "org.apache.axis2.enterprise" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate plugin type for PaxOsgi Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate plugin for PaxOsgi Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to invoke factory method in class org.apache.logging.log4j.core.config.AppendersPlugin for element Appenders: java.lang.NullPointerException Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

java.lang.NullPointerException

at org.apache.logging.log4j.core.config.plugins.visitors.PluginElementVisitor.visit(PluginElementVisitor.java:52)

at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.generateParameters(PluginBuilder.java:258)

at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:135)

at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1002)

at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:942)

at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:552)

at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:241)

at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:288)

at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:579)

at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:285)

at org.ops4j.pax.logging.log4j2.internal.PaxLoggingServiceImpl.configureLog4J2(PaxLoggingServiceImpl.java:439)

at org.ops4j.pax.logging.log4j2.internal.PaxLoggingServiceImpl.updated(PaxLoggingServiceImpl.java:272)

at org.ops4j.pax.logging.log4j2.internal.PaxLoggingServiceImpl$1ManagedPaxLoggingService.updated(PaxLoggingServiceImpl.java:581)

at org.eclipse.equinox.internal.cm.ManagedServiceTracker$1.run(ManagedServiceTracker.java:279)

at org.eclipse.equinox.internal.cm.SerializedTaskQueue$1.run(SerializedTaskQueue.java:40)

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "PaxOsgi" for logger config "root" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "CARBON_CONSOLE" for logger config "root" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "ERROR_LOGFILE" for logger config "root" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "CARBON_LOGFILE" for logger config "root" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "CARBON_TRACE_LOGFILE" for logger config "trace.messages" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "ATOMIKOS_LOGFILE" for logger config "com.atomikos" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "AUDIT_LOGFILE" for logger config "AUDIT_LOG" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "TRACE_APPENDER" for logger config "TRACE_LOGGER" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "CARBON_LOGFILE" for logger config "org.apache.axis2.wsdl.codegen.writer.PrettyPrinter" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "CORRELATION" for logger config "correlation" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "CARBON_LOGFILE" for logger config "org.apache.directory.shared.ldap.ldif.LdifReader" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "CARBON_LOGFILE" for logger config "org.apache.directory.shared.ldap" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "CARBON_LOGFILE" for logger config "org.apache.directory.server.ldap.LdapProtocolHandler" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "OPEN_TRACING" for logger config "trace" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "CARBON_LOGFILE" for logger config "org.apache.directory.shared.ldap.entry.DefaultServerAttribute" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "CARBON_LOGFILE" for logger config "org.apache.directory.server.ldap.handlers" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "SERVICE_APPENDER" for logger config "SERVICE_LOGGER" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "CARBON_LOGFILE" for logger config "org.apache.directory.server.ldap.LdapSession" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "CARBON_LOGFILE" for logger config "org.apache.directory.server.core" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "CARBON_LOGFILE" for logger config "org.apache.directory.server.core.DefaultDirectoryService" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "BOTDATA_APPENDER" for logger config "org.wso2.carbon.apimgt.gateway.mediators.BotDetectionMediator" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "CARBON_LOGFILE" for logger config "org.apache.axis2.enterprise" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

A fatal error has been detected by the Java Runtime Environment:

SIGSEGV (0xb) at pc=0x000000401d4b5801, pid=88, tid=129

JRE version: OpenJDK Runtime Environment AdoptOpenJDK-11.0.11+9 (11.0.11+9) (build 11.0.11+9)

Java VM: OpenJDK 64-Bit Server VM AdoptOpenJDK-11.0.11+9 (11.0.11+9, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)

Problematic frame:

J 690 c1 java.util.Arrays$ArrayItr.next()Ljava/lang/Object; java.base@11.0.11 (36 bytes) @ 0x000000401d4b5801 [0x000000401d4b57e0+0x0000000000000021]

No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

An error report file with more information is saved as:

/home/wso2carbon/wso2am-4.0.0/hs_err_pid88.log

Compiled method (c1) 73474 690 3 java.util.Arrays$ArrayItr::next (36 bytes)

total in heap [0x000000401d4b5610,0x000000401d4b5a90] = 1152

relocation [0x000000401d4b5788,0x000000401d4b57c8] = 64

main code [0x000000401d4b57e0,0x000000401d4b5980] = 416

stub code [0x000000401d4b5980,0x000000401d4b59c0] = 64

metadata [0x000000401d4b59c0,0x000000401d4b59c8] = 8

scopes data [0x000000401d4b59c8,0x000000401d4b59f8] = 48

scopes pcs [0x000000401d4b59f8,0x000000401d4b5a78] = 128

dependencies [0x000000401d4b5a78,0x000000401d4b5a80] = 8

nul chk table [0x000000401d4b5a80,0x000000401d4b5a90] = 16

Could not load hsdis-amd64.so; library not loadable; PrintAssembly is disabled

If you would like to submit a bug report, please visit:

https://github.com/AdoptOpenJDK/openjdk-support/issues

qemu: uncaught target signal 6 (Aborted) - core dumped

Aborted


Suggested Labels:

Apple M1, ARM JDK
Suggested Assignees:

Affected Product Version:
docker-apim-4.0.0
OS, DB, other environment details and versions:
macOS Big Sur 11.4. Apple M1
Steps to reproduce:
docker-compose up --build

Related Issues:

@theyinyanguy
Copy link
Author

Preference would be to have a Multi-Architecture support or ability to configure the JDK

@prokopsimek
Copy link

prokopsimek commented Jul 13, 2021

@theyinyanguy It should be fixed in OpenJDK v17 but I have another error in version 18. Still investigating.

Edit: v17 same error java.lang.NullPointerException

log openjdk v18
api-manager_1  | [2021-07-13 09:58:16,168]  INFO - DefaultCryptoProviderComponent 'CryptoService.Secret' property has not been set. 'org.wso2.carbon.crypto.provider.SymmetricKeyInternalCryptoProvider' won't be registered as an internal crypto provider. Please set the secret if the provider needs to be registered.
api-manager_1  | [2021-07-13 09:58:16,550] ERROR - Digester Begin event threw exception
api-manager_1  | java.lang.ClassNotFoundException: org.wso2.carbon.tomcat.ext.service.ExtendedStandardService
api-manager_1  |        at jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) ~[?:?]
api-manager_1  |        at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) ~[?:?]
api-manager_1  |        at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
api-manager_1  |        at org.eclipse.osgi.internal.framework.ContextFinder.loadClass(ContextFinder.java:139) ~[?:?]
api-manager_1  |        at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
api-manager_1  |        at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:104) ~[tomcat_9.0.34.wso2v1.jar:?]
api-manager_1  |        at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1220) [tomcat_9.0.34.wso2v1.jar:?]
api-manager_1  |        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) [xercesImpl-2.8.1.wso2v2.jar:?]
api-manager_1  |        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) [xercesImpl-2.8.1.wso2v2.jar:?]
api-manager_1  |        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) [xercesImpl-2.8.1.wso2v2.jar:?]
api-manager_1  |        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) [xercesImpl-2.8.1.wso2v2.jar:?]
api-manager_1  |        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) [xercesImpl-2.8.1.wso2v2.jar:?]
api-manager_1  |        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) [xercesImpl-2.8.1.wso2v2.jar:?]
api-manager_1  |        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) [xercesImpl-2.8.1.wso2v2.jar:?]
api-manager_1  |        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) [xercesImpl-2.8.1.wso2v2.jar:?]
api-manager_1  |        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) [xercesImpl-2.8.1.wso2v2.jar:?]
api-manager_1  |        at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1495) [tomcat_9.0.34.wso2v1.jar:?]
api-manager_1  |        at org.wso2.carbon.tomcat.internal.CarbonTomcat.configure(CarbonTomcat.java:90) [org.wso2.carbon.tomcat_4.6.2.jar:?]
api-manager_1  |        at org.wso2.carbon.tomcat.internal.ServerManager.init(ServerManager.java:156) [org.wso2.carbon.tomcat_4.6.2.jar:?]
api-manager_1  |        at org.wso2.carbon.tomcat.internal.TomcatBundleActivator.start(TomcatBundleActivator.java:40) [org.wso2.carbon.tomcat_4.6.2.jar:?]
api-manager_1  |        at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:842) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at java.security.AccessController.doPrivileged(Native Method) [?:?]
api-manager_1  |        at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:834) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:791) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:1013) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:365) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.container.Module.doStart(Module.java:598) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.container.Module.start(Module.java:462) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$1.run(ModuleContainer.java:1820) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$2$1.execute(EquinoxContainerAdaptor.java:150) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1813) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1770) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1735) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1661) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:345) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  | [2021-07-13 09:58:16,574] FATAL - TomcatBundleActivator Error while starting server org/wso2/carbon/utils/logging/handler/TenantDomainSetter
api-manager_1  | java.lang.NoClassDefFoundError: org/wso2/carbon/utils/logging/handler/TenantDomainSetter
api-manager_1  |        at org.wso2.carbon.log4j2.plugins.AppNameConverter.getAppName(AppNameConverter.java:78) ~[org.wso2.carbon.pax-logging-log4j2-plugins_4.6.2.jar:?]
api-manager_1  |        at org.wso2.carbon.log4j2.plugins.AppNameConverter.format(AppNameConverter.java:65) ~[org.wso2.carbon.pax-logging-log4j2-plugins_4.6.2.jar:?]
api-manager_1  |        at org.apache.logging.log4j.core.pattern.PatternFormatter.format(PatternFormatter.java:38) ~[org.ops4j.pax.logging.pax-logging-log4j2_1.11.3.jar:?]
api-manager_1  |        at org.apache.logging.log4j.core.layout.PatternLayout$PatternSerializer.toSerializable(PatternLayout.java:341) ~[org.ops4j.pax.logging.pax-logging-log4j2_1.11.3.jar:?]
api-manager_1  |        at org.apache.logging.log4j.core.layout.PatternLayout.toText(PatternLayout.java:240) ~[org.ops4j.pax.logging.pax-logging-log4j2_1.11.3.jar:?]
api-manager_1  |        at org.apache.logging.log4j.core.layout.PatternLayout.encode(PatternLayout.java:225) ~[org.ops4j.pax.logging.pax-logging-log4j2_1.11.3.jar:?]
api-manager_1  |        at org.apache.logging.log4j.core.layout.PatternLayout.encode(PatternLayout.java:59) ~[org.ops4j.pax.logging.pax-logging-log4j2_1.11.3.jar:?]
api-manager_1  |        at org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.directEncodeEvent(AbstractOutputStreamAppender.java:197) ~[org.ops4j.pax.logging.pax-logging-log4j2_1.11.3.jar:?]
api-manager_1  |        at org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.tryAppend(AbstractOutputStreamAppender.java:190) ~[org.ops4j.pax.logging.pax-logging-log4j2_1.11.3.jar:?]
api-manager_1  |        at org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.append(AbstractOutputStreamAppender.java:181) ~[org.ops4j.pax.logging.pax-logging-log4j2_1.11.3.jar:?]
api-manager_1  |        at org.apache.logging.log4j.core.appender.RollingFileAppender.append(RollingFileAppender.java:312) ~[org.ops4j.pax.logging.pax-logging-log4j2_1.11.3.jar:?]
api-manager_1  |        at org.apache.logging.log4j.core.config.AppenderControl.tryCallAppender(AppenderControl.java:156) ~[org.ops4j.pax.logging.pax-logging-log4j2_1.11.3.jar:?]
api-manager_1  |        at org.apache.logging.log4j.core.config.AppenderControl.callAppender0(AppenderControl.java:129) ~[org.ops4j.pax.logging.pax-logging-log4j2_1.11.3.jar:?]
api-manager_1  |        at org.apache.logging.log4j.core.config.AppenderControl.callAppenderPreventRecursion(AppenderControl.java:120) ~[org.ops4j.pax.logging.pax-logging-log4j2_1.11.3.jar:?]
api-manager_1  |        at org.apache.logging.log4j.core.config.AppenderControl.callAppender(AppenderControl.java:84) ~[org.ops4j.pax.logging.pax-logging-log4j2_1.11.3.jar:?]
api-manager_1  |        at org.apache.logging.log4j.core.config.LoggerConfig.callAppenders(LoggerConfig.java:543) ~[org.ops4j.pax.logging.pax-logging-log4j2_1.11.3.jar:?]
api-manager_1  |        at org.apache.logging.log4j.core.config.LoggerConfig.processLogEvent(LoggerConfig.java:502) ~[org.ops4j.pax.logging.pax-logging-log4j2_1.11.3.jar:?]
api-manager_1  |        at org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:485) ~[org.ops4j.pax.logging.pax-logging-log4j2_1.11.3.jar:?]
api-manager_1  |        at org.apache.logging.log4j.core.config.LoggerConfig.logParent(LoggerConfig.java:534) ~[org.ops4j.pax.logging.pax-logging-log4j2_1.11.3.jar:?]
api-manager_1  |        at org.apache.logging.log4j.core.config.LoggerConfig.processLogEvent(LoggerConfig.java:504) ~[org.ops4j.pax.logging.pax-logging-log4j2_1.11.3.jar:?]
api-manager_1  |        at org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:485) ~[org.ops4j.pax.logging.pax-logging-log4j2_1.11.3.jar:?]
api-manager_1  |        at org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:412) ~[org.ops4j.pax.logging.pax-logging-log4j2_1.11.3.jar:?]
api-manager_1  |        at org.apache.logging.log4j.core.config.AwaitCompletionReliabilityStrategy.log(AwaitCompletionReliabilityStrategy.java:63) ~[org.ops4j.pax.logging.pax-logging-log4j2_1.11.3.jar:?]
api-manager_1  |        at org.apache.logging.log4j.core.Logger.logMessage(Logger.java:154) ~[org.ops4j.pax.logging.pax-logging-log4j2_1.11.3.jar:?]
api-manager_1  |        at org.ops4j.pax.logging.log4j2.internal.PaxLoggerImpl.doLog0(PaxLoggerImpl.java:354) ~[org.ops4j.pax.logging.pax-logging-log4j2_1.11.3.jar:?]
api-manager_1  |        at org.ops4j.pax.logging.log4j2.internal.PaxLoggerImpl.doLog(PaxLoggerImpl.java:337) ~[org.ops4j.pax.logging.pax-logging-log4j2_1.11.3.jar:?]
api-manager_1  |        at org.ops4j.pax.logging.log4j2.internal.PaxLoggerImpl.error(PaxLoggerImpl.java:163) ~[org.ops4j.pax.logging.pax-logging-log4j2_1.11.3.jar:?]
api-manager_1  |        at org.ops4j.pax.logging.internal.TrackingLogger.error(TrackingLogger.java:130) ~[org.ops4j.pax.logging.pax-logging-api_1.11.3.jar:?]
api-manager_1  |        at org.ops4j.pax.logging.juli.JuliLogger.error(JuliLogger.java:133) ~[org.ops4j.pax.logging.pax-logging-api_1.11.3.jar:?]
api-manager_1  |        at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1222) ~[tomcat_9.0.34.wso2v1.jar:?]
api-manager_1  |        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) ~[xercesImpl-2.8.1.wso2v2.jar:?]
api-manager_1  |        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) ~[xercesImpl-2.8.1.wso2v2.jar:?]
api-manager_1  |        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) ~[xercesImpl-2.8.1.wso2v2.jar:?]
api-manager_1  |        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) ~[xercesImpl-2.8.1.wso2v2.jar:?]
api-manager_1  |        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[xercesImpl-2.8.1.wso2v2.jar:?]
api-manager_1  |        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[xercesImpl-2.8.1.wso2v2.jar:?]
api-manager_1  |        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) ~[xercesImpl-2.8.1.wso2v2.jar:?]
api-manager_1  |        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) ~[xercesImpl-2.8.1.wso2v2.jar:?]
api-manager_1  |        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) ~[xercesImpl-2.8.1.wso2v2.jar:?]
api-manager_1  |        at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1495) ~[tomcat_9.0.34.wso2v1.jar:?]
api-manager_1  |        at org.wso2.carbon.tomcat.internal.CarbonTomcat.configure(CarbonTomcat.java:90) ~[org.wso2.carbon.tomcat_4.6.2.jar:?]
api-manager_1  |        at org.wso2.carbon.tomcat.internal.ServerManager.init(ServerManager.java:156) ~[org.wso2.carbon.tomcat_4.6.2.jar:?]
api-manager_1  |        at org.wso2.carbon.tomcat.internal.TomcatBundleActivator.start(TomcatBundleActivator.java:40) [org.wso2.carbon.tomcat_4.6.2.jar:?]
api-manager_1  |        at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:842) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at java.security.AccessController.doPrivileged(Native Method) [?:?]
api-manager_1  |        at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:834) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:791) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:1013) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:365) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.container.Module.doStart(Module.java:598) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.container.Module.start(Module.java:462) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$1.run(ModuleContainer.java:1820) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$2$1.execute(EquinoxContainerAdaptor.java:150) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1813) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1770) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1735) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1661) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:345) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  | [2021-07-13 09:58:16,678]  INFO - DefaultCryptoProviderComponent 'CryptoService.Secret' property has not been set. 'org.wso2.carbon.crypto.provider.SymmetricKeyInternalCryptoProvider' won't be registered as an internal crypto provider. Please set the secret if the provider needs to be registered.
api-manager_1  | [2021-07-13 09:58:16,731]  INFO - DefaultCryptoProviderComponent 'CryptoService.Secret' property has not been set. 'org.wso2.carbon.crypto.provider.SymmetricKeyInternalCryptoProvider' won't be registered as an internal crypto provider. Please set the secret if the provider needs to be registered.
api-manager_1  | [2021-07-13 09:58:16,775]  INFO - DefaultCryptoProviderComponent 'CryptoService.Secret' property has not been set. 'org.wso2.carbon.crypto.provider.SymmetricKeyInternalCryptoProvider' won't be registered as an internal crypto provider. Please set the secret if the provider needs to be registered.
api-manager_1  | [2021-07-13 09:58:16,876]  INFO - DefaultCryptoProviderComponent 'CryptoService.Secret' property has not been set. 'org.wso2.carbon.crypto.provider.SymmetricKeyInternalCryptoProvider' won't be registered as an internal crypto provider. Please set the secret if the provider needs to be registered.
api-manager_1  | [2021-07-13 09:58:17,317] ERROR - Activator Cannot start User Manager Core bundle
api-manager_1  | java.lang.RuntimeException: Error in looking up data source: Failed to create InitialContext using factory specified in hash table.
api-manager_1  |        at org.wso2.carbon.user.core.util.DatabaseUtil.lookupDataSource(DatabaseUtil.java:98) ~[org.wso2.carbon.user.core_4.6.2.jar:?]
api-manager_1  |        at org.wso2.carbon.user.core.util.DatabaseUtil.createRealmDataSource(DatabaseUtil.java:341) ~[org.wso2.carbon.user.core_4.6.2.jar:?]
api-manager_1  |        at org.wso2.carbon.user.core.util.DatabaseUtil.getRealmDataSource(DatabaseUtil.java:78) ~[org.wso2.carbon.user.core_4.6.2.jar:?]
api-manager_1  |        at org.wso2.carbon.user.core.common.DefaultRealmService.<init>(DefaultRealmService.java:90) ~[org.wso2.carbon.user.core_4.6.2.jar:?]
api-manager_1  |        at org.wso2.carbon.user.core.common.DefaultRealmService.<init>(DefaultRealmService.java:115) ~[org.wso2.carbon.user.core_4.6.2.jar:?]
api-manager_1  |        at org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:72) [org.wso2.carbon.user.core_4.6.2.jar:?]
api-manager_1  |        at org.wso2.carbon.user.core.internal.BundleCheckActivator.start(BundleCheckActivator.java:61) [org.wso2.carbon.user.core_4.6.2.jar:?]
api-manager_1  |        at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:842) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at java.security.AccessController.doPrivileged(Native Method) [?:?]
api-manager_1  |        at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:834) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:791) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:1013) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:365) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.container.Module.doStart(Module.java:598) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.container.Module.start(Module.java:462) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$1.run(ModuleContainer.java:1820) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$2$1.execute(EquinoxContainerAdaptor.java:150) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1813) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1770) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1735) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1661) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  |        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:345) [org.eclipse.osgi_3.14.0.v20190517-1309.jar:?]
api-manager_1  | Caused by: javax.naming.NoInitialContextException: Failed to create InitialContext using factory specified in hash table.
api-manager_1  |        at org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContextFactoryBuilder.createInitialContextFactory(CarbonContextDataHolder.java:491) ~[?:?]
api-manager_1  |        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:716) ~[?:?]
api-manager_1  |        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:305) ~[?:?]
api-manager_1  |        at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:333) ~[?:?]
api-manager_1  |        at javax.naming.InitialContext.lookup(InitialContext.java:409) ~[?:?]
api-manager_1  |        at javax.naming.InitialContext.doLookup(InitialContext.java:282) ~[?:?]
api-manager_1  |        at org.wso2.carbon.user.core.util.DatabaseUtil.lookupDataSource(DatabaseUtil.java:96) ~[org.wso2.carbon.user.core_4.6.2.jar:?]
api-manager_1  |        ... 24 more
api-manager_1  | Caused by: java.lang.ClassNotFoundException: class org.wso2.carbon.tomcat.jndi.CarbonJavaURLContextFactory not found
api-manager_1  |        at org.wso2.carbon.context.internal.CarbonContextDataHolder.classForName(CarbonContextDataHolder.java:1208) ~[?:?]
api-manager_1  |        at org.wso2.carbon.context.internal.CarbonContextDataHolder.access$700(CarbonContextDataHolder.java:94) ~[?:?]
api-manager_1  |        at org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContextFactoryBuilder.createInitialContextFactory(CarbonContextDataHolder.java:456) ~[?:?]
api-manager_1  |        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:716) ~[?:?]
api-manager_1  |        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:305) ~[?:?]
api-manager_1  |        at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:333) ~[?:?]
api-manager_1  |        at javax.naming.InitialContext.lookup(InitialContext.java:409) ~[?:?]
api-manager_1  |        at javax.naming.InitialContext.doLookup(InitialContext.java:282) ~[?:?]
api-manager_1  |        at org.wso2.carbon.user.core.util.DatabaseUtil.lookupDataSource(DatabaseUtil.java:96) ~[org.wso2.carbon.user.core_4.6.2.jar:?]
api-manager_1  |        ... 24 more

@theyinyanguy
Copy link
Author

Thanks for your help @prokopsimek. Just to clarify openjdk v18 is the host JDK or the JDK in the docker image? Also did you update the docker file?

@prokopsimek
Copy link

@theyinyanguy the host openjdk v18 and I haven't updated Dockerfile and it could be probably next step.

@LahiruLS
Copy link

LahiruLS commented Nov 2, 2021

https://hub.docker.com/r/lahirulls/wso2apim-for-m1 This seems to work.
The problem here is due to the use of the incorrect JDK/JRE version. As the Apple M1 chip is based on the arm64v8 instruction set we need to use an arm64 base image. I have created the above using arm64v8

@PasanT9
Copy link
Contributor

PasanT9 commented Mar 21, 2022

With the #428 you should be able to use Ubuntu and CentOS images to build APIM 4.0.0 on arm64 devices as well.

@RakhithaRR
Copy link
Contributor

We have updated our Dockerfiles to support arm64 compatible JDKs. This will solve the issue of building the image on M1 based Macbooks. Furthermore, will be releasing an image which will support both amd64 and arm64 architecture. Please note that this image is for testing only, not for production use.

@RakhithaRR RakhithaRR added this to the v4.1.0.1 milestone Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants