[jboss-jira] [JBoss JIRA] Resolved: (JBAS-5953) JBoss-AS-5.0.x-TestSuite-sun16-sun16 - org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase

Ales Justin (JIRA) jira-events at lists.jboss.org
Mon Nov 24 06:22:36 EST 2008


     [ https://jira.jboss.org/jira/browse/JBAS-5953?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ales Justin resolved JBAS-5953.
-------------------------------

    Resolution: Done


Adding extended deploy method to old MainDeployer:

   /**
    * The <code>deploy</code> method deploys a package identified by a URL
    *
    * @param url an <code>URL</code> value
    * @param noReaper enable no reaper
    * @param forceCopy enable copy
    * @param caseSensitive enable case sensitive
    * @throws DeploymentException for any error
    */
   void deploy(URL url, boolean noReaper, boolean forceCopy, boolean caseSensitive) throws DeploymentException;

Invoking deploy with noReaper==true allows testjar file deletion.

> JBoss-AS-5.0.x-TestSuite-sun16-sun16 - org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase
> ------------------------------------------------------------------------------------------------
>
>                 Key: JBAS-5953
>                 URL: https://jira.jboss.org/jira/browse/JBAS-5953
>             Project: JBoss Application Server
>          Issue Type: Sub-task
>      Security Level: Public(Everyone can see) 
>          Components: Test Suite
>            Reporter: Shelly McGowan
>            Assignee: Ales Justin
>             Fix For: JBossAS-5.0.0.GA
>
>         Attachments: hs_err_pid10253.log, hs_err_pid22930-OPENJDK.log
>
>
> testBadEjbRedeployment test fails when run with JDK 6.  
> After the bad jar is deployed and exception caught as expected, the redeploy doesn't happen with JDK 6.
> 2008-09-11 22:28:24,504 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] ejbredeploy.jar is not a valid URL, no protocol: ejbredeploy.jar
> 2008-09-11 22:28:24,504 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] Testing file: /NotBackedUp/smcgowan/trunk/testsuite/output/lib/ejbredeploy.jar
> 2008-09-11 22:28:24,504 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] /NotBackedUp/smcgowan/trunk/testsuite/output/lib/ejbredeploy.jar is a valid file
> 2008-09-11 22:28:24,504 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] Undeploying ejbredeploy.jar, url=file:/NotBackedUp/smcgowan//trunk/testsuite/output/lib/ejbredeploy.jar
> 2008-09-11 22:28:24,504 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] Invoking jboss.system:service=MainDeployer method=undeploy
> 2008-09-11 22:28:24,504 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] args=[file:/NotBackedUp/smcgowan/trunk/testsuite/output/lib/ejbredeploy.jar]
> Test output with JDK 5:
> 2008-09-11 23:28:57,897 INFO  [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] Redeploying testPackage: ejbredeploy.jar
> 2008-09-11 23:28:57,897 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] ejbredeploy.jar is not a valid URL, no protocol: ejbredeploy.jar
> 2008-09-11 23:28:57,897 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] Testing file: /home/smcgowan2/workspace/trunk/testsuite/output/lib/ejbredeploy.jar
> 2008-09-11 23:28:57,897 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] /home/smcgowan2/workspace/trunk/testsuite/output/lib/ejbredeploy.jar is a valid file
> 2008-09-11 23:28:57,897 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] Deploying ejbredeploy.jar, url=file:/home/smcgowan2/workspace/trunk/testsuite/output/lib/ejbredeploy.jar
> 2008-09-11 23:28:57,897 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] Invoking jboss.system:service=MainDeployer method=redeploy
> 2008-09-11 23:28:57,898 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] args=[file:/home/smcgowan2/workspace/trunk/testsuite/output/lib/ejbredeploy.jar]
> 2008-09-11 23:28:58,632 INFO  [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] Found EntityA home
> 2008-09-11 23:28:58,632 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] ejbredeploy.jar is not a valid URL, no protocol: ejbredeploy.jar
> 2008-09-11 23:28:58,633 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] Testing file: /home/smcgowan2/workspace/trunk/testsuite/output/lib/ejbredeploy.jar
> 2008-09-11 23:28:58,633 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] /home/smcgowan2/workspace/trunk/testsuite/output/lib/ejbredeploy.jar is a valid file
> 2008-09-11 23:28:58,633 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] Undeploying ejbredeploy.jar, url=file:/home/smcgowan2/workspace/trunk/testsuite/output/lib/ejbredeploy.jar
> 2008-09-11 23:28:58,633 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] Invoking jboss.system:service=MainDeployer method=undeploy
> 2008-09-11 23:28:58,633 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] args=[file:/home/smcgowan2/workspace/trunk/testsuite/output/lib/ejbredeploy.jar] 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list