Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    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