I'm trying to set up in my Eclipse neon.3 (4.6.3):
- Payara Server container (4.1.2.174)
- JRebel agent 7.1.3
for an application packaged in EAR format. In the deploy process, no error is displayed in the Payara or JRebel log. I get the following messages regarding my EJB's:
2017-12-12T14:52:50.933-0200|INFORMAÇÕES: 2017-12-12 14:52:50 JRebel: Watching 'alfa.bc.logistica.core.ejb.AlfaTransportadorEJB' for changes
2017-12-12T14:52:50.936-0200|INFORMAÇÕES: Portable JNDI names for EJB AlfaTransportadorEJB: [java:global/alfa.bc.logistica.ee/alfa.bc.logistica.core.em/AlfaTransportadorEJB!alfa.bc.logistica.core.remote.AlfaTransportadorRemote, java:global/alfa.bc.logistica.ee/alfa.bc.logistica.core.em/AlfaTransportadorEJB]
When I make any changes to their monitored classes (for example AlfaTransportadorEJB
), the changes are not made to the container, but the .class
files are compiled and generated successfully in the target
directory of my classpath (in the IDE option "Build automatically" = true).
Apparently the .class
files are not "deploy" on container to do the reloading process of Class Loading.
Additional Information:
For JRebel configuration I followed this tutorial.
For the same version of the respective EAR application, the "reloading of classes" is done successfully using Glassfish 4.1 with Jrebel 7.0.5. However in this case, in deploy process, the container says the following.
.
2017-12-12T15:02:24.167-0200|Informações: 2017-12-12 15:02:24 JRebel: Directory 'C:\Documentos\cooperateEE\logistica\alfa.bc.logistica.core.em\target\classes' will be monitored for changes.
... <another logs here> ...
2017-12-12T15:03:45.994-0200|Informações: 2017-12-12 15:03:45 JRebel: Watching 'alfa.bc.logistica.core.ejb.AlfaTransportadorEJB' for changes
2017-12-12T15:03:45.998-0200|Informações: Portable JNDI names for EJB AlfaTransportadorEJB: [java:global/alfa.bc.logistica.ee/alfa.bc.logistica.core.em/AlfaTransportadorEJB!alfa.bc.logistica.core.remote.AlfaTransportadorRemote, java:global/alfa.bc.logistica.ee/alfa.bc.logistica.core.em/AlfaTransportadorEJB]
I think JRebel is not monitoring the target
directory to then reload the compiled .class
files in conteiner.
What is the reason JRebel does not identify my target directory like the above log says ("will be monitored for changes
") ?