在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
出現問題的原因,可能是為了安全性屏蔽了此種方式。
You can add this option -Dadfvdt.disableOjspDeployment=true in yourfile "ide.conf" in the directory"<Middleware_Home>\jdeveloper\ide\bin"
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).