Test class not found as the war is undeployed

Hi All

I’m trying to run my unit testing with Arquillian. I configured it with Maven having both Wildfly managed and remote servers. After running the test the server starts and deploys my war. Immediately after deploying it undeploys and removes the war resluting in ClassNotFound exception, I’m providing below the stacktrace:

19:46:16,070 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: WildFly 8.2.1.Final “Tweek” started in 7859ms - Started 184 of 234 services (82 services are lazy, passive or on-demand)
19:46:23,101 INFO [org.jboss.as.repository] (management-handler-thread - 3) JBAS014900: Content added at location /home/remotedev/QSDev2/app-qs/target/wildfly-8.2.1.Final/standalone/data/content/29/401e4f9cd9cff55c2a0cd817a4163817b4d7c4/content
19:46:23,172 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of “testwar.war” (runtime-name: “testwar.war”)
19:46:25,769 WARN [org.jboss.weld.deployer] (MSC service thread 1-1) JBAS016012: Deployment deployment “testwar.war” contains CDI annotations but no bean archive was found (no beans.xml or class with bean defining annotations).
19:46:26,590 INFO [org.wildfly.extension.undertow] (MSC service thread 1-2) JBAS017534: Registered web context: /testwar
19:46:26,736 INFO [org.jboss.as.server] (management-handler-thread - 3) JBAS018559: Deployed “testwar.war” (runtime-name : “testwar.war”)
2021-03-23 19:46:28 DEBUG nio:429 - Started channel thread ‘Remoting “endpoint” I/O-1’, selector sun.nio.ch.EPollSelectorImpl@381d206c
2021-03-23 19:46:28 DEBUG VersionedConectionFactory:173 - Available version (Versions 0x00 0x01)
2021-03-23 19:46:28 DEBUG VersionedConectionFactory:179 - Calling a stable server
2021-03-23 19:46:28 DEBUG VersionedConectionFactory:131 - Selecting version 0x00 to receive full version list.
2021-03-23 19:46:28 DEBUG VersionedConectionFactory:173 - Available version (Versions 0x01 0x02)
2021-03-23 19:46:28 DEBUG VersionedConectionFactory:179 - Calling a stable server
2021-03-23 19:46:28 DEBUG VersionedConectionFactory:194 - Server version 2.0.0.Final
19:46:29,576 INFO [org.wildfly.extension.undertow] (MSC service thread 1-2) JBAS017535: Unregistered web context: /testwar
19:46:29,678 INFO [org.hibernate.validator.internal.util.Version] (MSC service thread 1-1) HV000001: Hibernate Validator 5.1.3.Final
19:46:30,504 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment testwar.war (runtime-name: testwar.war) in 945ms
19:46:30,543 INFO [org.jboss.as.repository] (management-handler-thread - 3) JBAS014901: Content removed from location /home/remotedev/QSDev2/app-qs/target/wildfly-8.2.1.Final/standalone/data/content/29/401e4f9cd9cff55c2a0cd817a4163817b4d7c4/content
19:46:30,551 INFO [org.jboss.as.server] (management-handler-thread - 3) JBAS018558: Undeployed “testwar.war” (runtime-name: “testwar.war”)
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 24.115 sec <<< FAILURE!
testSaveLeaveRequest(com.maestro.application.authentication.util.PasswordStrengthTest) Time elapsed: 0.343 sec <<< ERROR!
> java.lang.ClassNotFoundException: com.maestro.application.authentication.util.PasswordStrengthTest from [Module “deployment.testwar.war:main” from Service Module Loader]

I can’t figure out why it’s undeploying the war after deploying. Could anyone help me figure out the problem? Thanks

–Rashed