我在使用JBoss 5.1以编程方式进行重新部署时遇到了一个问题。在启动JBoss之后,下面的代码运行良好。但在它第一次执行后,程序总是冻结在"problem here“行上,没有抛出任何异常,并显示一条从"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版本的错误吗?
提前感谢
发布于 2011-04-20 22:00:43
我的结论是这个问题是5.1版的一个bug。我发现了其他类似的问题,比如this。
https://stackoverflow.com/questions/5715872
复制相似问题