无法从WSO2 AM 3.0.0到4.1.0迁移错误

发布于 2025-02-11 18:00:43 字数 14223 浏览 1 评论 0 原文

我无法迁移WSO2AM 3.0.0至4.1.0。我一直在关注wso2 docs https://apim.docs.wso2.com/en/latest/install-andstall-and-and-setup/upgrading-wso2-api-manager/300---- -410/升级至300到410/。运行步骤4.4时,我会收到以下错误:

ERROR {org.wso2.carbon.apimgt.impl.internal.APIManagerComponent} - Error while initializing the API manager component org.wso2.carbon.apimgt.api.APIManagementException: Error while saving tenant conf to the registry of tenant carbon.super
 
Caused by: org.wso2.carbon.apimgt.api.APIMgtDAOException: Failed to retrieve TENANT Configuration for org: carbon.super
 
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'apim_db.AM_SYSTEM_CONFIGS' doesn't exist
 
ERROR {org.springframework.web.context.ContextLoader} - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]: Cannot resolve reference to bean 'AuthenticationInterceptor' while setting bean property 'inInterceptors' with key [3]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException
 
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException
 
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException
 
Caused by: java.lang.NullPointerException
 
ERROR {org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/api/am/admin]} - Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]: Cannot resolve reference to bean 'AuthenticationInterceptor' while setting bean property 'inInterceptors' with key [3]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException
 
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException
 
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException
 
Caused by: java.lang.NullPointerException
 
ERROR {org.apache.catalina.core.StandardContext} - One or more listeners failed to start. Full details will be found in the appropriate container log file
 
ERROR {org.apache.catalina.core.StandardContext} - Context [/api/am/admin] startup failed due to previous errors
 
ERROR {org.wso2.carbon.tomcat.internal.CarbonTomcat} - Cannot stop context org.apache.catalina.LifecycleException: An invalid Lifecycle transition was attempted ([before_stop]) for component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/api/am/admin]] in state [DESTROYED]
 
ERROR {org.wso2.carbon.tomcat.internal.CarbonTomcat} - Webapp StandardEngine[Catalina].StandardHost[localhost].StandardContext[/api/am/admin] failed to deploy
 
ERROR {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - Error while deploying webapp: StandardContext[api#am#admin.war].File[/wso2/wso2am-4.1.0/repository/deployment/server/webapps/api#am#admin.war] org.wso2.carbon.tomcat.CarbonTomcatException: Webapp failed to deploy

Caused by: java.lang.Exception: Webapp failed to deploy, Lifecycle state is STOPPED

ERROR {org.wso2.carbon.webapp.mgt.AbstractWebappDeployer} - Error occurred while deploying webapp : /wso2/wso2am-4.1.0/repository/deployment/server/webapps/api#am#admin.war org.wso2.carbon.CarbonException: Error while deploying webapp: StandardContext[api#am#admin.war].File[/wso2/wso2am-4.1.0/repository/deployment/server/webapps/api#am#admin.war]

Caused by: org.wso2.carbon.tomcat.CarbonTomcatException: Webapp failed to deploy

Caused by: java.lang.Exception: Webapp failed to deploy, Lifecycle state is STOPPED

ERROR {org.springframework.web.context.ContextLoader} - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]: Cannot resolve reference to bean 'AuthenticationInterceptor' while setting bean property 'inInterceptors' with key [2]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException

Caused by: java.lang.NullPointerException

ERROR {org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/api/am/devops/v0]} - Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]: Cannot resolve reference to bean 'AuthenticationInterceptor' while setting bean property 'inInterceptors' with key [2]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException

Caused by: java.lang.NullPointerException

ERROR {org.apache.catalina.core.StandardContext} - One or more listeners failed to start.

ERROR {org.apache.catalina.core.StandardContext} - Context [/api/am/devops/v0] startup failed due to previous errors

ERROR {org.wso2.carbon.tomcat.internal.CarbonTomcat} - Cannot stop context org.apache.catalina.LifecycleException: An invalid Lifecycle transition was attempted ([before_stop]) for component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/api/am/devops/v0]] in state [DESTROYED]

ERROR {org.wso2.carbon.tomcat.internal.CarbonTomcat} - Webapp StandardEngine[Catalina].StandardHost[localhost].StandardContext[/api/am/devops/v0] failed to deploy

ERROR {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - Error while deploying webapp: StandardContext[api#am#devops#v0.war].File[/wso2/wso2am-4.1.0/repository/deployment/server/webapps/api#am#devops#v0.war] org.wso2.carbon.tomcat.CarbonTomcatException: Webapp failed to deploy

ERROR {org.wso2.carbon.webapp.mgt.AbstractWebappDeployer} - Error occurred while deploying webapp : /wso2/wso2am-4.1.0/repository/deployment/server/webapps/api#am#devops#v0.war org.wso2.carbon.CarbonException: Error while deploying webapp: StandardContext[api#am#devops#v0.war].File[/wso2/wso2am-4.1.0/repository/deployment/server/webapps/api#am#devops#v0.war]

Caused by: org.wso2.carbon.tomcat.CarbonTomcatException: Webapp failed to deploy

Caused by: java.lang.Exception: Webapp failed to deploy, Lifecycle state is STOPPED

ERROR {org.springframework.web.context.ContextLoader} - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]: Cannot resolve reference to bean 'AuthenticationInterceptor' while setting bean property 'inInterceptors' with key [3]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException

Caused by: java.lang.NullPointerException

ERROR {org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/api/am/devportal]} - Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]: Cannot resolve reference to bean 'AuthenticationInterceptor' while setting bean property 'inInterceptors' with key [3]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException

Caused by: java.lang.NullPointerException

以及许多这样的重复错误。

我正在单个节点中使用VM(Amazon Linux)和MySQL(Amazon RDS)中的产品。

I'm unable to migrate WSO2am 3.0.0 to 4.1.0 . I've been following the wso2 docs https://apim.docs.wso2.com/en/latest/install-and-setup/upgrading-wso2-api-manager/300-to-410/upgrading-from-300-to-410/ . When running Step4.4 I get the following errors:

ERROR {org.wso2.carbon.apimgt.impl.internal.APIManagerComponent} - Error while initializing the API manager component org.wso2.carbon.apimgt.api.APIManagementException: Error while saving tenant conf to the registry of tenant carbon.super
 
Caused by: org.wso2.carbon.apimgt.api.APIMgtDAOException: Failed to retrieve TENANT Configuration for org: carbon.super
 
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'apim_db.AM_SYSTEM_CONFIGS' doesn't exist
 
ERROR {org.springframework.web.context.ContextLoader} - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]: Cannot resolve reference to bean 'AuthenticationInterceptor' while setting bean property 'inInterceptors' with key [3]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException
 
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException
 
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException
 
Caused by: java.lang.NullPointerException
 
ERROR {org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/api/am/admin]} - Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]: Cannot resolve reference to bean 'AuthenticationInterceptor' while setting bean property 'inInterceptors' with key [3]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException
 
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException
 
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException
 
Caused by: java.lang.NullPointerException
 
ERROR {org.apache.catalina.core.StandardContext} - One or more listeners failed to start. Full details will be found in the appropriate container log file
 
ERROR {org.apache.catalina.core.StandardContext} - Context [/api/am/admin] startup failed due to previous errors
 
ERROR {org.wso2.carbon.tomcat.internal.CarbonTomcat} - Cannot stop context org.apache.catalina.LifecycleException: An invalid Lifecycle transition was attempted ([before_stop]) for component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/api/am/admin]] in state [DESTROYED]
 
ERROR {org.wso2.carbon.tomcat.internal.CarbonTomcat} - Webapp StandardEngine[Catalina].StandardHost[localhost].StandardContext[/api/am/admin] failed to deploy
 
ERROR {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - Error while deploying webapp: StandardContext[api#am#admin.war].File[/wso2/wso2am-4.1.0/repository/deployment/server/webapps/api#am#admin.war] org.wso2.carbon.tomcat.CarbonTomcatException: Webapp failed to deploy

Caused by: java.lang.Exception: Webapp failed to deploy, Lifecycle state is STOPPED

ERROR {org.wso2.carbon.webapp.mgt.AbstractWebappDeployer} - Error occurred while deploying webapp : /wso2/wso2am-4.1.0/repository/deployment/server/webapps/api#am#admin.war org.wso2.carbon.CarbonException: Error while deploying webapp: StandardContext[api#am#admin.war].File[/wso2/wso2am-4.1.0/repository/deployment/server/webapps/api#am#admin.war]

Caused by: org.wso2.carbon.tomcat.CarbonTomcatException: Webapp failed to deploy

Caused by: java.lang.Exception: Webapp failed to deploy, Lifecycle state is STOPPED

ERROR {org.springframework.web.context.ContextLoader} - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]: Cannot resolve reference to bean 'AuthenticationInterceptor' while setting bean property 'inInterceptors' with key [2]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException

Caused by: java.lang.NullPointerException

ERROR {org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/api/am/devops/v0]} - Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]: Cannot resolve reference to bean 'AuthenticationInterceptor' while setting bean property 'inInterceptors' with key [2]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException

Caused by: java.lang.NullPointerException

ERROR {org.apache.catalina.core.StandardContext} - One or more listeners failed to start.

ERROR {org.apache.catalina.core.StandardContext} - Context [/api/am/devops/v0] startup failed due to previous errors

ERROR {org.wso2.carbon.tomcat.internal.CarbonTomcat} - Cannot stop context org.apache.catalina.LifecycleException: An invalid Lifecycle transition was attempted ([before_stop]) for component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/api/am/devops/v0]] in state [DESTROYED]

ERROR {org.wso2.carbon.tomcat.internal.CarbonTomcat} - Webapp StandardEngine[Catalina].StandardHost[localhost].StandardContext[/api/am/devops/v0] failed to deploy

ERROR {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - Error while deploying webapp: StandardContext[api#am#devops#v0.war].File[/wso2/wso2am-4.1.0/repository/deployment/server/webapps/api#am#devops#v0.war] org.wso2.carbon.tomcat.CarbonTomcatException: Webapp failed to deploy

ERROR {org.wso2.carbon.webapp.mgt.AbstractWebappDeployer} - Error occurred while deploying webapp : /wso2/wso2am-4.1.0/repository/deployment/server/webapps/api#am#devops#v0.war org.wso2.carbon.CarbonException: Error while deploying webapp: StandardContext[api#am#devops#v0.war].File[/wso2/wso2am-4.1.0/repository/deployment/server/webapps/api#am#devops#v0.war]

Caused by: org.wso2.carbon.tomcat.CarbonTomcatException: Webapp failed to deploy

Caused by: java.lang.Exception: Webapp failed to deploy, Lifecycle state is STOPPED

ERROR {org.springframework.web.context.ContextLoader} - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]: Cannot resolve reference to bean 'AuthenticationInterceptor' while setting bean property 'inInterceptors' with key [3]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException

Caused by: java.lang.NullPointerException

ERROR {org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/api/am/devportal]} - Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]: Cannot resolve reference to bean 'AuthenticationInterceptor' while setting bean property 'inInterceptors' with key [3]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationInterceptor' defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor]: Constructor threw exception; nested exception is java.lang.NullPointerException

Caused by: java.lang.NullPointerException

and many such repeated errors.

I'm using the product in a VM(amazon linux) and mysql(amazon RDS) in a single node.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

雪花飘飘的天空 2025-02-18 18:00:44

您必须使用最新的APIM 4.1.0的U2级进行迁移,因为它包含迁移所需的一些更改。这些更改在GA版本中不可用(从网站或GitHub下载)。

如果您有WSO2订阅,则可以使用U2工具[1]将4.1.0更新为最新版本。

[1] -

You have to use the latest U2 level of APIM 4.1.0 for migration since it contains some changes that are required for the migration. Those changes are not available in the GA release (downloaded from website or github).

If you have a WSO2 subscription, you can update 4.1.0 to latest version using the U2 tool[1].

[1] - https://updates.docs.wso2.com/en/latest/updates/overview/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文