问题描述
我新建了一个portlet,在开发环境中可以安装部署成功.在生产环境下安装web模块出现下面的错误信息.(生产环境做了集群与负载均衡,开发环境只是一台单独的服务器)EJPAQ1319E:无法安装所选的WAR文件。com.ibm.portal.WpsException:EJPAQ1319E:CannotinstalltheselectedWARfile.atcom.ibm.wps.portlets.portletmanager.actions.DoInstallWebModuleAction.installPortletFromFormFile(DoInstallWebModuleAction.java:633)atcom.ibm.wps.portlets.portletmanager.actions.DoInstallWebModuleAction.doExecute(DoInstallWebModuleAction.java:159)atcom.ibm.wps.portlets.adminstruts.actions.BaseAction.execute(BaseAction.java:64)atcom.ibm.wps.portlets.struts.WpsRequestProcessor.processActionPerform(WpsRequestProcessor.java:338)atorg.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)atcom.ibm.wps.portlets.struts.WpsStrutsPortlet.processActionPerformed(WpsStrutsPortlet.java:1947)atcom.ibm.wps.portlets.struts.WpsStrutsPortlet.actionPerformed(WpsStrutsPortlet.java:1637)atcom.ibm.wps.portlets.adminstruts.WpsAdminStrutsPortlet.actionPerformed(WpsAdminStrutsPortlet.java:213)atcom.ibm.wps.pe.pc.legacy.SPIPortletInterceptorImpl.handleEvents(SPIPortletInterceptorImpl.java:323)EJPPD0015E:用户cn=wpsadmin,cn=users,dc=cccb,dc=com执行命令InstallPortletApplication时portlet应用程序管理器失败。com.ibm.wps.command.CommandFailedException:EJPPD0015E:Portletapplicationmanagerfailedwhenusercn=wpsadmin,cn=users,dc=cccb,dc=comexecutedcommandInstallPortletApplication.atcom.ibm.wps.command.applications.AbstractApplicationsCommand.throwAppMgrException(AbstractApplicationsCommand.java:584)atcom.ibm.wps.command.applications.InstallPortletApplicationCommand.execute(InstallPortletApplicationCommand.java:129)atcom.ibm.wps.portlets.portletmanager.actions.DoInstallWebModuleAction.installPortletFromFormFile(DoInstallWebModuleAction.java:510)atcom.ibm.wps.portlets.portletmanager.actions.DoInstallWebModuleAction.doExecute(DoInstallWebModuleAction.java:159)atcom.ibm.wps.portlets.adminstruts.actions.BaseAction.execute(BaseAction.java:64)atcom.ibm.wps.portlets.struts.WpsRequestProcessor.processActionPerform(WpsRequestProcessor.java:338)atorg.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)atcom.ibm.wps.portlets.struts.WpsStrutsPortlet.processActionPerformed(WpsStrutsPortlet.java:1947)atcom.ibm.wps.portlets.struts.WpsStrutsPortlet.actionPerformed(WpsStrutsPortlet.java:1637)EJPPE0013E:从WAR文件/opt/IBM/WebSphere/PortalServer/deployed/leadermail.war安装Web模块失败。com.ibm.wps.pe.mgr.exceptions.AppServerWarInstallException:EJPPE0013E:InstallationofWebModulefromWARfile/opt/IBM/WebSphere/PortalServer/deployed/leadermail.warfailed.atcom.ibm.wps.pe.mgr.AbstractApplicationManagerImpl.installWebModule(AbstractApplicationManagerImpl.java:617)atcom.ibm.wps.pe.mgr.AbstractApplicationManagerImpl.installWebModule(AbstractApplicationManagerImpl.java:388)atcom.ibm.wps.command.applications.InstallPortletApplicationCommand.execute(InstallPortletApplicationCommand.java:111)atcom.ibm.wps.portlets.portletmanager.actions.DoInstallWebModuleAction.installPortletFromFormFile(DoInstallWebModuleAction.java:510)atcom.ibm.wps.portlets.portletmanager.actions.DoInstallWebModuleAction.doExecute(DoInstallWebModuleAction.java:159)atcom.ibm.wps.portlets.adminstruts.actions.BaseAction.execute(BaseAction.java:64)atcom.ibm.wps.portlets.struts.WpsRequestProcessor.processActionPerform(WpsRequestProcessor.java:338)atorg.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)atcom.ibm.wps.portlets.struts.WpsStrutsPortlet.processActionPerformed(WpsStrutsPortlet.java:1947)EJPPE0001E:实例化AppServerAdminManager失败。com.ibm.wps.pe.mgr.exceptions.InstanceException:EJPPE0001E:InstantiationofAppServerAdminManagerfailed.atcom.ibm.wps.pe.mgr.AbstractApplicationManagerImpl.getAppServerAdminManager(AbstractApplicationManagerImpl.java:190)atcom.ibm.wps.pe.mgr.AbstractApplicationManagerImpl.installWebModule(AbstractApplicationManagerImpl.java:660)atcom.ibm.wps.pe.mgr.AbstractApplicationManagerImpl.installWebModule(AbstractApplicationManagerImpl.java:603)atcom.ibm.wps.pe.mgr.AbstractApplicationManagerImpl.installWebModule(AbstractApplicationManagerImpl.java:388)atcom.ibm.wps.command.applications.InstallPortletApplicationCommand.execute(InstallPortletApplicationCommand.java:111)atcom.ibm.wps.portlets.portletmanager.actions.DoInstallWebModuleAction.installPortletFromFormFile(DoInstallWebModuleAction.java:510)atcom.ibm.wps.portlets.portletmanager.actions.DoInstallWebModuleAction.doExecute(DoInstallWebModuleAction.java:159)atcom.ibm.wps.portlets.adminstruts.actions.BaseAction.execute(BaseAction.java:64)atcom.ibm.wps.portlets.struts.WpsRequestProcessor.processActionPerform(WpsRequestProcessor.java:338)EJPPH0007E:为Portal上下文/wps实例化管理模块失败。com.ibm.wps.pe.mgr.exceptions.InstanceException:EJPPH0007E:InstantiationoftheadministrationmoduleforPortalcontext/wpsfailed.atcom.ibm.wps.pe.mgr.appserveradmin.WAS5Admin.(WAS5Admin.java:210)atcom.ibm.wps.pe.mgr.appserveradmin.WAS5Admin.getInstanceImpl(WAS5Admin.java:259)atcom.ibm.wps.pe.mgr.appserveradmin.WAS5Admin.access$000(WAS5Admin.java:76)atcom.ibm.wps.pe.mgr.appserveradmin.WAS5Admin$1.run(WAS5Admin.java:226)atcom.ibm.ws.security.auth.distContextManagerImpl.runAs(distContextManagerImpl.java:2782)atcom.ibm.ws.security.auth.distContextManagerImpl.runAsSystem(distContextManagerImpl.java:2659)atcom.ibm.wps.pe.mgr.appserveradmin.WAS5Admin.getInstance(WAS5Admin.java:224)atcom.ibm.wps.pe.mgr.appserveradmin.AppServerAdminManagerFactory.getManager(AppServerAdminManagerFactory.java:55)atcom.ibm.wps.pe.mgr.AbstractApplicationManagerImpl.getAppServerAdminManager(AbstractApplicationManagerImpl.java:188)EJPPH0010E:无法从ApplicationServer检索运行时变量且无法对它们进行初始化。com.ibm.wps.pe.mgr.exceptions.InitException:EJPPH0010E:FailedtoretrieveandinitializeruntimevariablesfromApplicationServer.atcom.ibm.wps.pe.mgr.appserveradmin.WAS5Admin.initVars(WAS5Admin.java:401)atcom.ibm.wps.pe.mgr.appserveradmin.WAS5Admin.(WAS5Admin.java:205)atcom.ibm.wps.pe.mgr.appserveradmin.WAS5Admin.getInstanceImpl(WAS5Admin.java:259)atcom.ibm.wps.pe.mgr.appserveradmin.WAS5Admin.access$000(WAS5Admin.java:76)atcom.ibm.wps.pe.mgr.appserveradmin.WAS5Admin$1.run(WAS5Admin.java:226)atcom.ibm.ws.security.auth.distContextManagerImpl.runAs(distContextManagerImpl.java:2782)atcom.ibm.ws.security.auth.distContextManagerImpl.runAsSystem(distContextManagerImpl.java:2659)atcom.ibm.wps.pe.mgr.appserveradmin.WAS5Admin.getInstance(WAS5Admin.java:224)atcom.ibm.wps.pe.mgr.appserveradmin.AppServerAdminManagerFactory.getManager(AppServerAdminManagerFactory.java:55)com.ibm.websphere.management.exception.AdminException:com.ibm.websphere.management.exception.ConnectorException:ADMC0053E:ThesystemcannotcreateaSOAPconnectortoconnecttohostapp1atport8878withSOAPconnectorsecurityenabled.com.ibm.websphere.management.exception.AdminException:com.ibm.websphere.management.exception.ConnectorException:ADMC0053E:ThesystemcannotcreateaSOAPconnectortoconnecttohostapp1atport8878withSOAPconnectorsecurityenabled.atcom.ibm.ws.management.AdminServiceImpl.getDeploymentManagerAdminClient(AdminServiceImpl.java:1426)atcom.ibm.wps.was.helper.WASAdminServiceHelper.getAdminClient(WASAdminServiceHelper.java:127)atcom.ibm.wps.pe.mgr.appserveradmin.WAS5Admin.initVars(WAS5Admin.java:331)atcom.ibm.wps.pe.mgr.appserveradmin.WAS5Admin.(WAS5Admin.java:205)atcom.ibm.wps.pe.mgr.appserveradmin.WAS5Admin.getInstanceImpl(WAS5Admin.java:259)atcom.ibm.wps.pe.mgr.appserveradmin.WAS5Admin.access$000(WAS5Admin.java:76)atcom.ibm.wps.pe.mgr.appserveradmin.WAS5Admin$1.run(WAS5Admin.java:226)atcom.ibm.ws.security.auth.distContextManagerImpl.runAs(distContextManagerImpl.java:2782)atcom.ibm.ws.security.auth.distContextManagerImpl.runAsSystem(distContextManagerImpl.java:2659)
解决方案
解决方案二:
你在建立集群后是否成功部署过portlet呢?在建立集群后必须做一步操作,否则无法像单机环境那样部署portlet。我也遇到过这样的问题。我是这样解决的:在WebSphere/PortalServer/config目录下面执行执行下面命令wpconfig.bataction-remove-deployment-credentialswpconfig.bataction-create-deployment-credentials如果是linux或unix环境则执行wpconfig.sh执行命令后重启集群和Portal服务器。
解决方案三:
补充:两个命令必须在集群的每个节点的WebSpherePortal服务器上个执行一次。