ADF運行jsp的時候出現 JSP scriptlets will not work properly if using OJSP

在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).
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章