Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HA doesn't work on war deployed on Wildfly10.1, JDK8-121 #192

Closed
czetsuya opened this issue Apr 11, 2017 · 7 comments
Closed

HA doesn't work on war deployed on Wildfly10.1, JDK8-121 #192

czetsuya opened this issue Apr 11, 2017 · 7 comments

Comments

@czetsuya
Copy link

Hi,

I have a multi-maven war project structure like:
main-project
-ejb-proj
-war-proj

I have eclipse with jboss tools, wildfly, jdk8.

I have followed the setup guide for eclipse, downloaded and setup the latest HA and DCEVM. When I run wildfly I can see the log:

HOTSWAP AGENT: 12:05:43.414 INFO (org.hotswap.agent.HotswapAgent) - Loading Hotswap agent {1.1.0-SNAPSHOT} - unlimited runtime class redefinition.

But when I change some of my xhtml files, refresh my browser page, no matter how many times it doesn't get reflected.

I've also disabled wildfly caching just in case. Auto-deployment is also disabled.

Any idea why?

@skybber
Copy link
Contributor

skybber commented Apr 11, 2017

Auto-deployment (publishing resources on change) should be enabled in eclipse. You can check modified .xhtml in wildfly deployment path if it is really deployed.

@czetsuya
Copy link
Author

I have deployed the war using jboss tools add and remove resources feature. The files are deployed successfully in wildfly's deployment folder. But changing an xhtml file in eclipse package explorer doesn't update the same file in deployment. And nothing is updated in the browser. Did I need to configure something in hotswap-agent.properties? So far I only changed extraClasspath setting to add the maven modules.

@skybber
Copy link
Contributor

skybber commented Apr 11, 2017

HA uses webappDir for definition of external webApp directory. Wildfly is based od ModuleClassLoder, there is a plugin in HA but it doesn't solve webappDir yet. There are 2 possibilities how to solve it in Wildfly:

  • use some external program for synchronization IDE's webappDir with Wildfly's deploument webappDir
  • don't use war deployment

@rbertoncelj
Copy link

Are there any plans for webappDir support on WildFly?

I had a quick look into existing Tomcat plugin but could not invest enough time into it so far to really understand how to implement something similar for Undertow.

@czetsuya
Copy link
Author

If you're using eclipse, this feature should already be supported with Oxygen.

@skybber
Copy link
Contributor

skybber commented Jun 12, 2018

WebappDir is really not supported by https://github.com/HotswapProjects/HotswapAgent/tree/master/plugin/hotswap-agent-jbossmodules-plugin . Therefore resources modifications are not reflected in JBoss.

@skybber
Copy link
Contributor

skybber commented Apr 2, 2019

webappDir now supported on wildfly via undertow plugin

@skybber skybber closed this as completed Apr 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants