JRebel won't picking up Java classes

Forum on this website is being phased out. New threads or replies cannot be posted. Existing content remains available for now in read only mode. You can contact technical support at support@zeroturnaround.com.

ZeroTurnaround Homepage Forums JRebel Support JRebel won't picking up Java classes

This topic contains 4 replies, has 2 voices, and was last updated by  Hannes Metssalu 2 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #67024

    mabr4874
    Member

    Hello,

    I have a problem with JRebel and reloading Java classes.
    My development environment looks like:
    1. IDE: Netbeans 8.2
    2. Standalone JRebel installation with Weblogic 12

    When I manually starts Weblogic with “startWeblogic-jrebel.cmd” command, log looks like:

    2018-02-17 12:28:42 JRebel:
    2018-02-17 12:28:42 JRebel: ###################################################
    ##########
    2018-02-17 12:28:42 JRebel:
    2018-02-17 12:28:42 JRebel: JRebel Agent 7.1.6 (201802050855)
    2018-02-17 12:28:42 JRebel: (c) Copyright ZeroTurnaround AS, Estonia, Tartu.
    2018-02-17 12:28:42 JRebel:
    2018-02-17 12:28:42 JRebel: Over the last 3 days JRebel prevented
    2018-02-17 12:28:42 JRebel: at least 0 redeploys/restarts saving you about 0 ho
    urs.
    2018-02-17 12:28:42 JRebel:
    2018-02-17 12:28:42 JRebel: Licensed to XXXXXXXXXXXXXXX
    2018-02-17 12:28:42 JRebel:
    2018-02-17 12:28:42 JRebel: License type: dedicated
    2018-02-17 12:28:42 JRebel: Valid from: December 19, 2017
    2018-02-17 12:28:42 JRebel: Valid until: December 22, 2018
    2018-02-17 12:28:42 JRebel:
    2018-02-17 12:28:42 JRebel:
    2018-02-17 12:28:42 JRebel: ###################################################
    ##########
    ……
    2018-02-17 12:28:53 JRebel: Directory ‘D:\Projekti\BELIZG\modules\Belizg\build\web\WEB-INF\classes’ will be monitored for changes.
    2018-02-17 12:28:53 JRebel: Directory ‘D:\Projekti\BELIZG\modules\Belizg\web’ will be monitored for changes.
    2018-02-17 12:28:53 JRebel: Directory ‘D:\Projekti\BELIZG\modules\Belizg\src\java’ will be monitored for changes.
    …….

    I build my web aplication in Netbeans and copy “war” to weblogic autdeploy folder.
    When I do some changes in jspx files (in D:\Projekti\BELIZG\modules\Belizg\web\pages\),
    JRebel correctly picked up those files and changes will be showen immediately on aplication gui.
    But when I do some changes in java classes (D:\Projekti\BELIZG\modules\Belizg\src\java) I will get those massages:

    INFO [Thread-150] NBProjectRemotingInstance – FS notification that a file changed: D:\Projekti\BELIZG\modules\Belizg\src\java\xxx\belizg\form\WoForm.java (fileModified)
    ERROR [Thread-150] Logger – [Remote] Wrong call – module has no servers configured
    ERROR [Thread-150] Logger – [Remote] Wrong call – module has no servers configured
    INFO [Thread-150] NBProjectRemotingInstance – Can’t add D:\Projekti\BELIZG\modules\Belizg\src\java\xxx\belizg\form\WoForm.java (fileModified) to a transaction (jrebelEnabled=true, isTransactionable=false)

    Now, my question is what I overlooked when setting up jRebel?

    Thanks in advance.

    Best regards, Marko

    #67028

    Hannes Metssalu
    Rebel Staff

    Hey Marko,

    It seems that you’ve enabled remoting for your project but are actually running WebLogic in the same machine. In such case isn’t needed. Remoting should be used when the IDE and server are actually running on different machines (or virtual machine).

    Please edit your startup script (startWebLogic-jrebel.cmd) and remove -Drebel.remoting_plugin=true from VM arguments. You can read more about the standard standalone setup at http://manuals.zeroturnaround.com/jrebel/standalone/launch-from-command-line-jrebel-agent.html#weblogic-10-x-and-12-x

    Let me know of your results!

    Best,
    Hannes

    #67029

    mabr4874
    Member

    Hello,

    my startWebLogic-jrebel.cmd was created according to the instructions about standalone jrebel configuration on weblogic. It looks like:

    @echo off
    set REBEL_HOME=c:\jrebel
    set JAVA_OPTIONS=-agentpath:c:\jrebel\lib\jrebel32.dll %JAVA_OPTIONS%
    call “%~dp0\startWebLogic.cmd” %*

    There is no Drebel.remoting_plugin=true parameter in it.

    Have you any other advice?

    Thank you for your rapid response!

    Best regards, Marko

    #67030

    mabr4874
    Member

    Hello, Rebel Staff,

    I solved my issue. Even though I’ve marked “compile on save” and “deploy on save”, Netbeans doesn’t rebuild my project and this is the reason whay jRebel does’t detect any changes.
    When I rebuild the project manually, jRebel works perfectly.

    Thanks!

    ps. jRebel is the best “gadget” I’ve discovered in recent years! :)

    Best regards, Marko

    #67031

    Hannes Metssalu
    Rebel Staff

    Hey,

    Glad to hear that you got it resolved! Indeed JRebel operates on class files rather than Java source code. If you run into any other issues, just let us know!

    Best,
    Hannes

Viewing 5 posts - 1 through 5 (of 5 total)

The forum ‘JRebel Support’ is closed to new topics and replies.