问题描述
我正在为Java EE项目使用Eclipse Indigo和WebSphere应用服务器v8.0插件。
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.
但是当我更改一些xhtml,css或js时,服务器上没有更新。因为有一个选项说,这个扩展名的文件不会导致重新部署。
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.
当我更改这些文件之一时,我不需要重新部署。我只需要这个文件进行更新。这可以很好的与jboss。如何使用websphere v8.0和eclipse来实现?在类更改时重新部署,但只更新css,js或xhtml文件?
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?
推荐答案
我猜你的web.xml文件在您的Web应用程序中,刷新时间为-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>
这篇关于WAS 8.0 eclipse插件和热插拔的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!