Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Vignesh
    @Vignesh-FullStackDeveloper
    but still if i do some, changes tomcat is redeploying..
    Welton Rodrigo Torres Nascimento
    @weltonrodrigo
    Hi guys. I'm managed to get travaopenjdk working with my jsf project. I believe it's necessary to specify webappDir on hotswap-agent.properties to get xhtml reload working.
    But I couldn't find a mention to it in the jsf plugin page. I'm willing to improve the docs if it's the case, but could not find the repo hosting the site. Where can I find it so I can open a PR?
    Vladimir Dvorak
    @skybber
    For JSF reloading, I'm using standard configuration in web.xml:
        <context-param>
                <param-name>javax.faces.PROJECT_STAGE</param-name>
                <param-value>Development</param-value>
        </context-param>

    MyFaces plugin does not do a lot for XHTML reloading, look at:

    https://github.com/HotswapProjects/HotswapAgent/blob/master/plugin/hotswap-agent-myfaces-plugin/src/main/java/org/hotswap/agent/plugin/myfaces/MyFacesPlugin.java#L82

    there is .properties reloading and managed bean reloading.

    lulnope
    @lulnope
    Hello.
    I'm using HA + TravaJDK 11 with Wildfly 18. Reloading EJBs works great when I edit method body. However method signature changes seem broken. New methods are called without any interceptors. This leads me to believe that EJB reload isn't really supported by HA.
    1. Is there support for EJB 3 reloading in Hotswap-agent currently? Is it planned in the future?
    2. If it is not planned, why? Are there any reasons inherent to EJB3 that would prevent someone from implementing HA support for Wildfly (for example: complexity)?
    Vladimir Dvorak
    @skybber
    EJB3 is not supported, no plan to do it, but you an try to do it :)
    nomuna
    @nomuna
    Hello everyone... Is there a way to deactivate some of the plugins selectively? For example I am using the fatjar and I do not want to use the hibernate plugin....
    Vladimir Dvorak
    @skybber
    Matsuuu
    @mmatsuuu:matrix.org
    [m]

    I set up Hotswap Agent to work with wildfly. I am able to connect to the instance with wildfly, and recompile classfiles.

    However one of my projects contains JSP files and serves them through REST endpoints, and when I compile those classes, I get the following error:
    Could not reload rest class Hotswap agent org.jboss.resteasy.spi.LoggableFailure: RESTEASY003880: Unable to find contextual data of type: javax.servlet.ServletContext

    The class causing the error is a controller (containing the rest endpoints) class if that has anything to do with it
    min
    @nzomkxia
    is there any document about how to build
    https://github.com/HotswapProjects/HotswapAgentPages?
    Vladimir Dvorak
    @skybber
    mvn package -Dmaven.test.skip=true ?
    min
    @nzomkxia
    HotswapAgentPages does not looks like a maven project
    Vladimir Dvorak
    @skybber
    :)
    雷雨
    @zpshowhan
    hi Does this support remote hot deployment?
    Vladimir Dvorak
    @skybber
    I would suggest to read the doc at www.hotswapagent.org
    Precious
    @Kyu
    Is there a way to silence error outputs?
    I am running Hotswapagent with jbe 17, in IDEA, and at the beginning of class loading it gives me plugin loader not found error. Searching issues show others have had this error in the past, mine is related to Log4J2. But everything runs smoothly so no problem.
    When I run a hotswap though, I get a huge error output, its kind of annoying
    the hotswap still goes through though, so i'd just like to silence the error bc I cba to investigate it
    Precious
    @Kyu
    outputs if anyone is interested
    Growth
    @ZijieSong

    Hi, when I re-compile some java source files, hotswap agent outputs log as "reloading classes...",but no hotswap results, such as success or failure. So I can't be sure if it works unless I trigger a network request to verify. Sometimes even though there is no error log, the change still does not take effect.

    Is there any easy way to tell me clearly if the hotswap was successful? thanks!

    Vladimir Dvorak
    @skybber
    I'm using -Xlog:redefine+class*=info
    Growth
    @ZijieSong
    hi, I found that spring plugin doesn't work when bean is registered by @Bean. Is that true or I have a wrong way to use this plugin
    dinesh.kumar
    @dinesh.kumar:matrix.org
    [m]
    hello everyone, good day
    I am working on JBoss based application where ear contains war file
    This war file is the application where I need the hot swap feature
    JRebel works with it, is it possible to have hotswap agent instead
    kindly help
    Vladimir Dvorak
    @skybber
    look at config extraClass path at http://hotswapagent.org/mydoc_configuration.html
    dinesh.kumar
    @dinesh.kumar:matrix.org
    [m]
    Another thing is, the application is deployed separately as standalone using commands
    The IDE is not used in this case for deployment
    Could I know whether hotswap would still work in this approach
    Vladimir Dvorak
    @skybber
    Yes, it should work. It works even in docker, you can take inspiration in https://github.com/HotswapProjects/hotswap-docklands
    taehyunlim
    @taehyunlim
    Hi all... Does hotswap work with ARM based silicon as well? I'm getting below error:

    Launching a JVM...
    JVM exited while loading the application.
    Error: dl failure on line 560
    Error: failed /Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/lib/dcevm/libjvm.dylib, because dlopen(/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/lib/dcevm/libjvm.dylib, 0x000A): tried: '/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/lib/dcevm/libjvm.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e'))

    Vladimir Dvorak
    @skybber
    I don't think it is good idea to mix x86 binary with arm64 :) Also dcevm is a patch primary for openjdk, not zulu jdk, that is not open source as I know