Error:
Error "oracle.mds.exception.MDSRuntimeException: MDS-00168" When Deploying ADF Application to the Integrated Weblogic instance of JDeveloper 11g
Cause:
This is due to a known issue for JDeveloper and ADF 11g.
To initialize the ADFShare components in a web environment the
oracle.adf.share.http.ServletADFContext must be initialized per request. Normally, this is achieved
because the jdev design time adds the ADFBindingFilter to the project web.xml when certain actions are
taken (like creating a binding on a page). However, it is still possible to use the ADFContext without this
design time support.
The ServletADFFilter must be used for correct use of ADFContext. ServletADFFilter specifically setup
ServletADFContext properly at the start of the request. The ADFBindingFilter does that and other stuff also.
Solution:
Add the definition for the ServletADFContextFilter to web.xml:
<filter>
<filter-name>ServletADFContextFilter</filter-name>
<filter-class>oracle.adf.share.http.ServletADFFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>ServletADFContextFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
</filter-mapping>
Error "oracle.mds.exception.MDSRuntimeException: MDS-00168" When Deploying ADF Application to the Integrated Weblogic instance of JDeveloper 11g
Cause:
This is due to a known issue for JDeveloper and ADF 11g.
To initialize the ADFShare components in a web environment the
oracle.adf.share.http.ServletADFContext must be initialized per request. Normally, this is achieved
because the jdev design time adds the ADFBindingFilter to the project web.xml when certain actions are
taken (like creating a binding on a page). However, it is still possible to use the ADFContext without this
design time support.
The ServletADFFilter must be used for correct use of ADFContext. ServletADFFilter specifically setup
ServletADFContext properly at the start of the request. The ADFBindingFilter does that and other stuff also.
Solution:
Add the definition for the ServletADFContextFilter to web.xml:
<filter>
<filter-name>ServletADFContextFilter</filter-name>
<filter-class>oracle.adf.share.http.ServletADFFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>ServletADFContextFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
</filter-mapping>
No comments:
Post a Comment