Oracle JDeveloper - Version: 22.214.171.124.x
Your application includes a JSP page with scriptlets like the following:
This page runs correctly in JDeveloper 126.96.36.199
After having migrated to JDeveloper 188.8.131.52.0, running the page fails with the following error:
Java code in jsp source files is not allowed in ojsp.next mode.
You see the following error displayed in the page:
"JSP scriptlets will not work properly if using OJSP".
You upgraded from JDeveloper 184.108.40.206.x to 220.127.116.11.x
It was working correctly in JDev 18.104.22.168.x
The deployment descriptor file weblogic-application.xml is automatically updated '(for performance reasons) with the following lines:
•you use MDS (Metadata Services), that you set up with the option
"Enable user customizations" in "ADF View" in the "Project Properties"
•or you use WebCenter (that automatically turns on the aforementioned option)
•or you use the ADF Library Filter ("ADFLibraryFilter") for your JSP page.
OJSP does not support scriptlets in its 'next' mode,
You need to either adapt your code to remove the scriptlets in your JSP page (that's the only option
if you use WebCenter that forcibly sets that option),
or you can use the following Java option to disable OJSP:
You can add this option -Dadfvdt.disableOjspDeployment=true in your file "ide.conf" in the directory "
Alternatively, you can start up JDeveloper with that parameter:
For your Production environment, you can have your Managed WLS ignoring the OJSP mode by adding the Java Option -Dadfvdt.disableOjspDeployment=true
•in the "startManagedWebLogic" (if you want to limit it to a specific Managed Server)
•or "setDomainEnv" (for all managed servers in a domain).