`
george.gu
  • 浏览: 71172 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Weblogic 11g JSP cache

 
阅读更多

Normally,  jsp_servlet classes will be cached by Weblogic 11g in:

{BEA_WLS}\user_projects\domains\yourdomain\servers\yourserver\tmp\_WL_user\your_app_name

 

We always meet a strange problem: why JSP page is not up to date even after restart/redeploy application? This is mainly because the cache is not cleared.

Two solutions to solve this problem:

  1. Clean your domain/cache before redeploy.
  2. Define "jsp-descriptor" in webloigc.xml to ask weblogic precompile all modified JSPs when the Web application is deployed or re-deployed or when starting WebLogic Server
Here, I list some jsp-param which can help us to debug issues in JSP development with Weblogic server:
  • keepgenerated: true|false: Saves the Java files that are generated as an intermediary step in the JSP compilation process. Unless this parameter is set to true, the intermediate Java files are deleted after they are compiled.
  • precompile: true|false: When set to true, WebLogic Server continues precompiling all modified JSPs even if some of those JSPs fail during compilation. Only takes effect when precompile is set to true.
  • precompile-continue: true|false: When set to true, WebLogic Server automatically precompiles all modified JSPs when the Web application is deployed or re-deployed or when starting WebLogic Server.
Here is a demo of weblogic.xml:
<?xml version="1.0" encoding="UTF-8"?>
<weblogic-web-app>
  	<jsp-descriptor>
		<jsp-param>
			<!-- keepgenerated=true: Used to save generated jsp_servlet java class for JSP file. It will be used to debug jsp error. -->
			<param-name>keepgenerated</param-name>
			<param-value>false</param-value>
		</jsp-param>
		<jsp-param>
			<param-name>precompile</param-name>
			<param-value>true</param-value>
		</jsp-param>
		<jsp-param>
			<param-name>precompile-continue</param-name>
			<param-value>true</param-value>
		</jsp-param>
	</jsp-descriptor>
</weblogic-web-app>
 
For more details on weblogic jsp-descriptor, please refer to weblogic.xml Deployment Descriptor Elements.
0
2
分享到:
评论

相关推荐

    weblogic平台J2EE调优策略

    1.3.2 JSP代码调优 1.3.3 Servlet代码调优 1.4 JMS代码调优 1.4.1 注意必要的事项,避免使用不必要的特征 1.4.2 消息类型的选择 1.4.3 确认方式的选择和JMS事务 1.5 EJB代码调优 1.5.1 有效使用设计模式 1.5.2 使用...

    千方百计笔试题大全

    130、如何防止在JSP或SERVLET中的输出不被BROWSER保存在CACHE中? 32 131、在JSP中如何设置COOKIE? 32 132、在JSP中如何删除一个COOKIE? 32 133、在一个JSP的请求处理中如何停止JSP的执行 33 134、在JSP中如何定义...

    java面试宝典

    130、如何防止在JSP或SERVLET中的输出不被BROWSER保存在CACHE中? 32 131、在JSP中如何设置COOKIE? 32 132、在JSP中如何删除一个COOKIE? 32 133、在一个JSP的请求处理中如何停止JSP的执行 33 134、在JSP中如何定义...

    java 面试题 总结

    但EJB必须被布署在诸如Webspere、WebLogic这样的容器中,EJB客户从不直接访问真正的EJB组件,而是通过其容器访问。EJB容器是EJB组件的代理,EJB组件由容器所创建和管理。客户通过容器来访问真正的EJB组件。 21、...

    超级有影响力霸气的Java面试题大全文档

    但EJB必须被布署在诸如Webspere、WebLogic这样的容器中,EJB客户从不直接访问真正的EJB组件,而是通过其容器访问。EJB容器是EJB组件的代理, EJB组件由容器所创建和管理。客户通过容器来访问真正的EJB组件。 24、...

    J2EE系统设计方案(1).doc

    JSP页面缓存 11 五、 软件成本比较 11 1. 技术平台 J2EE(Java 2 Enterprise Edition)是建立在Java 2平台上的企业级应用的解决方案。J2EE技术的基础便是Java 2平台,不但有J2SE平台的所有功能,同时还提供了对EJB...

    J2EE系统设计方案.doc

    JSP页面缓存 11 五、 软件成本比较 11 1. 技术平台 J2EE(Java 2 Enterprise Edition)是建立在Java 2平台上的企业级应用的解决方案。J2EE技术的基础便是Java 2平台,不但有J2SE平台的所有功能,同时还提供了对EJB...

    jive.chm

    2 jcs学习笔记 3 关于Hibernate的Cache问题 4 用缓冲技术提高JSP应用的性能和稳定性 5 SwarmCache入门 &lt;br&gt; 源代码研究 1 Jive中的全局配置 2 Jive源代码情景分析-index....

    spring-boot-reference.pdf

    JSP Limitations 28. Security 28.1. MVC Security 28.2. WebFlux Security 28.3. OAuth2 28.3.1. Client 28.3.2. Server 28.4. Actuator Security 28.4.1. Cross Site Request Forgery Protection 29. Working ...

    Struts2属性文件详解

    该属性还允许使用ftl、vm或jsp,分别对应FreeMarker、Velocity和JSP模板. struts.configuration.xml.reload 该属性设置当struts.xml文件改变后,系统是否自动重新加载该文件.该属性的默认值是false. struts.velocity....

    Struts2\constant应用

    该属性还允许使用ftl、vm或jsp,分别对应FreeMarker、Velocity和JSP模板。 struts.configuration.xml.reload 该属性设置当struts.xml文件改变后,系统是否自动重新加载该文件。该属性的默认值是false。 struts...

    JAVA上百实例源码以及开源项目

     基于EJB的真实世界模型,附源代码,部分功能需JSP配合完成。 J2ME优化压缩PNG文件 4个目标文件 内容索引:JAVA源码,综合应用,J2me游戏,PNG,图形处理  这是个J2ME控制台程序,它能剔除PNG文件中的非关键数据段,...

    JAVA上百实例源码以及开源项目源代码

     基于EJB的真实世界模型,附源代码,部分功能需JSP配合完成。 J2ME优化压缩PNG文件 4个目标文件 内容索引:JAVA源码,综合应用,J2me游戏,PNG,图形处理  这是个J2ME控制台程序,它能剔除PNG文件中的非关键数据段,...

Global site tag (gtag.js) - Google Analytics