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 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="" xsi:schemaLocation="" version="2.5" xmlns="">
   <!-- 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.

No comments:

Post a Comment