Migração falha durante migração das políticas do tema
Autor: Fernando Oliveira Carvalho | Publicado: 2012-10-08T10:11:00-03:00





Durante a migração do WerbSphere Portal versão 6.0.x para WebSphere Portal 7.0.x na execução do portal-post-upgrade, ocorre uma falha durante o export da política do thema.



Normalmente o problema ocorre no servidor WebSphere Portal 7 quando está exportando e copiando as política de tema do ambiente WebSphere Portal 6. &nbsp;A falha ocorre com a seguinte exceção: action-update-theme-policy-wp.theme.customizer&nbsp;



Ao editar o arquivo “/opt/IBM/WebSphere/PortalServer/theme/wp.theme.customizer/config/includes/wp.theme.customizer_cfg.xml” na linha 62, pode-se confirmar que o problema ocorre no action-export-theme-policies.



Mensagem de erro

[exec] &nbsp;[copy] Copying 1 file to /opt/IBM/WebSphere/wp_profile/ConfigEngine/config/work
&nbsp; &nbsp; &nbsp;[exec] &nbsp; &nbsp; [mkdir] Created dir: /opt/IBM/WebSphere/wp_profile/theme/wp.theme.customizer/config/policies
&nbsp; &nbsp; &nbsp;[exec] [xmlaccess] EJPXB0006I: Connecting to URL http://localhost:10039/wps/config/
&nbsp; &nbsp; &nbsp;[exec] [xmlaccess] EJPXB0004I: Writing output file /opt/IBM/WebSphere/wp_profile/theme/wp.theme.customizer/config/policies/themecustomizer-ExportedThemePolicies.xml
&nbsp; &nbsp; &nbsp;[exec] [xmlaccess] EJPXB0002I: Reading input file /opt/IBM/WebSphere/wp_profile/ConfigEngine/config/work/ExportThemePolicies.xml
&nbsp; &nbsp; &nbsp;[exec] [xmlaccess] EJPXB0019E: Server response indicates an error. For status and details of the XmlAccess error look at file /opt/IBM/WebSphere/wp_profile/theme/wp.theme.customizer/config/policies/themecustomizer-ExportedThemePolicies.xml.
&nbsp; &nbsp; &nbsp;[exec] [xmlaccess] EJPXB0019E: Server response indicates an error. For status and details of the XmlAccess error look at file /opt/IBM/WebSphere/wp_profile/theme/wp.theme.customizer/config/policies/themecustomizer-ExportedThemePolicies.xml.

&nbsp; &nbsp; &nbsp;[exec] BUILD FAILED
&nbsp; &nbsp; &nbsp;[exec] /opt/IBM/WebSphere/PortalServer/theme/wp.theme.customizer/config/includes/wp.theme.customizer_cfg.xml:62: The following error occurred while executing this line:
&nbsp; &nbsp; &nbsp;[exec] /opt/IBM/WebSphere/PortalServer/theme/wp.theme.customizer/config/includes/wp.theme.customizer_cfg.xml:41: EJPXB0019E: Server response indicates an error. For status and details of the XmlAccess error look at file /opt/IBM/WebSphere/wp_profile/theme/wp.theme.customizer/config/policies/themecustomizer-ExportedThemePolicies.xml.

&nbsp; &nbsp; &nbsp;[exec] Total time: 12 seconds
&nbsp; &nbsp; &nbsp;[exec] FAILURE_LOG_DIR=null
&nbsp; &nbsp; &nbsp;[exec] basepath = /opt/IBM/WebSphere/PortalServer/theme/wp.theme.customizer
&nbsp; &nbsp; &nbsp;[exec] isIseries currently set to: null
&nbsp; &nbsp; &nbsp;[exec] uploading registry
&nbsp; &nbsp; &nbsp;[exec] Created admin client: com.ibm.ws.management.AdminClientImpl@54d554d5
&nbsp; &nbsp; &nbsp;[exec] Created config Service Proxy: com.ibm.websphere.management.configservice.ConfigServiceProxy@142f142f
&nbsp; &nbsp; &nbsp;[exec] CELL: srwpsv7Node01
&nbsp; &nbsp; &nbsp;[exec] NODE: srwpsv7Node01
&nbsp; &nbsp; &nbsp;[exec] Websphere:_Websphere_Config_Data_Type=Registry,_Websphere_Config_Data_Id=cells/srwpsv7Node01|registry.xml#Registry_1347370620668,_WEBSPHERE_CONFIG_SESSION=anonymous1349445876367

&nbsp; &nbsp; &nbsp;[exec] update-registry-sync-property:
&nbsp; &nbsp; &nbsp;[exec] Fri Oct 05 11:04:36 BRT 2012
&nbsp; &nbsp; &nbsp;[exec] &nbsp; &nbsp; &nbsp;[echo] updated RegistrySynchronized in file wkplc.properties with value: true

BUILD FAILED
/opt/IBM/WebSphere/wp_profile/PortalServer/migration/mig_ant_driver.xml:284: The following error occurred while executing this line:
/opt/IBM/WebSphere/wp_profile/PortalServer/migration/components/wp.migration.postupgrade/mig_ant.xml:133: The following error occurred while executing this line:
/opt/IBM/WebSphere/wp_profile/PortalServer/migration/components/wp.migration.postupgrade/mig_ant.xml:172: The following error occurred while executing this line:
/opt/IBM/WebSphere/wp_profile/PortalServer/migration/components/wp.migration.postupgrade/mig_ant.xml:209: The following error occurred while executing this line:
/opt/IBM/WebSphere/wp_profile/PortalServer/migration/mig_ant_driver.xml:568: The following error occurred while executing this line:
/opt/IBM/WebSphere/wp_profile/PortalServer/migration/components/wp.migration.theme.customizer/mig_ant.xml:33: exec returned: 1


Resolvendo o problema

No ambiente WebSphere Portal 6.0.x


1 – Crie um arquivo chamado “ExportThemePolicy.xml”
2 – Edite o arquivo ExportThemePolicy.xml e copie o código abaixo dentro do arquivo ExportThemePolicy.xml.





3 – Navegue até /opt/IBM/WebSphere/PortalServer/bin.
4 – Execute o xmlaccess para exportar a política do tema.
5 - ./xmlaccess.sh -user wpsadmin -password wpsadmin -url http://serverportalv6:10038/wps/config -in /opt/ExportThemePolicy.xml -out /opt/ExportThemev6.xml
6 – Copie o arquivo para o servidor WebSphere Portal 7.0.x

No ambiente WebSphere Portal 7.0.x

1 – Navegue até /opt/IBM/WebSphere/wp_profile/theme/wp.theme.customizer/config/policies
2 – Crie o arquivo themecustomizer-ExportedThemePolicies.xml
3 – Copie o conteúdo do arquivo ExportThemev6.xml exportado do WebSphere Portal 6.0.x para o arquivo themecustomizer-ExportedThemePolicies.xml
4 – Salve o arquivo themecustomizer-ExportedThemePolicies.xml e execute novamente o comando ./WPmigrate.sh portal-post-upgrade