I don't see the crash problem that Shelley is seeing,
but I do see the test failing.
If I put a sleep between the copy of the file and redeploy,
then the test passes.
| [ejort@warjort testsuite]$ svn diff
| Index: src/main/org/jboss/test/jmx/test/UndeployBrokenPackageUnitTestCase.java
| ===================================================================
| --- src/main/org/jboss/test/jmx/test/UndeployBrokenPackageUnitTestCase.java
(revision 78789)
| +++ src/main/org/jboss/test/jmx/test/UndeployBrokenPackageUnitTestCase.java
(working copy)
| @@ -152,6 +152,8 @@
|
| Files.copy(goodjar, thejar);
| getLog().info("Redeploying testPackage: " + testPackage);
| +
| +Thread.sleep(10000);
|
| redeploy(testPackage);
| Object home = getInitialContext().lookup("EntityA");
|
So this is clearly either a caching issue inside the VFS/JDK
or there is some issue with the Files.copy() not flushing properly to the file system
so the server is seeing a corrupt file.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179581#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...