我正在部署一个带有几个bean的EJB3 Jar。 jar可以在其他实例上正常工作并正确部署。但是,如果我在我的机器上尝试,我会得到DeploymentException。 我在JBoss 5.1.0上 请帮忙!!
这是堆栈跟踪:
***错误部署:姓名 - >错误
vfszip:/ D:/jboss-5.1.0.GA/server/default/deploy/Enhanced-QC-ejb.jar/ - > org.jboss.deployers.spi.DeploymentException:org.jboss.deployers.spi.DeploymentException:部署错误:Factory $ org.jboss.aspects.remoting.InvokeRemoteInterceptor
部署错误: 由于以下原因,部署“vfszip:/ D:/jboss-5.1.0.GA/server/default/deploy/Enhanced-QC-ejb.jar/”出错:java.lang.IllegalStateException:Factory $ org.jboss.aspects.remoting.InvokeRemoteInterceptor已经安装。
at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)
at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939)
at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:873)
at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:369)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
答案 0 :(得分:2)
尝试清理tmp
目录(在您的情况下为D:/jboss-5.1.0.GA/server/default/tmp
)并重新启动JBoss。