使用Ant错误创建EJB升级后,从6.0到7.0 [英] Error using Ant to create EJB after upgrading WAS from 6.0 to 7.0

查看:302
本文介绍了使用Ant错误创建EJB升级后,从6.0到7.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

&LT 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的问题,但是当我检查了,这些消息都没有任何意义(截图)。我怀疑问题可能是:

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:

一),我有一个针对与升级的蚂蚁冲突(在RSA 7.0我已经有蚂蚁1.6.5和RSA 8.0构建其他文件与Ant 1.7.1)。附加文件是:

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:


  • 蚂蚁的contrib / ANT-contrib.jar

  • 羚羊任务/ 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的帧-errors.xsl

  • 三叶草/ clover.jar

  • 三叶草/ cenquatasks.jar

  • 三叶草/ clover.license

  • doccheck / doccheck-modified.jar

  • 常春藤/常春藤20060723172807.jar

  • 雅加达公地/公地be​​anutils.jar

  • 资源/ Checkstyle的/检查-source.xml

  • 资源/ Checkstyle的/ checksTransformation.xsl

二)在Ant关于EJB构建需要重新配置一些设置的更改。

b) Changes in the Ant regarding EJB build which require some settings to be reconfigured.

C)别的东西:)

除错误,其他的一切都是在黑暗中刺可以随意要求任何额外的信息。

Except the Error, everything else is a stab in the dark so feel free to ask for any additional info.

推荐答案

问题是需要wsejbdeploy额外的文件。在6.0版本中,您从WebSphere 6.0的安装文件夹复制wsanttasks.jar和wsprofile.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

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

,其中全库是复制了罐子的文件夹的参考。在WebSphere 7.0没有wsanttasks.jar,你必须引用运行时文件,例如:

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

<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> 

这篇关于使用Ant错误创建EJB升级后,从6.0到7.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆