+55 (11) 4506-3239
academy@glsolutions.com.br

8 out 2012

Migração falha durante migração das políticas do tema

//
Comments0

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.  A falha ocorre com a seguinte exceção: action-update-theme-policy-wp.theme.customizer 
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]  [copy] Copying 1 file to /opt/IBM/WebSphere/wp_profile/ConfigEngine/config/work
     [exec]     [mkdir] Created dir: /opt/IBM/WebSphere/wp_profile/theme/wp.theme.customizer/config/policies
     [exec] [xmlaccess] EJPXB0006I: Connecting to URL http://localhost:10039/wps/config/
     [exec] [xmlaccess] EJPXB0004I: Writing output file /opt/IBM/WebSphere/wp_profile/theme/wp.theme.customizer/config/policies/themecustomizer-ExportedThemePolicies.xml
     [exec] [xmlaccess] EJPXB0002I: Reading input file /opt/IBM/WebSphere/wp_profile/ConfigEngine/config/work/ExportThemePolicies.xml
     [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.
     [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.

     [exec] BUILD FAILED
     [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:
     [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.

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

     [exec] update-registry-sync-property:
     [exec] Fri Oct 05 11:04:36 BRT 2012
     [exec]      [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

Leave a Reply