WAS 从 6.0 升级到 7.0 后使用 Ant 创建 EJB 时出错
Ant 任务在
标记处中断。异常消息是:
[wsejbdeploy] Error executing deployment: java.lang.ClassNotFoundException.
Error is com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.
[wsejbdeploy] java.lang.ClassNotFoundException:
com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension
[wsejbdeploy] at java.lang.Class.forName(Class.java:136)
除此之外,ivy.xml 报告问题,但是当我检查它时,这些消息没有任何意义(screenshot )。我怀疑问题可能是:
a)我为构建提供的其他文件与升级后的 Ant 冲突(在 RSA 7.0 中,我有 Ant 1.6.5,RSA 8.0 附带 Ant 1.7.1)。其他文件有:
ant 任务执行所需
- ant-contrib/ant-contrib.jar
- antelope-tasks/AntelopeTasks_3.2.10.jar
- antform/antform.jar
- antform/defaultStyle.txt
- antlr/antlr.jar
- checkstyle/checkstyle-4.2.jar
- checkstyle /checkstyle-可选-4.2.jar
- checkstyle/checkstyle-frames-errors.xsl
- clover/clover.jar
- clover/cenquatasks.jar
- clover/clover.license
- doccheck/doccheck-modified.jar
- ivy/ivy-20060723172807.jar
- jakarta-commons/ commons-beanutils.jar
- resources/checkstyle/checks-source.xml
- resources/checkstyle/checksTransformation.xsl
b) Ant 中有关 EJB 构建的更改,需要重新配置一些设置。
c) 其他一些:)
除了错误之外,其他一切都是在黑暗中进行的,因此请随时询问任何其他信息。
Ant task breaks at the <wsejbdeploy>
tag. The exception message is :
[wsejbdeploy] Error executing deployment: java.lang.ClassNotFoundException.
Error is com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.
[wsejbdeploy] java.lang.ClassNotFoundException:
com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension
[wsejbdeploy] at java.lang.Class.forName(Class.java:136)
In addition to that, ivy.xml reports problems, but when I inspect it, the messages have no sense (screenshot). I suspect the problems could be:
a) Additional files that I have for the build which conflict with the upgraded Ant (in RSA 7.0 i've had Ant 1.6.5 and RSA 8.0 comes with Ant 1.7.1). Additional files are:
required for ant tasks execution
- ant-contrib/ant-contrib.jar
- antelope-tasks/AntelopeTasks_3.2.10.jar
- antform/antform.jar
- antform/defaultStyle.txt
- antlr/antlr.jar
- checkstyle/checkstyle-4.2.jar
- checkstyle/checkstyle-optional-4.2.jar
- checkstyle/checkstyle-frames-errors.xsl
- clover/clover.jar
- clover/cenquatasks.jar
- clover/clover.license
- doccheck/doccheck-modified.jar
- ivy/ivy-20060723172807.jar
- jakarta-commons/commons-beanutils.jar
- resources/checkstyle/checks-source.xml
- resources/checkstyle/checksTransformation.xsl
b) Changes in the Ant regarding EJB build which require some settings to be reconfigured.
c) Something else :)
Except the Error, everything else is a stab in the dark so feel free to ask for any additional info.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题出在 wsejbdeploy 所需的附加文件中。在 6.0 版本中,您从 websphere 6.0 安装文件夹中复制 wsanttasks.jar 和 wsprofile.jar,然后像这样引用它
,其中“all-libs”是对复制 jar 的文件夹的引用。在 websphere 7.0 中没有 wsanttasks.jar,您必须引用运行时文件,例如
The problem was in the additional file needed for wsejbdeploy. In the 6.0 version, you copy wsanttasks.jar and wsprofile.jar from the websphere 6.0 installation folder and then reference it like this
where "all-libs" is a reference to the folder where you copied the jars. In websphere 7.0 there is no wsanttasks.jar and you must reference the runtime file, eg