您的位置:首页 > Web前端 > JavaScript

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

2016-04-26 16:58 501 查看
在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).
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: