在JDeveloper工具中創建jsp頁面,裏面寫了java代碼,運行時就會出現JSP scriptlets will not work properly if using OJSP錯誤信息
解決方案是:
You need to either adapt your code to remove the scriptlets in yourJSP page,
or you can use the following Java option to disable OJSP:
在開發環境中進到C:\Oracle\Middleware\Jdevelopers\JDE111160\jdeveloper\ide\bin目錄下編輯ide.conf文件添加如下內容
-Dadfvdt.disableOjspDeployment=true在生產環境中進到weblogic目錄找到startManagedWebLogic.sh或者setDomainEnv文件做如下修改
AddVMOption -Dadfvdt.disableOjspDeployment=true
出現問題的原因,可能是爲了安全性屏蔽了此種方式。
For your Production environment, you can have your Managed WLSignoring the OJSP mode by adding the Java Option-Dadfvdt.disableOjspDeployment=true
* in the "startManagedWebLogic" (if you want to limit it to aspecific Managed Server)
* or "setDomainEnv" (for all managed servers in a domain).