Issue

The error below appears in the logs: 

javax.jcr.NamespaceException: Unknown namespace prefix: [namespacename]
Could not Build Package "Unknown namespace prefix: [namespacename]

Environment

AEM

Cause

This error usually shows up in environments where partial data migration was done using the crx2oak tool.  The crx2oak tool doesn't support migrating namespaces with the data.

Resolution

Register the missing namespaces via the CRX Explorer:

  1. Go to http://hostname:port/crx/explorer/index.jsp and log in as admin user.

  2. Click Node Type Administration in the CRX Explorer.

  3. In the Node Type Administration window, click Namespaces, which is at far right of the toolbar.

    rtaimage
  4. At the bottom of the Namespaces window, click New.

  5. Enter the URI and the Namespace mapping then click OK.

  6. Enter the prefix of the Namespace mapping then click OK.

이 작업에는 Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License의 라이센스가 부여되었습니다.  Twitter™ 및 Facebook 게시물은 Creative Commons 약관을 적용받지 않습니다.

법적 고지 사항   |   온라인 개인 정보 보호 정책