Wednesday, February 22, 2012

Oracle Webcenter Spaces and web.xml issue


I would like to share with you the solution to a common issue about extension of Oracle Webcenter Spaces. In this post I’m not going to explain the steps to extend your spaces instance, my purpose is just to give you a tip to resolve this unpleasant error:

OracleJSP error: oracle.jsp.parse.JavaCodeException: Line # 6, oracle.jsp.parse.JspParseTagScriptlet@54e237e9Error: Java code in jsp source files is not allowed in ojsp.next mode.

This issue attempts when you create a custom task flow to use in WebCenter Spaces. The typical steps are:
  • Build your custom task flow
  • Deploy custom task flow as an ADF Library
  • Add generated jar into the WebCenterSpacesSharedLibExtension project
  • Deploy WebCenterSpacesSharedLibExtension project to Spaces Domain


You don’t get any error message during these steps, but when you try to open Webcenter Spaces login page, the browser displays the message above!

To fix this problem you simply need to “clean” the web.xml file of WebCenterSpacesSharedLibExtension project. In fact when you add your custom task flow jar to extension project, Jdeveloper adds some wrong lines in web.xml. You can override the broken file with the vanilla web.xml that ships with the WebCenterSpacesSharedLibExtension project and redeploy the project!

It is just a ‘stupid’ problem but It can took many hours to get the solution. I hope this post can help you!

Bye bye
Emilio

Saturday, February 11, 2012

ADF - Create and Populate new Rows on ViewObject with Multiple Updateable Dependent Entity Objects


This is my first post on my new Blog and I would like to share with you the solution for a very common ADF BC case study: Create and Populate new Rows on ViewObjectwith Multiple Updateable Dependent Entity Objects.