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)
- DCEVM installation not found for JDK specified for the current project HOT 2
- Spring plugin doesn't work with @Lookup annotation HOT 2
- The first bean added to a new package is not registered by the Spring plugin
- org.hotswap.agent.annotation.handler.PluginClassFileTransformer HOT 2
- spring java bean @Order annotation is not working
- HotswapAgent don't pickup new mapping and new class in spring boot HOT 9
- IllegalAccessError with JDK 17
- MyBatis Plus Dynamic Sql Hotswap do not work
- cannot create release HOT 1
- Caused by: compile error: no such class: ManagedBean
- No match for watchkey event
- Does the solution of JetBrainsRuntime 11 + HotswapAgent can work? HOT 1
- Getting error every build HOT 1
- Errors thrown when starting jbr_jcef-17.0.7 Minecraft Paper server. HOT 4
- IntelliJ plugin or other easy way to launch from IntelliJ HOT 1
- Can HotswapAgent support add @Resource/@Autowired fields in springboot based project? HOT 6
- JacksonPlugin ConcurrentModificationException
- What is the ProxyReplacerTransformer in the Spring plugin used for? HOT 1
- HotswapAgent IDEA plugin Could not identify JBR17's dcevm HOT 1
- bug: my Spring Boot project will OOM after running for a day
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.