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>



No comments:

Post a Comment