Saturday, May 21, 2011

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

If you get "Error: Java code in jsp source files is not allowed in ojsp.next mode" when running jspx applications, you need to enable user customizations.

In Jdeveloper workspace,
1. Go to Project Property
2. Go to ADF View
3. Enable User Customizations
4. check on Across Sessions using MDS

Also you need to either adapt your code to remove the scriptlets in your JSP page,

or you can use the following Java option to disable OJSP:
-Dadfvdt.disableOjspDeployment=true

You can add this option -Dadfvdt.disableOjspDeployment=true in your file "ide.conf" in the directory "<Middleware_Home>\jdeveloper\ide\bin"
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).

No comments:

Post a Comment