My Oracle Support Banner

Error Seen When Importing Portal Resource Into JDeveloper Project (Doc ID 1298695.1)

Last updated on MARCH 13, 2019

Applies to:

Oracle WebCenter Portal - Version 11.1.1.4.0 to 11.1.1.4.0 [Release 11g]
Information in this document applies to any platform.

Symptoms

When attempting to import a Portal resource into JDeveloper for editing and upload back to WebCenter, the following error is seen:

Could not complete addPageMapEntry because it would result in an invalid document.

Exception Stack Trace

oracle.bali.xml.model.XmlInvalidOnCommitException: SEVERE: my.portal.application.portal_TemplatePageDef is not a valid reference to an id defined in the document [ node = usageId ]

<pageMap>
<page path="/oracle/webcenter/portalapp/pages/navigation-renderer.jspx" usageId="portal_navigation_rendererPageDef" />
<page path="/oracle/webcenter/portalapp/pages/home.jspx" usageId="portal_homePageDef" />
<page path="/oracle/webcenter/portalapp/pages/login.jspx" usageId="portal_loginPageDef" />
<page path="/oracle/webcenter/portalapp/pages/error.jspx" usageId="portal_errorPageDef" />
<page path="/oracle/webcenter/portalapp/pagetemplates/pageTemplate_globe.jspx" usageId="portal_pageTemplate_globePageDef" />
<page path="/oracle/webcenter/portalapp/pagetemplates/pageTemplate_swooshy.jspx" usageId="portal_pageTemplate_swooshyPageDef" />
<page path="/oracle/webcenter/siteresources/scopedMD/<SPACE_ID>/siteTemplate/<TEMPLATE_ID>/Template.jspx" usageId="my.portal.application.portal_TemplatePageDef" />
</pageMap>

at oracle.bali.xml.model.XmlModel._validateSubtree(XmlModel.java:3196)
at oracle.bali.xml.model.XmlModel._validateDocument(XmlModel.java:3104)
at oracle.bali.xml.model.XmlModel.__precommitTransaction(XmlModel.java:2732)
at oracle.bali.xml.model.XmlContext.precommitTransaction(XmlContext.java:1172)
at oracle.bali.xml.model.XmlContext.__precommitTransaction(XmlContext.java:1665)
at oracle.bali.xml.model.XmlContext.__commitTransaction(XmlContext.java:1696)
at oracle.bali.xml.model.XmlModel.__requestCommitTransaction(XmlModel.java:2805)
at oracle.bali.xml.model.XmlModel.commitTransaction(XmlModel.java:445)
at oracle.bali.xml.model.XmlModel.commitTransaction(XmlModel.java:415)
at oracle.bali.xml.model.task.StandardTransactionTask.__commitWrapperTransaction(StandardTransactionTask.java:480)
at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:210)
at oracle.adfdt.jdev.transaction.JDevTransactionManager.runTaskUnderTransaction(JDevTransactionManager.java:46)
at oracle.adfdt.model.objects.Application.addPageMapEntry(Application.java:134)
at oracle.adfdt.model.objects.Application.addPageMapEntry(Application.java:110)
at oracle.webcenter.portal.dt.appnav.SiteResourcesDTLifecycleHandler.addPageMappingEntries(SiteResourcesDTLifecycleHandler.java:585)
at oracle.webcenter.portal.dt.appnav.SiteResourcesDTLifecycleHandler.importContent(SiteResourcesDTLifecycleHandler.java:330)
at oracle.webcenter.portal.dt.appnav.SiteResourcesDTLifecycleHandler.doImport(SiteResourcesDTLifecycleHandler.java:227)
at oracle.webcenter.portal.dt.appnav.SiteResourcesDTLifecycleHandler.doImport_DT(SiteResourcesDTLifecycleHandler.java:135)
at oracle.webcenter.portal.dt.appnav.PortalMenuController.handleImportSiteRes(PortalMenuController.java:1007)
at oracle.webcenter.portal.dt.appnav.PortalMenuController.handleEvent(PortalMenuController.java:147)
at oracle.ide.controller.IdeAction.performAction(IdeAction.java:529)
at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:884)
at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:501)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1223)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1264)
at java.awt.Component.processMouseEvent(Component.java:6267)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6032)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)



Steps to reproduce
1. Access Spaces as an administrator
2. Navigate to a Space, Click on Manage All Settings
3. Click on Resources Tab, Page Templates
4. Copy one of the standard page templates to a new name
5. Click on the new template, then click on the download link and save the .ear file generated to a local drive


6. Open JDeveloper 11.1.1.4 (with latest Webcenter extensions)
7. Create a new Application of type Webcenter Portal Application and set the Application Package Prefix to my.portal.application. Click through the screens without making a change and notice that the default package for the Project is set to my.portal.application.portal .









8. Click Finish to create the Application.


9. Right click on the Portal project and Import Resource

10. Choose the .ear file generated in step 5 above
11. The error is displayed.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.