Arquillian Test DeploymentException: Failed to talk to the application

I’m attempting to run Arquillian Tests but it is failing with the error

org.jboss.arquillian.container.spi.client.container.DeploymentException: Failed to talk to the application 'JIRA' at http://localhost:2990/jira
Caused by: timeout
Caused by: Socket closed

in the build output I see…

[INFO] Starting jira on the tomcat8x container on ports 2990 (http), 52273 (rmi) and 8009 (ajp)
[INFO] using codehaus cargo v1.6.10
[INFO] [2.ContainerStartMojo] Resolved container artifact org.codehaus.cargo:cargo-core-container-tomcat:jar:1.6.10 for container tomcat8x
[INFO] [talledLocalContainer] Tomcat 8.x starting...
[INFO] [stalledLocalDeployer] Deploying [C:\Tools\bda-jira-toolkit\target\jira\jira.war] to [C:\Tools\bda-jira-toolkit\target\container\tomcat8x\cargo-jira-home\webapps]...
[INFO] [talledLocalContainer]     ****************
[INFO] [talledLocalContainer]     Jira starting...
[INFO] [talledLocalContainer]     ****************
[INFO] [talledLocalContainer] 2022-04-28 06:57:39,796+1000 localhost-startStop-1 INFO      [c.a.jira.startup.LauncherContextListener] Startup is complete. Jira is ready to serve.
[INFO] [talledLocalContainer] INFO: Server startup in 461503 ms
[INFO] [talledLocalContainer] Tomcat 8.x started on port [2990]
[INFO] jira props: {jira.context=/jira, jira.protocol=http,\Tools\bda-jira-toolkit/src/test/xml, jira.port=2990,}
2022-04-28 06:58:09,677 main INFO [atlassian.remote.container.AtlassianDeployableContainer] Deploying plugin: tests.jar
2022-04-28 06:58:09,678 main INFO [remote.container.installer.QuickReloadTool] ...checking whether QuickReload is available at http://localhost:2990/jira/rest/qr/api
2022-04-28 06:58:13,561 main INFO [remote.container.installer.QuickReloadTool] ...deploying via QuickReload
2022-04-28 06:59:15,155 main INFO [atlassian.remote.container.AtlassianDeployableContainer] Undeploying plugin: tests.jar
2022-04-28 06:59:15,181 main ERROR [remote.container.installer.QuickReloadTool] Failed to uninstall plugin. Response status: 405 

I never see a “jira started successfully in XXXs at http://localhost:2990/jira” message like I see when I do a jira:run

Well it’s been an extremely frustrating journey but I finally got there in the end. I felt like a blind man with no fingers fumbling in the dark. I’m not sure what combination of changes lead to it working but a significant one was changing the annotations on my service.


public class IssueHistoryServiceImpl implements IssueHistoryService {


public class IssueHistoryServiceImpl implements IssueHistoryService {