Hi all,
Maybe someone can help me.
1. I have two projects, with the same pom.xml, same web.xml etc.
2. Project A is working as expected with HotSwap (I´ve changed a file, and it´s automatically updated).
3. I´m using for both project the same server, with the same settings
4. For Project B, HowSwap is active, but as soon I changed a file, it´s deploying the whole project again from scratch and not only updating the changed file.
I got also this warning as soon I updated a file:
14:56:08,271 INFO [stdout] (HotSwap Watcher) HOTSWAP AGENT: 14:56:08.271 WARNING (org.hotswap.agent.watch.nio.WatcherNIO2) - Watcher on /Applications/Software/wildfly-16.0.0.Final/standalone/deployments/myproject.war/WEB-INF/classes/META-INF not valid, removing path=
And also:
14:56:12,257 INFO [org.hibernate.orm.beans] (ServerService Thread Pool -- 162) HHH10005004: Stopping BeanContainer : org.hibernate.resource.beans.container.internal.CdiBeanContainerExtendedAccessImpl@e527fe8
14:56:12,258 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 162) WFLYJPA0011: Stopping Persistence Unit (phase 1 of 2) Service 'myproject.war#primary'
14:56:12,555 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0028: Stopped deployment myproject.war (runtime-name: myproject.war) in 946ms
14:56:12,560 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0027: Starting deployment of "myproject.war" (runtime-name: "myproject.war")
14:56:13,061 INFO [stdout] (Thread-445) HOTSWAP AGENT: 14:56:13.060 ERROR (org.hotswap.agent.plugin.weld.command.BeanClassRefreshAgent) - Bean reloading failed.
14:56:13,061 INFO [stdout] (Thread-445) java.lang.IllegalStateException: WFLYWELD0056: Weld is not initialized yet
14:56:13,061 INFO [stdout] (Thread-445) at org.jboss.as.weld.WeldProvider.getCDI(WeldProvider.java:67)
14:56:13,061 INFO [stdout] (Thread-445) at javax.enterprise.inject.spi.CDI.current(CDI.java:64)
14:56:13,061 INFO [stdout] (Thread-445) at org.hotswap.agent.plugin.weld.command.BeanClassRefreshAgent.reloadBean(BeanClassRefreshAgent.java:197)
14:56:13,062 INFO [stdout] (Thread-445) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
14:56:13,062 INFO [stdout] (Thread-445) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
14:56:13,062 INFO [stdout] (Thread-445) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
14:56:13,062 INFO [stdout] (Thread-445) at java.lang.reflect.Method.invoke(Method.java:498)
14:56:13,062 INFO [stdout] (Thread-445) at org.hotswap.agent.plugin.weld.command.BeanClassRefreshCommand.reloadBean(BeanClassRefreshCommand.java:204)
14:56:13,062 INFO [stdout] (Thread-445) at org.hotswap.agent.plugin.weld.command.BeanClassRefreshCommand.executeCommand(BeanClassRefreshCommand.java:139)
14:56:13,062 INFO [stdout] (Thread-445) at org.hotswap.agent.command.impl.CommandExecutor.run(CommandExecutor.java:43)
14:56:13,062 INFO [stdout] (Thread-445)
and also this, for many classes:
WARNING (org.hotswap.agent.watch.nio.WatcherNIO2) - Watcher on /Applications/Software/wildfly-16.0.0.Final/standalone/deployments/myproject.war/WEB-INF/classes/javascript not valid, removing path=
This error message is repeated than 5-10 times....
Does anybody have an idea, what could be wrong between those two projects?
Any settings which I should change in the failing project? I´ve checked many things, but I haven´t any solution.
Many thanks for any help