Wednesday, October 10, 2012

WebcenterPortal oracle.adf.controller.ControllerException: ADFC-06002: Unhandled exception

The exception which I got today in Webcenter Portal application revealed a relatively strange message:


The page on which the message appears contains a region with embedded task-flow. Of course task-flow wasn't loaded. The strange in this case was that everything worked perfectly for several days, furthermore there wasn't any changes implemented in application or middleware.

I suspected that the clue of problem lays in errors in MDS. And voilĂ , after a little cleaning all again works perfectly.

But. The question is, what the hell was this !!!

Thursday, October 4, 2012

WebCenter Spaces problem with shared library: oracle.jsp.parse.JavaCodeException

I would like to share with you the solution to the typical Webcenter Spaces error:

OracleJSP error:
oracle.jsp.parse.JavaCodeException:  Line # 6, oracle.jsp.parse.JspParseTagScriptlet@3358086b 

Error: Java code in jsp source files is not allowed in ojsp.next mode.


If you got this error after applying custom shared extension library to the Spaces instance, remove all unnecessary contents automatically added by JDeveloper to the web.xml descriptor. This simple solution should fix your problem. After the operation web.xml file should look like this:

<?xml version = '1.0' encoding = 'US-ASCII'?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee">
   <!-- IMPORTANT -->
  <!-- make sure that this web.xml file contains only custom added servlets and mappings
       and does not contain entries autogenerated by jdev
       custom entries have been marked with "Custom Added" in comments at the start tag.
  -->
</web-app>