Eclipse & # 8594; Glassfish won't expand incrementally - JBOSS does

I started a new job developing Java EE 6 applications with an Ubuntu workstation.

Glassfish is the main application server that I have been using for a year or so and is well acquainted with it. I also tried JBoss to debug this problem. I am developing Eclipse and also trying Netbeans to debug this problem.

  • Incremental deployment does not work for Eclipse / Glassfish.
  • It works for Eclipse / JBoss.
  • It works for Netbeans / Glassfish.
  • It works for Eclipse / Glassfish at home on my Mac.

I have Glassfish tools installed for Eclipse Juno and I configured a server adapter for Glassfish. I reinstalled Glassfish (3.1.2.2).

Eclipse Auto-build is included and the target .class or .xhtml files are actually created / updated.

But these modified files are not copied to the application directory in Glassfish. They should be in an equivalent location under JBoss when used.

Glassfish> Domain> Application Configuration> Reboot enabled (but .class / .xhtml etc. don't even get there).

Many people have asked similar questions with few answers, so I don’t think I can get a solution. However, I would like to help debug this problem.

Is there any level of journal that I can increase to see what happens; or is there something else i can look at? Or any other thoughts?

Any helpful feedback was appreciated.

ps. I tried using the "incremental-deploy" tag, but I don't have enough reputation. Can anyone fix this?

+6
source share
3 answers

Got it!

Server adapters / connectors have a publishing configuration found by double-clicking on the adapter specified on the Servers tab. To view the changes immediately, you need to set "Automatically publish when resources change" (see footnote ). If its option "Never publish automatically", you must perform a complete redistribution manually. Everytime: (

Every server adapter that I know has this configuration.

  • footnote - Glassfish and all application servers have the ability to dynamically restart applications - this needs to be activated, and you can set the interval for polling the reboot. This can be found on Glassfish by sending to the administrator ( http://localhost:4848 by default)> Domain> Application Configuration

How to set Eclipse to publish to Glassfish

Required configuration on the Glassfish server

+12
source

it was decided not to use the automatic deployment by default, because it is undesirable for large projects. But ir is great for small pilot projects, so you can always turn it on.

+1
source

To deploy XHTML files, you can use the FileSync Eclipse Plugin .

0
source

Source: https://habr.com/ru/post/947526/


All Articles