【问题标题】:Error using Ant to create EJB after upgrading WAS from 6.0 to 7.0将 WAS 从 6.0 升级到 7.0 后使用 Ant 创建 EJB 时出错
【发布时间】:2011-05-11 09:27:59
【问题描述】:

Ant 任务在 <wsejbdeploy> 标记处中断。异常消息是:

[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-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) Ant 中关于 EJB 构建的更改需要重新配置一些设置。

c) 别的东西:)

除了错误,其他一切都是在黑暗中刺伤,所以请随时询问任何其他信息。

【问题讨论】:

  • 你在使用ws_ant吗?如果是这样,我建议与 IBM 建立 PMR。
  • 我在 RSA 中使用默认的 ant builder。

标签: ant build-automation ejb websphere


【解决方案1】:

问题出在 wsejbdeploy 所需的附加文件中。在 6.0 版本中,从 websphere 6.0 安装文件夹中复制 wsanttasks.jar 和 wsprofile.jar,然后像这样引用它

<taskdef name="wsejbdeploy" classname="com.ibm.websphere.ant.tasks.WsEjbDeploy"
       classpathref="all-libs"/>

其中“all-libs”是对您复制 jar 的文件夹的引用。在 websphere 7.0 中没有 wsanttasks.jar 并且您必须引用运行时文件,例如

<taskdef name="wsejbdeploy" classname="com.ibm.websphere.ant.tasks.WsEjbDeploy">
<classpath> 
<pathelement path="C:/IBM/SDP80/runtimes/base_v7/plugins/com.ibm.ws.runtime.jar" /> 
</classpath> 

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-06-17
    • 1970-01-01
    • 2010-12-05
    • 1970-01-01
    • 1970-01-01
    • 2023-01-29
    • 2012-09-11
    • 2017-01-29
    相关资源
    最近更新 更多