使用JBoss 5.1以编程方式重新部署的问题

|| 我在使用JBoss 5.1进行编程重新部署时遇到问题。启动JBoss之后,以下代码可以正常运行。但是,在第一次执行该程序后,程序始终会冻结在“此处有问题”的行中,而不会引发任何异常,并显示一条已从“ project.sar \”取消部署的消息,仅此而已。
Context ctx = new InitialContext();
ProfileService profile = (ProfileService) ctx.lookup(\"ProfileService\");
DeploymentManager dm = profile.getDeploymentManager();

DeploymentProgress redeploy;

{
    try {
        System.out.println(\"Redeploy: \"+dm.isRedeploySupported()); // show always true
        redeploy = dm.redeploy(\"project.sar\");
        redeploy.run(); // problem here
        checkProgress(redeploy);
    }
    catch(Exception e){
        ...
    }
}

ctx.close();
dm.releaseProfile();
关于发生的事情有什么想法吗?这是5.1版的错误吗? 提前致谢
已邀请:
我的结论是,问题出在5.1版中。我发现了诸如此类的其他问题。

要回复问题请先登录注册