[arquillian-issues] [JBoss JIRA] (ARQ-1961) Exception while undeploying application in WebSphere Liberty Profile

Gerhard Poul (JIRA) issues at jboss.org
Fri Jun 26 00:45:03 EDT 2015


    [ https://issues.jboss.org/browse/ARQ-1961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13084128#comment-13084128 ] 

Gerhard Poul commented on ARQ-1961:
-----------------------------------

[~dlwester] From the trace it looks like WLP at least logs that it stopped the application before we try to delete it, but who knows. Good at least that the deleteOnExit() seems to work. I have not added this as a parameter, but you can find a Thread.sleep() that you can adjust here: https://github.com/arquillian/arquillian-container-was/compare/master...gpoul:ARQ-1961#diff-957685487719c29ce4c464fc2ec9cf39R412

Maybe you can make it long enough to either make it go away or see who is locking the file in a process explorer.

What also occurred to me is that you might want to at least test once with Antivirus disabled if you have it installed; Just to be sure.

Which version of Liberty are you using? Is it a publicly available build? Do you think there is a good chance this can be reproduced on a test VM?

> Exception while undeploying application in WebSphere Liberty Profile
> --------------------------------------------------------------------
>
>                 Key: ARQ-1961
>                 URL: https://issues.jboss.org/browse/ARQ-1961
>             Project: Arquillian
>          Issue Type: Bug
>          Components: WebSphere Containers
>         Environment: OS: Windows 7 Professional
> Arquillian: org.jboss.arquillian:arquillian-bom:1.1.6.Final
>             org.jboss.arquillian.container:arquillian-wlp-managed-8.5:1.0.0.Beta2
> Shrinkwrap: org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-bom:2.1.1
> WebSphere Liberty Profile: 8.5.5.4
> JUnit: 4.11
> Java: IBM Java 1.7 in 1.6 mode
>            Reporter: Dave Westerman
>            Assignee: Gerhard Poul
>         Attachments: DaveWesterman_arquillian-enhanced-trace.zip
>
>
> I am trying to test my JEE application with Arquillian running under WebSphere Liberty Profile 8.5.5.4. My Arquillian tests run against an EJB and a REST service.
>  
> All the tests run successfully. However, the JUnit test process always ends with an exception:
>  
> org.jboss.arquillian.container.spi.client.container.DeploymentException: Exception while undeploying application.
>     at org.jboss.arquillian.container.was.wlp_managed_8_5.WLPManagedContainer.undeploy(WLPManagedContainer.java:419)
>     at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$4.call(ContainerDeployController.java:205)
>     at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$4.call(ContainerDeployController.java:185)
>     at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.executeOperation(ContainerDeployController.java:271)
>     at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.undeploy(ContainerDeployController.java:184)
> ...
> Caused by: org.jboss.arquillian.container.spi.client.container.DeploymentException: Unable to delete archive from apps directory
>     at org.jboss.arquillian.container.was.wlp_managed_8_5.WLPManagedContainer.undeploy(WLPManagedContainer.java:405)
>     at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$4.call(ContainerDeployController.java:205)
>     at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$4.call(ContainerDeployController.java:185)
>     at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.executeOperation(ContainerDeployController.java:271)
>     at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.undeploy(ContainerDeployController.java:184)
> I ran this with a trace that Gerhard suggested, and here is the relevant section of the trace:
> Jun 24, 2015 11:14:18 AM org.jboss.arquillian.container.was.wlp_managed_8_5.WLPManagedContainer undeploy
> FINER: ENTRY
> Jun 24, 2015 11:14:18 AM org.jboss.arquillian.container.was.wlp_managed_8_5.WLPManagedContainer getServerXML
> FINER: server.xml: /IBM/WLP8554/usr/servers/taskcalendar/server.xml
> Jun 24, 2015 11:14:18 AM org.jboss.arquillian.container.was.wlp_managed_8_5.WLPManagedContainer getServerXML
> FINER: server.xml: /IBM/WLP8554/usr/servers/taskcalendar/server.xml
> Jun 24, 2015 11:14:18 AM org.jboss.arquillian.container.was.wlp_managed_8_5.WLPManagedContainer waitForMBeanTargetState
> FINER: ENTRY
> [AUDIT   ] CWWKG0016I: Starting server configuration update.
> [AUDIT   ] CWWKG0028A: Processing included configuration resource: C:\IBM\WLP8554\usr\servers\taskcalendar\serverApplication.xml
> [AUDIT   ] CWWKG0028A: Processing included configuration resource: C:\IBM\WLP8554\usr\servers\taskcalendar\serverKeyStore.xml
> [AUDIT   ] CWWKG0028A: Processing included configuration resource: C:\IBM\WLP8554\usr\servers\taskcalendar\serverBasicUserRegistry.xml
> [AUDIT   ] CWWKG0028A: Processing included configuration resource: C:\IBM\WLP8554\usr\servers\taskcalendar\serverTesting.xml
> [AUDIT   ] CWWKG0017I: The server configuration was successfully updated in 0.043 seconds.
> [AUDIT   ] CWWKT0017I: Web application removed (default_host): http://dlwester:30080/task-calendar-ejb-task-calendar-bean-test/
> [INFO    ] SRVE0253I: [task-calendar-ejb-task-calendar-bean-test] [/task-calendar-ejb-task-calendar-bean-test] [ArquillianServletRunner]: Destroy successful.
> [INFO    ] OpenWebBeans Container was stopped for context path, [/task-calendar-ejb-task-calendar-bean-test]
> [INFO    ] CNTR4003I: The task-calendar-ejb-task-calendar-bean-test.war EJB module in the task-calendar-ejb-task-calendar-bean-test application is stopping.
> [INFO    ] CNTR4004I: The task-calendar-ejb-task-calendar-bean-test.war EJB module in the task-calendar-ejb-task-calendar-bean-test application has stopped successfully.
> [AUDIT   ] CWWKZ0009I: The application task-calendar-ejb-task-calendar-bean-test has stopped successfully.
> Jun 24, 2015 11:14:18 AM org.jboss.arquillian.container.was.wlp_managed_8_5.WLPManagedContainer waitForMBeanTargetState
> FINER: RETURN
> Jun 24, 2015 11:14:18 AM org.jboss.arquillian.container.was.wlp_managed_8_5.WLPManagedContainer getAppDirectory
> FINER: appDir: /IBM/WLP8554/usr/servers/taskcalendar/apps
> Jun 24, 2015 11:14:19 AM org.jboss.arquillian.container.was.wlp_managed_8_5.WLPManagedContainer stop
> FINER: ENTRY
> Jun 24, 2015 11:14:19 AM org.jboss.arquillian.container.was.wlp_managed_8_5.WLPManagedContainer stop
> FINER: RETURN



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the arquillian-issues mailing list