ADF运行jsp的时候出现 JSP scriptlets will not work properly if using OJSP

来源:互联网 发布:mac 最大化 快捷键 编辑:程序博客网 时间:2024/05/01 17:33

在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).
原创粉丝点击