在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).