WAS 8.0 eclipse plugin and hot deployment

瘦欲@ 提交于 2019-12-10 23:37:46

问题


I am using Eclipse Indigo and WebSphere application server v8.0 plugin for a Java EE project.

Setting the publishing option Run server with resources within the workspace makes the project to be redeployed when code is changed. This is fine.

But when I change some xhtml, css or js, no update is made on the server. Because there is an option saying that files with this extensions won't cause a redeploy.

I don't really need a redeploy when I change one of these files. I just need this files to be updated. This works fine with jboss. How can I achieve this using websphere v8.0 and eclipse? To redeploy when classes change, but only update the css, js or xhtml files?


回答1:


I guess that your web.xml file in your Web application have the refresh period in -1, maybe this is your problem.

<!-- Time in seconds that facelets should be checked for changes since last request.
A value of -1 disables refresh checking. -->

<context-param>
   <param-name>javax.faces.FACELETS_REFRESH_PERIOD</param-name>
   <param-value>0</param-value>
</context-param>


来源:https://stackoverflow.com/questions/17970033/was-8-0-eclipse-plugin-and-hot-deployment

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!