IntelliJ不更新Glassfish部署 [英] IntelliJ not updating Glassfish Deployment

查看:253
本文介绍了IntelliJ不更新Glassfish部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在更新应用程序选项卡中,它已经在调试的底部了:





我尝试使用所有更新选项来更新我的应用程序(更新类,更新类资源,重新启动)和NONE工作来更新我的服务器。我甚至关闭并重新启动了IntelliJ,并且更新仍然没有出现。



更新是一个简单的警报消息,在加载index.html时触发。它在我手动加载html时起作用,但是当我运行服务器时,它不会提醒,这意味着它仍在使用我的服务器的前一次迭代?这真是令人沮丧,因为我看不到我的任何更改,也不知道如何修复我的服务器。



我使用最新的Glassfish服务器和最新的IntelliJ IDE。它确实更新我的资源EVENTUALLY,但不是通过一些定义的模式,据我所知。

解决方案

以下是我从你的其他帖子。我会建议关闭这一个,并继续讨论单线程(如果仍然需要)。

预期顺序如下:


  1. 对资源进行更改

  2. 使用提及的'Update<>应用程序'操作更新服务器上的应用程序:'更新资源'选项应该足够用于分解应用程序,可能需要重新部署/重新启动artifact

  3. 重新加载(刷新)使用浏览器资源的页面

我怀疑你错过了最后一步(3)。请注意,步骤(2)只更新服务器上的资源,并且要查看浏览器中的更改(在客户端上),您应该通过手动刷新页面从服务器重新加载相应的资源。



希望有帮助,

IntelliJ is acting odd with its redeployment settings.

In the "updating applications" tab it has on the bottom for debugging:

,

I have tried to use all of the update options in order to update my application (update classes, update classes resources, restart), and NONE work to update my server. I have even closed and rebooted IntelliJ and the updates still don't appear.

The update is a simple alert message that is triggered when the index.html is loaded. It works when I load the html manually, but when I run the server, it does not alert, meaning it is still using a previous iteration of my server? This is really frustrating as I can't see any of my changes and don't know how to fix my server.

I am using the latest Glassfish server and latest IntelliJ IDE. It does update my resources EVENTUALLY, but not through some defined pattern as far as I can tell.

解决方案

Below is the copy of my answer from your other post. I would suggest to close this one and to continue discussion in single thread (if still needed).

The expected sequence is as follows:

  1. make a change to a resource
  2. update the application on the server with the mentioned 'Update <> application' action: 'Update resource' choice should be enough for an exploded application, redeploy/restart may be needed for archive artifact
  3. reload (refresh) the page, that uses the resource in browser

I suspect you're missing the last (3) step. Please note, step (2) only updates the resource on the server, and to see a change in browser (on client) you should reload the corresponding resources from server by refreshing the page manually.

Hope that helps,

这篇关于IntelliJ不更新Glassfish部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆