问题
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