Websphere 门户服务器 - 通过 WAS 控制台访问门户管理
Websphere portal server - Accessing portal admin through the WAS console
我错误地删除了登录 portlet,现在无法登录查看 wps 管理控制台。可以通过 WAS 控制台访问吗?
一个简单的解决方案是使用如下查询参数登录:
http://server:port/wps/portal/cxml/04_SD9ePMtCP1I800I_KydQvyHFUBADPmuQy?userid=userid&password=password
示例:
http://myportalserver.example.com:10039/wps/portal/cxml/04_SD9ePMtCP1I800I_KydQvyHFUBADPmuQy?userid=wpsadmin&password=wpsadmin
此外,您可以再次将 portlet 映射到管理页面。
希望对您有所帮助。
假设您刚刚从页面中删除了 portlet,将其添加回页面的最简单方法是从其他门户导出登录页面(如果可用)并使用 xmlaccess 命令行导入。如果另一个门户不可用,您可以使用 xmlaccess 命令行导出当前门户登录页面,手动编辑 xml 文件以添加 portlet 并使用 xmlaccess 命令行导入.
这是从默认门户安装导出的登录页面:
<?xml version="1.0" encoding="UTF-8"?>
<!-- IBM WebSphere Portal/8.5 build 20170616-0410 exported on Sat Dec 21 10:43:08 EST 2019 from ICPortal01/172.30.15.43 virtual portal: none (default virtual portal) -->
<!-- 1 [skin ZK_00000000000000A0BR2B300670] -->
<!-- 2 [skin ZK_00000000000000A0BR2B300672] -->
<!-- 3 [skin ZK_00000000000000A0BR2B300674] -->
<!-- 4 [skin ZK_00000000000000A0BR2B300676] -->
<!-- 5 [theme ZJ_00000000000000A0BR2B300QC6] -->
<!-- 6 [content-node Z6_000000000000000000000000A0] -->
<!-- 7 [content-node Z6_00000000000000A0BR2B300G80] -->
<!-- 8 [content-node Z6_00000000000000A0BR2B300GC4] -->
<!-- 9 [component Z7_00000000000000A0BR2B300I82] -->
<!-- 10 [component Z7_00000000000000A0BR2B300I86] -->
<!-- 11 [component Z7_00000000000000A0BR2B300I81] -->
<!-- 12 [web-app Z1_00000000000000A0BR2B300IG4 uid=login.war.webmod] -->
<!-- 13 [portlet-app Z2_00000000000000A0BR2B300IG6 name=wp.ap.login uid=login.war] -->
<!-- 14 [servlet ZV_00000000000000A0BR2B300IG2] -->
<!-- 15 [portlet Z3_00000000000000A0BR2B300094 name=Login Portlet] -->
<!-- 16 [portletinstance Z5_00000000000000A0BR2B300I85] -->
<request build="20170616-0410" type="update" version="8.5.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PortalConfig_8.5.0.xsd">
<portal action="locate">
<skin action="locate" domain="rel" objectid="ZK_00000000000000A0BR2B300670" uniquename="ibm.portal.85Hidden"/>
<skin action="locate" domain="rel" objectid="ZK_00000000000000A0BR2B300672" uniquename="ibm.portal.85Standard"/>
<skin action="locate" domain="rel" objectid="ZK_00000000000000A0BR2B300674" uniquename="ibm.portal.85HiddenPlus"/>
<skin action="locate" domain="rel" objectid="ZK_00000000000000A0BR2B300676" uniquename="ibm.portal.85NoSkin"/>
<theme action="locate" domain="rel" objectid="ZJ_00000000000000A0BR2B300QC6" uniquename="ibm.portal.85Theme"/>
<web-app action="locate" domain="rel" objectid="Z1_00000000000000A0BR2B300IG4" uid="login.war.webmod">
<servlet action="locate" domain="rel" name="Login Portlet" objectid="ZV_00000000000000A0BR2B300IG2"/>
<portlet-app action="locate" domain="rel" name="wp.ap.login" objectid="Z2_00000000000000A0BR2B300IG6" uid="login.war">
<portlet action="locate" domain="rel" name="Login Portlet" objectid="Z3_00000000000000A0BR2B300094" uniquename="wps.p.Login"/>
</portlet-app>
</web-app>
<content-node action="locate" domain="rel" objectid="Z6_000000000000000000000000A0" uniquename="wps.content.root"/>
<content-node action="locate" domain="rel" objectid="Z6_00000000000000A0BR2B300G80" uniquename="ibm.portal.HiddenPages"/>
<content-node action="update" active="true" allportletsallowed="true" content-parentref="Z6_00000000000000A0BR2B300G80" create-type="explicit" domain="rel" objectid="Z6_00000000000000A0BR2B300GC4" ordinal="10" themeref="undefined" type="page" uniquename="wps.Login">
<supported-markup markup="html" update="set"/>
<localedata locale="ar">
<title>بدء الاتصال</title>
</localedata>
<localedata locale="ca">
<title>Inici de sessió</title>
</localedata>
<localedata locale="cs">
<title>Přihlášení</title>
</localedata>
<localedata locale="da">
<title>Logon</title>
</localedata>
<localedata locale="de">
<title>Anmeldung</title>
</localedata>
<localedata locale="el">
<title>Σύνδεση</title>
</localedata>
<localedata locale="en">
<title>Login</title>
</localedata>
<localedata locale="es">
<title>Inicio de sesión</title>
</localedata>
<localedata locale="fi">
<title>Kirjaudu sisään</title>
</localedata>
<localedata locale="fr">
<title>Connexion</title>
</localedata>
<localedata locale="hu">
<title>Bejelentkezés</title>
</localedata>
<localedata locale="it">
<title>Login</title>
</localedata>
<localedata locale="iw">
<title>התחברות</title>
</localedata>
<localedata locale="ja">
<title>ログイン</title>
</localedata>
<localedata locale="ko">
<title>로그인</title>
</localedata>
<localedata locale="nl">
<title>Aanmelden</title>
</localedata>
<localedata locale="no">
<title>Logg på</title>
</localedata>
<localedata locale="pl">
<title>Logowanie</title>
</localedata>
<localedata locale="pt">
<title>Iniciar sessão</title>
</localedata>
<localedata locale="pt_BR">
<title>Efetuar Login</title>
</localedata>
<localedata locale="ro">
<title>Logare</title>
</localedata>
<localedata locale="ru">
<title>Вход в систему</title>
</localedata>
<localedata locale="sk">
<title>Prihlásiť</title>
</localedata>
<localedata locale="sl">
<title>Prijava</title>
</localedata>
<localedata locale="sv">
<title>Inloggning</title>
</localedata>
<localedata locale="th">
<title>ลงชื่อเข้าใช้</title>
</localedata>
<localedata locale="tr">
<title>Oturum Aç</title>
</localedata>
<localedata locale="uk">
<title>Вхід до системи</title>
</localedata>
<localedata locale="zh">
<title>登录</title>
</localedata>
<localedata locale="zh_TW">
<title>登入</title>
</localedata>
<localedata locale="hr">
<title>Prijava:</title>
</localedata>
<localedata locale="kk">
<title>Кіру</title>
</localedata>
<parameter name="RenderMode" type="string" update="set"><![CDATA[force_ssa]]></parameter>
<parameter name="com.ibm.portal.Hidden" type="string" update="set"><![CDATA[true]]></parameter>
<parameter name="com.ibm.portal.PageIcon" type="string" update="set"><![CDATA[icons/page/login.gif]]></parameter>
<parameter name="com.ibm.portal.ThemePolicy" type="string" update="set"><![CDATA[theme/NoTheme]]></parameter>
<parameter name="param.sharing.scope.{http://www.ibm.com/xmlns/prod/datatype/content/resource-collections}" type="string" update="set"><![CDATA[ibm.portal.sharing.scope.page]]></parameter>
<parameter name="param.sharing.scope.{http://www.ibm.com/xmlns/prod/datatype/content}" type="string" update="set"><![CDATA[ibm.portal.sharing.scope.page]]></parameter>
<parameter name="param.sharing.scope.{http://www.ibm.com/xmlns/prod/websphere/portal/publicparams}path-info" type="string" update="set"><![CDATA[ibm.portal.sharing.scope.page]]></parameter>
<parameter name="resourceaggregation.profile" type="string" update="set"><![CDATA[profiles/profile_deferred.json]]></parameter>
<access-control externalized="false" owner="undefined" private="false">
<role actionset="User" update="set">
<mapping subjectid="anonymous portal user" subjecttype="user" update="set"/>
<mapping subjectid="all authenticated portal users" subjecttype="user_group" update="set"/>
</role>
</access-control>
<content-mapping-info>
<content-mapping content-id="gxsywmg-dxsywmgvtkqzcustgoailgykonin" default="false" delegated-access-level="User" system="true"/>
</content-mapping-info>
<component action="update" active="true" deletable="undefined" domain="rel" modifiable="undefined" objectid="Z7_00000000000000A0BR2B300I82" ordinal="100" orientation="H" skinref="undefined" type="container" width="undefined">
<component action="update" active="true" deletable="undefined" domain="rel" modifiable="undefined" objectid="Z7_00000000000000A0BR2B300I86" ordinal="99" orientation="V" skinref="undefined" type="container" width="700">
<component action="update" active="true" deletable="undefined" domain="rel" modifiable="undefined" objectid="Z7_00000000000000A0BR2B300I81" ordinal="99" skinref="undefined" type="control" width="undefined">
<portletinstance action="update" domain="rel" objectid="Z5_00000000000000A0BR2B300I85" portletref="Z3_00000000000000A0BR2B300094"/>
</component>
</component>
</component>
</content-node>
</portal>
<status element="all" result="ok"/>
</request>
您可以使用类似下面的命令导入:
xmlaccess.bat -user PORTALADMINUSER -pwd PORTALADMINPWD -url http://localhost:10040/wps/config -in path_to_import_file.xml
另一种解决方案是登录到虚拟门户(如果您在同一门户上有一个可用的门户),然后将 url 切换到基本门户。
希望对您有所帮助。
我错误地删除了登录 portlet,现在无法登录查看 wps 管理控制台。可以通过 WAS 控制台访问吗?
一个简单的解决方案是使用如下查询参数登录:
http://server:port/wps/portal/cxml/04_SD9ePMtCP1I800I_KydQvyHFUBADPmuQy?userid=userid&password=password
示例:
http://myportalserver.example.com:10039/wps/portal/cxml/04_SD9ePMtCP1I800I_KydQvyHFUBADPmuQy?userid=wpsadmin&password=wpsadmin
此外,您可以再次将 portlet 映射到管理页面。 希望对您有所帮助。
假设您刚刚从页面中删除了 portlet,将其添加回页面的最简单方法是从其他门户导出登录页面(如果可用)并使用 xmlaccess 命令行导入。如果另一个门户不可用,您可以使用 xmlaccess 命令行导出当前门户登录页面,手动编辑 xml 文件以添加 portlet 并使用 xmlaccess 命令行导入.
这是从默认门户安装导出的登录页面:
<?xml version="1.0" encoding="UTF-8"?>
<!-- IBM WebSphere Portal/8.5 build 20170616-0410 exported on Sat Dec 21 10:43:08 EST 2019 from ICPortal01/172.30.15.43 virtual portal: none (default virtual portal) -->
<!-- 1 [skin ZK_00000000000000A0BR2B300670] -->
<!-- 2 [skin ZK_00000000000000A0BR2B300672] -->
<!-- 3 [skin ZK_00000000000000A0BR2B300674] -->
<!-- 4 [skin ZK_00000000000000A0BR2B300676] -->
<!-- 5 [theme ZJ_00000000000000A0BR2B300QC6] -->
<!-- 6 [content-node Z6_000000000000000000000000A0] -->
<!-- 7 [content-node Z6_00000000000000A0BR2B300G80] -->
<!-- 8 [content-node Z6_00000000000000A0BR2B300GC4] -->
<!-- 9 [component Z7_00000000000000A0BR2B300I82] -->
<!-- 10 [component Z7_00000000000000A0BR2B300I86] -->
<!-- 11 [component Z7_00000000000000A0BR2B300I81] -->
<!-- 12 [web-app Z1_00000000000000A0BR2B300IG4 uid=login.war.webmod] -->
<!-- 13 [portlet-app Z2_00000000000000A0BR2B300IG6 name=wp.ap.login uid=login.war] -->
<!-- 14 [servlet ZV_00000000000000A0BR2B300IG2] -->
<!-- 15 [portlet Z3_00000000000000A0BR2B300094 name=Login Portlet] -->
<!-- 16 [portletinstance Z5_00000000000000A0BR2B300I85] -->
<request build="20170616-0410" type="update" version="8.5.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PortalConfig_8.5.0.xsd">
<portal action="locate">
<skin action="locate" domain="rel" objectid="ZK_00000000000000A0BR2B300670" uniquename="ibm.portal.85Hidden"/>
<skin action="locate" domain="rel" objectid="ZK_00000000000000A0BR2B300672" uniquename="ibm.portal.85Standard"/>
<skin action="locate" domain="rel" objectid="ZK_00000000000000A0BR2B300674" uniquename="ibm.portal.85HiddenPlus"/>
<skin action="locate" domain="rel" objectid="ZK_00000000000000A0BR2B300676" uniquename="ibm.portal.85NoSkin"/>
<theme action="locate" domain="rel" objectid="ZJ_00000000000000A0BR2B300QC6" uniquename="ibm.portal.85Theme"/>
<web-app action="locate" domain="rel" objectid="Z1_00000000000000A0BR2B300IG4" uid="login.war.webmod">
<servlet action="locate" domain="rel" name="Login Portlet" objectid="ZV_00000000000000A0BR2B300IG2"/>
<portlet-app action="locate" domain="rel" name="wp.ap.login" objectid="Z2_00000000000000A0BR2B300IG6" uid="login.war">
<portlet action="locate" domain="rel" name="Login Portlet" objectid="Z3_00000000000000A0BR2B300094" uniquename="wps.p.Login"/>
</portlet-app>
</web-app>
<content-node action="locate" domain="rel" objectid="Z6_000000000000000000000000A0" uniquename="wps.content.root"/>
<content-node action="locate" domain="rel" objectid="Z6_00000000000000A0BR2B300G80" uniquename="ibm.portal.HiddenPages"/>
<content-node action="update" active="true" allportletsallowed="true" content-parentref="Z6_00000000000000A0BR2B300G80" create-type="explicit" domain="rel" objectid="Z6_00000000000000A0BR2B300GC4" ordinal="10" themeref="undefined" type="page" uniquename="wps.Login">
<supported-markup markup="html" update="set"/>
<localedata locale="ar">
<title>بدء الاتصال</title>
</localedata>
<localedata locale="ca">
<title>Inici de sessió</title>
</localedata>
<localedata locale="cs">
<title>Přihlášení</title>
</localedata>
<localedata locale="da">
<title>Logon</title>
</localedata>
<localedata locale="de">
<title>Anmeldung</title>
</localedata>
<localedata locale="el">
<title>Σύνδεση</title>
</localedata>
<localedata locale="en">
<title>Login</title>
</localedata>
<localedata locale="es">
<title>Inicio de sesión</title>
</localedata>
<localedata locale="fi">
<title>Kirjaudu sisään</title>
</localedata>
<localedata locale="fr">
<title>Connexion</title>
</localedata>
<localedata locale="hu">
<title>Bejelentkezés</title>
</localedata>
<localedata locale="it">
<title>Login</title>
</localedata>
<localedata locale="iw">
<title>התחברות</title>
</localedata>
<localedata locale="ja">
<title>ログイン</title>
</localedata>
<localedata locale="ko">
<title>로그인</title>
</localedata>
<localedata locale="nl">
<title>Aanmelden</title>
</localedata>
<localedata locale="no">
<title>Logg på</title>
</localedata>
<localedata locale="pl">
<title>Logowanie</title>
</localedata>
<localedata locale="pt">
<title>Iniciar sessão</title>
</localedata>
<localedata locale="pt_BR">
<title>Efetuar Login</title>
</localedata>
<localedata locale="ro">
<title>Logare</title>
</localedata>
<localedata locale="ru">
<title>Вход в систему</title>
</localedata>
<localedata locale="sk">
<title>Prihlásiť</title>
</localedata>
<localedata locale="sl">
<title>Prijava</title>
</localedata>
<localedata locale="sv">
<title>Inloggning</title>
</localedata>
<localedata locale="th">
<title>ลงชื่อเข้าใช้</title>
</localedata>
<localedata locale="tr">
<title>Oturum Aç</title>
</localedata>
<localedata locale="uk">
<title>Вхід до системи</title>
</localedata>
<localedata locale="zh">
<title>登录</title>
</localedata>
<localedata locale="zh_TW">
<title>登入</title>
</localedata>
<localedata locale="hr">
<title>Prijava:</title>
</localedata>
<localedata locale="kk">
<title>Кіру</title>
</localedata>
<parameter name="RenderMode" type="string" update="set"><![CDATA[force_ssa]]></parameter>
<parameter name="com.ibm.portal.Hidden" type="string" update="set"><![CDATA[true]]></parameter>
<parameter name="com.ibm.portal.PageIcon" type="string" update="set"><![CDATA[icons/page/login.gif]]></parameter>
<parameter name="com.ibm.portal.ThemePolicy" type="string" update="set"><![CDATA[theme/NoTheme]]></parameter>
<parameter name="param.sharing.scope.{http://www.ibm.com/xmlns/prod/datatype/content/resource-collections}" type="string" update="set"><![CDATA[ibm.portal.sharing.scope.page]]></parameter>
<parameter name="param.sharing.scope.{http://www.ibm.com/xmlns/prod/datatype/content}" type="string" update="set"><![CDATA[ibm.portal.sharing.scope.page]]></parameter>
<parameter name="param.sharing.scope.{http://www.ibm.com/xmlns/prod/websphere/portal/publicparams}path-info" type="string" update="set"><![CDATA[ibm.portal.sharing.scope.page]]></parameter>
<parameter name="resourceaggregation.profile" type="string" update="set"><![CDATA[profiles/profile_deferred.json]]></parameter>
<access-control externalized="false" owner="undefined" private="false">
<role actionset="User" update="set">
<mapping subjectid="anonymous portal user" subjecttype="user" update="set"/>
<mapping subjectid="all authenticated portal users" subjecttype="user_group" update="set"/>
</role>
</access-control>
<content-mapping-info>
<content-mapping content-id="gxsywmg-dxsywmgvtkqzcustgoailgykonin" default="false" delegated-access-level="User" system="true"/>
</content-mapping-info>
<component action="update" active="true" deletable="undefined" domain="rel" modifiable="undefined" objectid="Z7_00000000000000A0BR2B300I82" ordinal="100" orientation="H" skinref="undefined" type="container" width="undefined">
<component action="update" active="true" deletable="undefined" domain="rel" modifiable="undefined" objectid="Z7_00000000000000A0BR2B300I86" ordinal="99" orientation="V" skinref="undefined" type="container" width="700">
<component action="update" active="true" deletable="undefined" domain="rel" modifiable="undefined" objectid="Z7_00000000000000A0BR2B300I81" ordinal="99" skinref="undefined" type="control" width="undefined">
<portletinstance action="update" domain="rel" objectid="Z5_00000000000000A0BR2B300I85" portletref="Z3_00000000000000A0BR2B300094"/>
</component>
</component>
</component>
</content-node>
</portal>
<status element="all" result="ok"/>
</request>
您可以使用类似下面的命令导入:
xmlaccess.bat -user PORTALADMINUSER -pwd PORTALADMINPWD -url http://localhost:10040/wps/config -in path_to_import_file.xml
另一种解决方案是登录到虚拟门户(如果您在同一门户上有一个可用的门户),然后将 url 切换到基本门户。
希望对您有所帮助。