[jboss-dev] Re: AS testsuite
Ales Justin
ales.justin at gmail.com
Wed Jun 18 16:34:46 EDT 2008
No. :-(
I've tried every 'hack' I could think of in the 'path' of
ProfileService/DeployHandler.
Changing URI usage to direct File.
vfszip hack.
try/finally locks.
...
Nothing. :-(
You?
Any ideas?
Scott Stark wrote:
> Have you tracked down the lock?
>
> Ales Justin wrote:
>> Yes, that's due to that file locking.
>> See my comment here:
>> - http://jira.jboss.com/jira/browse/JBAS-5625
>>
>> DeploymentProgressImpl:
>>
>> try
>> {
>> target.undeploy(deployment);
>> status = new SerializableDeploymentStatus(command,
>> StateType.COMPLETED);
>> status.setTarget(target);
>> status.setMessage("Completed undeploy for target: "+target);
>> status.setCompleted(true);
>> status.setRunning(true);
>> currentStatus = status;
>> event = new ProgressEvent(deployment, currentStatus);
>> notify(event);
>> }
>> catch(Exception e)
>> {
>> status = new SerializableDeploymentStatus(command,
>> StateType.FAILED);
>> status.setTarget(target);
>> status.setFailure(e);
>> status.setFailed(true);
>> currentStatus = status;
>> ProgressEvent error = new ProgressEvent(deployment,
>> currentStatus);
>> notify(error);
>> break;
>> }
>> }
>>
>> So instead of complete == true, you get false, since target.undeploy
>> throws error not being able to delete file.
>> And the test asserts on complete == true.
>>
>
> _______________________________________________
> jboss-development mailing list
> jboss-development at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-development
>
More information about the jboss-development
mailing list