Comments (4)
JBoss 7 use OSGI classloading and hence agent core classes are not available from application classloader (this is not the case with standard classloaders with parent delegation).
The solution would be to add -Djboss.modules.system.pkgs=org.hotswap.agent to older agent versions (similar to https://issues.jboss.org/browse/WFLY-895).
However Hotswap agent now sets all necessary properties for JBoss on startup.
from hotswapagent.
Currently, JBoss 7 starts correctly, but ignores configuration properties (extraClasspath, watchResources, webappDir). Hotswap via debugging is still available, but you are unable to use alternative source base.
OSGI classloading must be "hacked" to allow all properties. See Jetty/Tomcat plugin for similar implementation.
from hotswapagent.
I was able to define module with resource-root under jboss AS7 (6.3). Classloader can load things through ResourceAsStream from there. As so, currently loaded classes are hotswapped, PluginManager is generating these log messages: Reloading classes {} (autoHotswap). It happens only for currently loaded classes, but new classes are not beinged initiated, because ClassLoaderHelper#isClassLoaded does not find the new class, and in turn HotswapperPlugin#watchReload just returns at the first if statement. I also suspect that jboss classloading should be hacked to include the right paths. Btw, jboss ModuleClassLoader does not extend upon URLClassLoader (thats why Tomcat plugin does not work). ModuleClassLoader extends ConcurrentClassLoader, in turn java.lang.ClassLoader (whereas URLClassLoader would extend SecureClassLoader and in turn java.lang.ClassLoader). Thats why ClassLoader is missing ucp field which URLClassLoader has. Any idea where and how to hack the Jboss classloader ?
edudant, even jboss starts correctly, it also does not allow adding new classes. Maybe because whole application is redeployed to a temporary folder which jboss defines ar virtual VFS folder and real paths needs to be read or because of something else completely.
from hotswapagent.
There is a new jboss-modules plugin in the repository. It should solve this issue, could you test it please?
from hotswapagent.
Related Issues (20)
- Some API cannot work well in spring 6, such as org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor#postProcessPropertyValues is removed in spring6
- JDK 21 support HOT 1
- 热更新application.properties配置文件出现找不到变量错误怎么解决
- An error occurred during hot update of application.properties configuration file HOT 3
- Why does the hotswapagent 1.4.2-SNAPSHOT version of the jar not contain the springboot plug-in? HOT 6
- Mybatis hot update xml error
- Multiple instances of MapperScannerRegistrar appear, causing subsequent updates to fail HOT 2
- Added an interface method. After hot update, a parameter error occurred in the request interface.
- Whether jdk21 version is supported HOT 1
- Mybatis was introduced into the project, and the properties prompt was updated: No qualifying bean of type 'org.springframework.core.env.ConfigurableEnvironment' available HOT 3
- java -jar update mybatis failure HOT 2
- nested exception HOT 1
- Help, the new Controller API interface cannot be hot updated. HOT 4
- 1.4.2-SNAPSHOT (2024-03-16) release: org.hotswap.agent.javassist.NotFoundException: invokeCustomInitMethod(..) is not found in org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory HOT 4
- 1.4.2-SNAPSHOT inner class hotswap fail HOT 2
- final static variable values duplicates when hot swap HOT 1
- Update xml sql in mybatis + spring boot project error and will not take effect HOT 3
- AnonymousClassPatchPlugin IllegalArgumentException
- Spring Plugin with Grails hitting a snag
- How should I debug the modified class? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hotswapagent.