作者:借钱买黄瓜 | 来源:互联网 | 2023-10-12 20:58
05_通过ANT虽然可以提高EJB应用的开发效率,但有时卸载发布的项目时,有时会出现如下错误:Buildfile:F:\workspace\eclipse\thirdspace\HelloWorl
05_通过ANT 虽然可以提高EJB应用的开发效率,
但有时卸载发布的项目时,有时会出现如下错误:
Buildfile: F:\workspace\eclipse\thirdspace\HelloWorld\build.xml
undeploy:
[delete] Deleting: F:\soft\install\jboss-4.2.3.GA\server\default\deploy\HelloWord.jar
BUILD FAILED
F:\workspace\eclipse\thirdspace\HelloWorld\build.xml:41: Unable to delete file F:\soft\install\jboss-4.2.3.GA\server\default\deploy\HelloWord.jar
Total time: 188 milliseconds
这时,关闭JBOSS服务器,再重新卸载项目即可,
Buildfile: F:\workspace\eclipse\thirdspace\HelloWorld\build.xml
undeploy:
[delete] Deleting: F:\soft\install\jboss-4.2.3.GA\server\default\deploy\HelloWord.jar
BUILD SUCCESSFUL
Total time: 167 milliseconds
另外,出现这个成功提示,有时并不一定就真正的卸载了,这里要检查JBOSS的输出控制台或项目发布目录:
21:07:23,669 INFO [EJBContainer] STOPPED EJB: cn.wch.ejb3.impl.HelloWorldBean ejbName: HelloWorldBean
21:07:23,673 WARN [JmxKernelAbstraction] jboss.j2ee:jar=HelloWord.jar,name=HelloWorldBean,service=EJB3 is not registered
控制台出现这个,则说明卸载成功。