These are chat archives for HotswapProjects/user

29th
Nov 2016
Alberto Fanjul
@albfan
Nov 29 2016 13:23
Hi, All! I'm looking to support jboss/wildfly hotswap. I know it is not currently supported, am I right?
Vladimir Dvorak
@skybber
Nov 29 2016 13:40
Yes, we did it only for wildfly but I believe it shouldn't be so hard to do that.
Alberto Fanjul
@albfan
Nov 29 2016 13:41
What version of wildfly is currently supported? How to debug problems on jboss? any guide?
Vladimir Dvorak
@skybber
Nov 29 2016 13:44
I have tested it with 8.0 and 9.0
but HA should work with JBoss AS 6.0
JBossAS 7.0 respectivelly
As I think, the problem with previous versions is in jbossmodules. I did patch for JBoss class loader in JBossModules plugin:
https://github.com/HotswapProjects/HotswapAgent/blob/master/plugin/hotswap-agent-jbossmodules-plugin/src/main/java/org/hotswap/agent/plugin/jbossmodules/JBossModulesPlugin.java
Alberto Fanjul
@albfan
Nov 29 2016 13:50
ok. I will add that to #158. So problem using HA in jboss should be related to my project?
Vladimir Dvorak
@skybber
Nov 29 2016 13:50
In your case the classloader can't find some resource, it is loaded from com.sun.faces.application.view.ViewMetadataImpl
Alberto Fanjul
@albfan
Nov 29 2016 13:52
it is index.xhtml. it located on src/main/resources/META-INF/resources/views/index.xhtml
any guide to debug HA?
Get HA sources, attach them to project and put breakpoints to HA sources. It should work from eclipe at least.
try to find out if there is org.jboss.modules.ModuleLoader in EAP
Alberto Fanjul
@albfan
Nov 29 2016 13:58
ok that should be enough to test the problem I will check actual behaviour and compare with patched jvm with HA
Vladimir Dvorak
@skybber
Nov 29 2016 14:00
There is additional patcher class for jboss modules in HA - ModuleClassLoaderTransformer, put breakpoints into his class and look if the hooks are called.
Alberto Fanjul
@albfan
Nov 29 2016 14:00
yes it has ModuleLoader on jboss-modules.jar
Vladimir Dvorak
@skybber
Nov 29 2016 14:01
send me please version from MANIFEST
Alberto Fanjul
@albfan
Nov 29 2016 14:02
Manifest-Version: 1.0
Build-Timestamp: Mon, 23 Sep 2013 16:16:05 -0400
Implementation-Title: JBoss Modules
Built-By: mockbuild
Jar-Version: 1.3.0.Final-redhat-2
Implementation-Vendor: JBoss by Red Hat
Implementation-Vendor-Id: org.jboss.modules
Specification-Title: JBoss Modules
Implementation-Version: 1.3.0.Final-redhat-2
Os-Version: 2.6.32-358.18.1.el6.x86_64
Specification-Vendor: JBoss by Red Hat
Created-By: Apache Maven
Implementation-URL: http://www.jboss.org/jboss-modules
Os-Name: Linux
Java-Vendor: Oracle Corporation
Scm-Revision: 975060b0232323cc689d02e15837724b1b5687c2
Scm-Url: http://github.com/jboss/jboss-parent-pom/jboss-modules
Java-Version: 1.7.0_25
Build-Jdk: 1.7.0_25
Scm-Connection: scm:git:git@github.com:jboss/jboss-parent-pom.git/jbos
s-modules
Os-Arch: amd64
Specification-Version: 1.3.0.Final-redhat-2
Main-Class: org.jboss.modules.Main
Jar-Name: jboss-modules
Archiver-Version: Plexus Archiver
Vladimir Dvorak
@skybber
Nov 29 2016 14:03

I've tested it for following versions:
testedVersions = {"1.4.4, 1.5.1"},

you can find out it in JBossModulesPlugin annotation

simple way is to step the method "patchModuleClassLoader" in debugger
Alberto Fanjul
@albfan
Nov 29 2016 14:08
Ok. I have all the neccesary info now. Really cool, let's see how it goes.
Note: That master class was amazing, really appreciated that
Vladimir Dvorak
@skybber
Nov 29 2016 14:10
It would be great if you fix it since it is not so easy for me to make same prooject setup you have.
believe that the problem is inside this class...
Alberto Fanjul
@albfan
Nov 29 2016 14:24
Ok I will report on issue