My Oracle Support Banner

Predeployment Tool : oracle.mds.exception.MDSRuntimeException: No metadata found for metadata object "/ViewController/public_html/<file>.jspx" (Doc ID 549169.1)

Last updated on AUGUST 20, 2019

Applies to:

Oracle WebCenter Portal - Version 11.1.1.5.0 to 11.1.1.5.0 [Release 11g]
Information in this document applies to any platform.
This problem can occur on any platform.

Symptoms

Development is being done under JDeveloper in one machine (for example: Windows) and the EAR is to be deployed within the WebCenter AS ORACLE_HOME (for example: Linux).

Refer to the Documentation:-
Oracle® WebCenter Framework Developer's Guide 10g (10.1.3.2.0) - Part No B31074-04
12.2 Deploying Your WebCenter Application


Summary of the steps involved:-
1. Create a new WebCenter application - webCenterApp

2. Register the RichTextProducer (which comes with the PreSeeded OC4J)
    -> http://<HOST>:<PORT>/RichTextProducer_1200060568840/portlets/wsrp2?WSDL
    - the servername should be resolved by both machines - JDeveloper & WebCenter AS.

3. In the ViewControler, create a .jspx page where you'll place the RichText portlet.

4. Create the deployment profile using WebCenter application WAR (change the J2EE Web Context Root to simply).

5. Generate the WAR & EAR file within JDeveloper.

6. FTP the EAR file to the Target machine (where is the WebCenterAS/OC4J) in binary mode.

7. Run the predeployment tool:-

Example:-

 

$ORACLE_HOME/jdk/bin/java -Dhttp.proxyHost=<HOST> -Dhttp.proxyPort=<PORT> \
-jar $ORACLE_HOME/adfp/lib/portlet-client-deploy.jar -predeploy \
-source webCenterApp.ear -target webCenterAppdeploy.ear


8. Deploy the EAR via Enterprise Manager.

9. Access the URL of the .jspx page.
    -> http://<HOST>:<PORT>/webCenterApp/faces/MyPage.jspx

The following error is seen in the browser:-

500 Internal Server Error
OracleJSP:
JSP Error:
Request URI:/ReachTextApplication/MyPage.jspx

Exception:
oracle.mds.exception.MDSRuntimeException: No metadata found for metadata object "/ViewController/public_html/MyPage.jspx"
No metadata found for metadata object "/ViewController/public_html/MyPage.jspx"

 

 

A screenshot of the error:-


When running a JSP page instead of a JSPX page then the following error is shown in the browser inside the portlet:

mdsId=/oracle/adf/portlet/RichTextProducer_1200060568840/ap/E0default_693108ee_0117_1000_8007_8d9081a8cbd6.pxml not foundThe HTML source shows the following exception:

mdsId=/oracle/adf/portlet/RichTextProducer_1200060568840/ap/E0default_693108ee_0117_1000_8007_8d9081a8cbd6.pxml not found<!--oracle.portlet.client.persistence.PersistenceNotFoundException: mdsId=/oracle/adf/portlet/RichTextProducer_1200060568840/ap/E0default_693108ee_0117_1000_8007_8d9081a8cbd6.pxml not found
at oracle.portlet.client.persistenceimpl.mds.MDSPersistenceContext.get(MDSPersistenceContext.java:587)
at oracle.portlet.client.beanimpl.persistence.PersistenceBeanFactory.getExisting(PersistenceBeanFactory.java:226)
at oracle.portlet.client.beanimpl.persistence.PersistenceBeanContext.getExisting(PersistenceBeanContext.java:83)
at oracle.portlet.client.containerimpl.PublicFactoryImpl.get(PublicFactoryImpl.java:248)
at oracle.portlet.client.containerimpl.PublicFactoryImpl.get(PublicFactoryImpl.java:258)
at oracle.portlet.client.containerimpl.PortletContainerImpl.getPortlet(PortletContainerImpl.java:227)
at oracle.adf.model.portlet.binding.PortletBinding.prepareModel(PortletBinding.java:801)
at oracle.adf.model.portlet.binding.PortletBinding.refresh(PortletBinding.java:606)
at oracle.adf.model.binding.DCBindingContainerDef$1RegionBindingAdapter.refresh(DCBindingContainerDef.java:1011)
at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:2455)
at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2260)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareModel(PageLifecycleImpl.java:99)
at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.prepareModel(FacesPageLifecycle.java:73)
at oracle.adf.controller.v2.lifecycle.Lifecycle$8.execute(Lifecycle.java:210)
at oracle.adf.controller.v2.lifecycle.Lifecycle.executePhase(Lifecycle.java:116)
at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.mav$executePhase(ADFPhaseListener.java:29)
at oracle.adf.controller.faces.lifecycle.ADFPhaseListener$4.after(ADFPhaseListener.java:327)
at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:90)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:254)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:620)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Caused by: oracle.mds.core.MetadataNotFoundException: No metadata found for metadata object "/oracle/adf/portlet/RichTextProducer_1200060568840/ap/E0default_693108ee_0117_1000_8007_8d9081a8cbd6.pxml"
at oracle.mds.core.MetadataObject.getBaseMO(Unknown Source)
at oracle.mds.core.MDSSession.getBaseMO(Unknown Source)
at oracle.mds.core.MDSSession.getMutableMO(Unknown Source)
at oracle.portlet.client.persistenceimpl.mds.MDSPersistenceContext.getBaseMutableMO(MDSPersistenceContext.java:1143)
at oracle.portlet.client.persistenceimpl.mds.MDSPersistenceContext.get(MDSPersistenceContext.java:577)
... 39 more



Within the application.log file from the webCenterApp on WebCenter AS side, the following can be seen
($ORACLE_HOME/j2ee/OC4J_WebCenter/application-deployments/webCenterApp/OC4J_WebCenter_default_group_1/application.log):-

08/01/14 15:16:24.103 10.1.3.1.1 Started
08/01/14 15:17:15.181 webCenterApp: 10.1.3.1.1 Started
08/01/14 15:20:51.681 webCenterApp: JspServlet: unable to dispatch to requested page: Exception:oracle.mds.exception.MDSRuntimeException: No metadata found for metadata object "/ViewController/public_html/MyPage.jspx"
No metadata found for metadata object "/ViewController/public_html/MyPage.jspx"


Within the log.xml from the OC4J_WebCenter container ($ORACLE_HOME/j2ee/OC4J_WebCenter/log/OC4J_WebCenter_default_group_1/oc4j/log.xml):-

(...)
<MESSAGE>
<HEADER>
<TSTZ_ORIGINATING>2008-01-14T15:20:51.443+01:00</TSTZ_ORIGINATING>
<COMPONENT_ID>portlet</COMPONENT_ID>
<MSG_TYPE TYPE="ERROR"></MSG_TYPE>
<MSG_LEVEL>1</MSG_LEVEL>
<HOST_ID><HOST></HOST_ID>
<HOST_NWADDR><IP_ADDRESS></HOST_NWADDR>
<MODULE_ID>binding</MODULE_ID>
<THREAD_ID>14</THREAD_ID>
<USER_ID><USER_ID></USER_ID>
</HEADER>
<CORRELATION_DATA>
<EXEC_CONTEXT_ID><UNIQUE_ID>1200072065:123.123.123.123:1633:0:467</UNIQUE_ID><SEQ>1</SEQ></EXEC_CONTEXT_ID>
</CORRELATION_DATA>
<PAYLOAD>
<MSG_TEXT>oracle.portlet.client.persistence.PersistenceNotFoundException: mdsId=/oracle/adf/portlet/RichTextProducer_1200066491062/ap/E0default_698a57e6_0117_1000_8002_0aacec913378.pxml not found
at oracle.portlet.client.persistenceimpl.mds.MDSPersistenceContext.get(MDSPersistenceContext.java:587)
at oracle.portlet.client.beanimpl.persistence.PersistenceBeanFactory.getExisting(PersistenceBeanFactory.java:226)
at oracle.portlet.client.beanimpl.persistence.PersistenceBeanContext.getExisting(PersistenceBeanContext.java:83)
at oracle.portlet.client.containerimpl.PublicFactoryImpl.get(PublicFactoryImpl.java:248)
at oracle.portlet.client.containerimpl.PublicFactoryImpl.get(PublicFactoryImpl.java:258)
at oracle.portlet.client.containerimpl.PortletContainerImpl.getPortlet(PortletContainerImpl.java:227)
at oracle.adf.model.portlet.binding.PortletBinding.prepareModel(PortletBinding.java:801)
at oracle.adf.model.portlet.binding.PortletBinding.refresh(PortletBinding.java:606)
at oracle.adf.model.binding.DCBindingContainerDef$1RegionBindingAdapter.refresh(DCBindingContainerDef.java:1011)
at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:2455)
at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2260)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareModel(PageLifecycleImpl.java:99)
at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.prepareModel(FacesPageLifecycle.java:73)
at oracle.adf.controller.v2.lifecycle.Lifecycle$8.execute(Lifecycle.java:210)
at oracle.adf.controller.v2.lifecycle.Lifecycle.executePhase(Lifecycle.java:116)
at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.mav$executePhase(ADFPhaseListener.java:29)
at oracle.adf.controller.faces.lifecycle.ADFPhaseListener$4.after(ADFPhaseListener.java:327)
at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:90)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:254)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:620)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Caused by: oracle.mds.core.MetadataNotFoundException: No metadata found for metadata object "/oracle/adf/portlet/RichTextProducer_1200066491062/ap/E0default_698a57e6_0117_1000_8002_0aacec913378.pxml"
at oracle.mds.core.MetadataObject.getBaseMO(Unknown Source)
at oracle.mds.core.MDSSession.getBaseMO(Unknown Source)
at oracle.mds.core.MDSSession.getMutableMO(Unknown Source)
at oracle.portlet.client.persistenceimpl.mds.MDSPersistenceContext.getBaseMutableMO(MDSPersistenceContext.java:1143)
at oracle.portlet.client.persistenceimpl.mds.MDSPersistenceContext.get(MDSPersistenceContext.java:577)
... 39 more
</MSG_TEXT>
</PAYLOAD>
</MESSAGE>
<MESSAGE>
<HEADER>
<TSTZ_ORIGINATING>2008-01-14T15:20:52.113+01:00</TSTZ_ORIGINATING>
<COMPONENT_ID><COMPONENT_ID></COMPONENT_ID>
<MSG_ID> J2EE JSP-0008</MSG_ID>
<MSG_TYPE TYPE="NOTIFICATION"></MSG_TYPE>
<MSG_LEVEL>1</MSG_LEVEL>
<HOST_ID><HOST></HOST_ID>
<HOST_NWADDR><IP_ADDRESS></HOST_NWADDR>
<MODULE_ID>jsp</MODULE_ID>
<THREAD_ID>14</THREAD_ID>
<USER_ID><USER_ID></USER_ID>
</HEADER>
<CORRELATION_DATA>
<EXEC_CONTEXT_ID><UNIQUE_ID>1200072065:123.123.123.123:1633:0:467</UNIQUE_ID><SEQ>1</SEQ></EXEC_CONTEXT_ID>
</CORRELATION_DATA>
<PAYLOAD>
<MSG_TEXT>Unable to dispatch JSP Page : Exception:oracle.mds.exception.MDSRuntimeException: No metadata found for metadata object "/ViewController/public_html/MyPage.jspx"
No metadata found for metadata object "/ViewController/public_html/MyPage.jspx" </MSG_TEXT>
</PAYLOAD>
</MESSAGE>
(...)

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

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