WebSphere Portal 6.1 default theme deleted

孤者浪人 提交于 2019-12-14 02:49:05

问题


I deleted the chosen default theme in WebSphere Portal 6.1 using the administration pages. Now the portal is themeless. More importantly, the theme selection page in the administration section can no longer be displayed.

How can I set the default theme "externally" (i.e. manually, without the administration pages)?


回答1:


You will need to correct this with xmlaccess. I suggest you export from a working portal the theme configuration back into your broken portal.




回答2:


Chrisr is right. Here is how to use xmlaccess in little more detail:

To generate a full export of your Portal's configuration, do the following:

  1. Copy the file <Portal_home>/doc/xml-samples/Export.xml to <Portal_home>/bin.
  2. Open a terminal or command window. Change directory (cd) to <Portal_home>/bin.
  3. From the directory <Portal_home>/bin, run the following xmlaccess command all on one line:

xmlaccess -user <Portal_admin_user> -password <Portal_admin_password> -url http://<myhost>:<port>/wps/config -in Export.xml -out result.xml

(from: IBM How to generate a complete XMLAccess export of a Portal configuration)

You might encounter an error EJPXB0016E Connection refused. It is because either:

  • localhost cannot be resolved or
  • -url option was not supplied

If localhost cannot be resolved, open the following file:

../wp_profile/ConfigEngine/properties/wkplc_comp.properties

and change XmlAccessHost=localhost to XmlAccessHost=hostname.compyname.com.

(from: IBM Configuration task fails during XMLAccess with 'EJPXB0016E Connection refused' error). I simply forgot the -url parameter and didn't have to change that value.

If everything goes well, you should have the result.xml file. Use xmlaccess again with the result.xml to configure the server with default theme deleted:

xmlaccess -user <Portal_admin_user> -password <Portal_admin_password> -url http://<myhost>:<port>/wps/config -in result.xml



来源:https://stackoverflow.com/questions/6184976/websphere-portal-6-1-default-theme-deleted

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!