在WSO2 API Manager中将LifeCycle添加到租户

问题描述 投票:1回答:2

之前将IS部署为密钥管理器,之后部署为API Manager。他们共享注册表,此部署顺序的结果是APILifecycle被删除(在Extensions-> configure-> Lifecycles下的碳控制台中)。我需要那个生命周期所以我把它添加到超级用户(通过碳控制台),它就可以了。我注意到将APILifeCycle.xml放在/ wso2-home / repository / resources / lifecycles并创建新租户后,文件在GUI中正确创建,但由于租户是在没有.xml的情况下创建的,所以我现在无法添加它。不幸的是,当我尝试通过GUI将生命周期添加到租户时,我收到此错误:

feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: [2019-02-01 18:55:49,280] ERROR - ApplicationDispatcher Servlet.service() for servlet bridgeservlet threw exception
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: java.lang.NullPointerException
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.registry.core.pagination.PaginationUtils.getRowCount(PaginationUtils.java:152)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.governance.lcm.ui.clients.LifeCycleManagementServiceClient.isLifeCycleNameInUse(LifeCycleManagementServiceClient.java:180)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.governance.lcm.ui.clients.LifeCycleManagementServiceClient.isLifeCycleNameInUse(LifeCycleManagementServiceClient.java:167)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.jsp.lcm.nameinusecheck_005flcm_005fajaxprocessor_jsp._jspService(nameinusecheck_005flcm_005fajaxprocessor_jsp.java:91)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:743)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:485)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:410)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.forward(RequestDispatcherAdaptor.java:30)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.redirector.servlet.ui.filters.AllPagesFilter.doFilter(AllPagesFilter.java:156)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.helper.FilterServletAdaptor.service(FilterServletAdaptor.java:37)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.ui.filters.cache.URLBasedCachePreventionFilter.doFilter(URLBasedCachePreventionFilter.java:57)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.owasp.csrfguard.CsrfGuardFilter.doFilter(CsrfGuardFilter.java:88)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:65)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:124)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.identity.context.rewrite.valve.TenantContextRewriteValve.invoke(TenantContextRewriteValve.java:80)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.identity.authz.valve.AuthorizationValve.invoke(AuthorizationValve.java:91)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.identity.auth.valve.AuthenticationValve.invoke(AuthenticationValve.java:65)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:63)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.event.receiver.core.internal.tenantmgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:52)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1775)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1734)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at java.lang.Thread.run(Thread.java:748)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: [2019-02-01 18:55:49,282] ERROR - StandardWrapperValve Servlet.service() for servlet [bridgeservlet] in context with path [/] threw exception [An exception occurred processing JSP page /lcm/nameinusecheck_lcm_ajaxprocessor.jsp at line 24
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: 21: <%
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: 22:     String cookie = (String) session.getAttribute(ServerConstants.ADMIN_SERVICE_COOKIE);
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: 23:     LifeCycleManagementServiceClient client = new LifeCycleManagementServiceClient(cookie, config, session);
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: 24:     boolean isInUse = client.isLifeCycleNameInUse(request);
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: 25:     if (isInUse) {
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: 26:         %>----IsInUse----<%
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: 27:     }
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: Stacktrace:] with root cause
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: java.lang.NullPointerException
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.registry.core.pagination.PaginationUtils.getRowCount(PaginationUtils.java:152)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.governance.lcm.ui.clients.LifeCycleManagementServiceClient.isLifeCycleNameInUse(LifeCycleManagementServiceClient.java:180)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.governance.lcm.ui.clients.LifeCycleManagementServiceClient.isLifeCycleNameInUse(LifeCycleManagementServiceClient.java:167)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.jsp.lcm.nameinusecheck_005flcm_005fajaxprocessor_jsp._jspService(nameinusecheck_005flcm_005fajaxprocessor_jsp.java:91)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:743)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:485)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:410)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.forward(RequestDispatcherAdaptor.java:30)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.redirector.servlet.ui.filters.AllPagesFilter.doFilter(AllPagesFilter.java:156)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.helper.FilterServletAdaptor.service(FilterServletAdaptor.java:37)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.ui.filters.cache.URLBasedCachePreventionFilter.doFilter(URLBasedCachePreventionFilter.java:57)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.owasp.csrfguard.CsrfGuardFilter.doFilter(CsrfGuardFilter.java:88)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:65)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:124)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.identity.context.rewrite.valve.TenantContextRewriteValve.invoke(TenantContextRewriteValve.java:80)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.identity.authz.valve.AuthorizationValve.invoke(AuthorizationValve.java:91)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.identity.auth.valve.AuthenticationValve.invoke(AuthenticationValve.java:65)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:63)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.event.receiver.core.internal.tenantmgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:52)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1775)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1734)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
feb 01 18:55:49 apimanager01-test wso2server.sh[26429]: at java.lang.Thread.run(Thread.java:748)

如何在不删除租户并重新创建租户的情况下解决?谢谢

wso2 wso2is wso2-am wso2carbon
2个回答
2
投票

我做了以下步骤,它的工作原理:

  1. 登录超级租户碳。然后转到Main> Resources> Browse
  2. 转到_system / config / repository / components / org.wso2.carbon.governance / lifecycles
  3. 尝试导出APILifeCycle
  4. 将上述APILifeCycle导入租户A.

然后我可以使用租户A Publisher和Store


0
投票

我设法通过注册表添加APILifecycle,其功能是“添加资源”。路径是/_system/config/repository/components/org.wso2.carbon.governance/lifecycles

我仍然无法通过菜单Extensions-> lifecycles中的GUI添加任何生命周期

© www.soinside.com 2019 - 2024. All rights reserved.