API Gateway Login Issue

We installed API gateway using image file and we are not able to login to API gateway getting error as invalid credentials.

IS logs:

Unable to deploy module from file:policyGatewayModule.mar. Error:null org.apache.axis2.deployment.DeploymentException: null
at org.apache.axis2.deployment.DeploymentEngine.buildModule(DeploymentEngine.java:1063) ~[axis2-kernel-1.6.2.jar:1.6.2.14-v0061]
at com.softwareag.pg.PolicyGateway.deployModules(PolicyGateway.java:420) ~[?:?]
at com.softwareag.pg.PolicyGateway.deployModules(PolicyGateway.java:410) ~[?:?]
at com.softwareag.pg.PolicyGateway.deployModulesFromPGRepository(PolicyGateway.java:393) ~[?:?]
at com.softwareag.pg.PolicyGateway.init(PolicyGateway.java:200) ~[?:?]
at com.softwareag.pg.PolicyGateway.init(PolicyGateway.java:133) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_261]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_261]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_261]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_261]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1870) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1813) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1741) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:576) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:307) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans.jar:?]
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1083) ~[spring-context.jar:?]
at com.softwareag.pg.init.BeanConfigUtil.getBean(BeanConfigUtil.java:205) ~[?:?]
at com.softwareag.apigateway.core.approval.handlers.ApplicationRegistrationCompletionHandler.(ApplicationRegistrationCompletionHandler.java:37) ~[?:?]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_261]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_261]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_261]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_261]
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:172) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1262) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1164) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:538) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring-beans.jar:?]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) [spring-beans.jar:?]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) [spring-beans.jar:?]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:846) [spring-beans.jar:?]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:863) [spring-context.jar:?]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546) [spring-context.jar:?]
at com.softwareag.pg.init.BeanConfigUtil.initAppContext(BeanConfigUtil.java:326) [?:?]
at com.softwareag.pg.init.BeanConfigUtil.init(BeanConfigUtil.java:89) [?:?]
at com.softwareag.apigateway.is.init.ISPackageManager.startup(ISPackageManager.java:114) [?:?]
at apigateway.startup(apigateway.java:37) [?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_261]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_261]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_261]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_261]
at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:411) [wm-isserver.jar:10.5.0.0000-0084]
at com.wm.app.b2b.server.invoke.InvokeManager.process(InvokeManager.java:747) [wm-isserver.jar:10.5.0.0000-0084]
at com.wm.app.b2b.server.util.tspace.ReservationProcessor.process(ReservationProcessor.java:46) [wm-isserver.jar:10.5.0.0000-0084]
at com.wm.app.b2b.server.invoke.StatisticsProcessor.process(StatisticsProcessor.java:61) [wm-isserver.jar:10.5.0.0000-0084]
at com.wm.app.b2b.server.invoke.ServiceCompletionImpl.process(ServiceCompletionImpl.java:250) [wm-isserver.jar:10.5.0.0000-0084]
at com.wm.app.b2b.server.invoke.ValidateProcessor.process(ValidateProcessor.java:56) [wm-isserver.jar:10.5.0.0000-0084]
at com.wm.app.b2b.server.invoke.PipelineProcessor.process(PipelineProcessor.java:178) [wm-isserver.jar:10.5.0.0000-0084]
at com.wm.app.b2b.server.ACLManager.process(ACLManager.java:345) [wm-isserver.jar:10.5.0.0000-0084]
at com.wm.app.b2b.server.invoke.DispatchProcessor.process(DispatchProcessor.java:41) [wm-isserver.jar:10.5.0.0000-0084]
at com.wm.app.b2b.server.AuditLogManager.process(AuditLogManager.java:401) [wm-isserver.jar:10.5.0.0000-0084]
at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:617) [wm-isserver.jar:10.5.0.0000-0084]
at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:426) [wm-isserver.jar:10.5.0.0000-0084]
at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:384) [wm-isserver.jar:10.5.0.0000-0084]
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:253) [wm-isserver.jar:10.5.0.0000-0084]
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:122) [wm-isserver.jar:10.5.0.0000-0084]
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:81) [wm-isserver.jar:10.5.0.0000-0084]
at com.wm.app.b2b.server.SessionInvoke.run(SessionInvoke.java:35) [wm-isserver.jar:10.5.0.0000-0084]
at com.wm.util.pool.PooledThread.run(PooledThread.java:134) [wm-isclient.jar:1.0.3]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_261]
Caused by: org.apache.axis2.deployment.DeploymentException
at org.apache.axis2.deployment.repository.util.ArchiveReader.readModuleArchive(ArchiveReader.java:568) ~[axis2-kernel-1.6.2.jar:1.6.2.14-v0061]
at org.apache.axis2.deployment.DeploymentEngine.buildModule(DeploymentEngine.java:1036) ~[axis2-kernel-1.6.2.jar:1.6.2.14-v0061]
… 67 more

=====================================================
the APIGateway package is partially loaded.

shows below errors in packages

java.lang.RuntimeException: java.lang.Exception: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘changeOwnerApprovalCompletionHandler’ defined in file [/opt/webMethods/IntegrationServer/instances/default/packages/WmAPIGateway/config/resources/beans/gateway-core.xml]: Cannot resolve reference to bean ‘orchestrationManager’ while setting bean property ‘orchestrationManager’;


I am attaching the installation logs, while installing it didnt ask for the license file path. not sure the issue is because of it. and how to provide license file to API gateway now.

APIGateway.log (63.9 KB)

Hi Tahaseen,
This error maybe because of license issue. Please copy API Gateway license file to location Installation Folder\IntegrationServer\instances\default\config → licenseKey.xml file and restart the server.

Regards.

Hi Praba,

we already had a license file there, I tried replacing it with APIGateway licence file, but the issue didn’t resolve. facing same errors in logs and package as well.

thanks
Tahaseen

Hi Tahaseen,

Is this installation done on top of the existing installation?

If YES, is the existing installation contain an MFT product?

Regards,
Ranjith

Hi Ranjith,

yes, the installation of API gateway was done on existing IS.
No we dont have MFT installed,
we have TN,MWS,UM

Thanks
Tahaseen

Hi Tahaseen,

I hope that might be the problem.

I know that API Gateway and MFT/CloudStream should not be in the same IS.

If possible please try to install API Gateway in a separate node.

Regards,
Ranjith

1 Like

Thanks Ranjit,

We also contacted SAG team and they updated - API GW has to be installed on its own host IS server; it cannot share an IS with other products.
we are gonna install it separately.

Tahaseen

Hi Ranjit,

we also want to install API portal in the same host,
we tried to use SAG installer, could not found API portal/developer portal there,

thanks and Regards
Tahaseen

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.