让WebSphere Portal Server 6.0自动重新装入JSP
2007-08-27 17:56
323 查看
在WebShpere Portal Server (WPS) 6.0中,修改了JSP文件之后,不能立即看到修改的结果,看到的仍然是缓存中之前部署在服务器上的JSP文件,因为WPS的默认配置中是不会自动重新部署被修改过的JSP文件的。当然重启服务器就可以看到更改后的结果,然而重新WPS的时间消耗是非常惊人的,这样很不利于开发过程中频繁的更改。
按照这些步骤启用自动 JSP 重新装入:
打开文件
was_profile_root/config/cells/cell_name/applications/wps.ear/deployments /wps/wps.war/WEB-INF/ibm-web-ext.xmi
在此文件中找到下列条目:
<webappext:WebAppExtension xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:webappext="webappext.xmi" xmlns:webapplication="webapplication.xmi"
xmlns:commonext="commonext.xmi" xmlns:common="common.xmi"
xmi:id="IBM_WPS_Ext" reloadInterval="3" reloadingEnabled="false"
fileServingEnabled="true" directoryBrowsingEnabled="false"
serveServletsByClassnameEnabled="false" preCompileJSPs="false">
更改 reloadingEnabled 的值为 true。
保存文件。
重新启动门户网站服务器。
完成这些步骤之后,当它们更改时,JSP 自动重新装入。然而,要查看对另一个(父)JSP 包括的 JSP 的更改,您还必须更改父 JSP 以表明它必须被服务器重新装入。例如在main.jsp文件中使用@include指令包含了一个JSP片段文件frag.jspf,则更改了frag.jspf后,应该也更改main.jsp(例如在无关紧要的地方加上几个空格),这样frag.jspf才会被重新装入。
按照这些步骤启用自动 JSP 重新装入:
打开文件
was_profile_root/config/cells/cell_name/applications/wps.ear/deployments /wps/wps.war/WEB-INF/ibm-web-ext.xmi
在此文件中找到下列条目:
<webappext:WebAppExtension xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:webappext="webappext.xmi" xmlns:webapplication="webapplication.xmi"
xmlns:commonext="commonext.xmi" xmlns:common="common.xmi"
xmi:id="IBM_WPS_Ext" reloadInterval="3" reloadingEnabled="false"
fileServingEnabled="true" directoryBrowsingEnabled="false"
serveServletsByClassnameEnabled="false" preCompileJSPs="false">
更改 reloadingEnabled 的值为 true。
保存文件。
重新启动门户网站服务器。
完成这些步骤之后,当它们更改时,JSP 自动重新装入。然而,要查看对另一个(父)JSP 包括的 JSP 的更改,您还必须更改父 JSP 以表明它必须被服务器重新装入。例如在main.jsp文件中使用@include指令包含了一个JSP片段文件frag.jspf,则更改了frag.jspf后,应该也更改main.jsp(例如在无关紧要的地方加上几个空格),这样frag.jspf才会被重新装入。
相关文章推荐
- portal启用自动 JSP 重新装入
- 使用 Rational Application Developer 6.0 和 WebSphere Portal Server 5.1开发 JSF portlet
- 在WebSphere Portal Server 6.0上面部署WSRP
- 添加MyEclipse WebSphere Portal Server支持(一)
- IBM Websphere PortalServer+AppServer+IDS(LDAP)以及DB2使用
- 在linux下用脚本自动备份domino和WebSphere Portal(转自YGBLOG)
- 使用 WebSphere Process Server 构建以人工任务为中心的业务流程,第 2 部分: 自定义 JSP
- WebSphere Application Server V6.0的升级策略
- 使用 WebSphere Studio Application Developer 的 WebSphere Portal Server 开发: 第 1 部分:Portal Server 2.1 的动态主题定制
- WebsphereApplicationServerNetworkDeployment V6.0的开发部署中的常见问题(初级)
- 有关Eclipse不自动刷新JSP文件的解决办法(Websphere环境)
- IBM P550 上部署Websphere portal server上的portlet无法显示
- Websphere Portal Server Cross-Site-Scripting保护机制
- WebSphere Application Server 7 应用程序发布的问题 【jsp页面打不开】
- Websphere Application Server 8 的自动部署功能简介
- WebsphereApplicationServerNetworkDeployment V6.0的开发部署中的常见问题(初级)
- WebSphere Application Server 6.0安全认证与已有系统的用户数据库整合实例
- 使用RAD和 WebSphere Portal Server开发JSF portlet (二)
- IBM P550 上部署Websphere portal server上的portlet无法显示
- Websphere Portal Server和Sharepoint Portal Server