Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB Ant task for websphere 6.1

 
zhu guo
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in was5:

<target name="compile_ejb" depends="compile_ejb_src">
<mkdir dir="${workspace.dir.dest}" />
<echo message="websphere.home=${websphere.home}" />
<ejbjar srcdir="${workspace.dir.ejb_classes}" descriptordir="${code.dir.ejb.ejbModule}/META-INF" >
<include name="ejb-jar.xml" />
<include name="ibm-ejb-jar-*.xml" />
<exclude name="**.svn" />
<exclude name="**.svn/**" />
<websphere dbvendor="DB2UDBOS390_V6" ejbdeploy="true" oldCMP="false" tempdir="${workspace.dir.ejb_tmp}" destdir="${workspace.dir.dest}">
<wasclasspath>
<pathelement location="${websphere.home}/deploytool/itp/plugins/org.eclipse.core.boot/boot.jar" />
<pathelement location="${websphere.home}/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime/batch.jar" />
<pathelement location="${websphere.home}/lib/xerces.jar" />
<pathelement location="${websphere.home}/lib/ivjejb35.jar" />
<pathelement location="${websphere.home}/lib/j2ee.jar" />
<pathelement location="${websphere.home}/lib/vaprt.jar" />
</wasclasspath>
<classpath>
<path refid="classpath" />
</classpath>
</websphere>
<dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" location="${jb.dtd.filepath}" />
</ejbjar>
</target>

but in was6.1, it does not work.

who can help me?
 
zhu guo
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
boot.jar and batch.jar do not exist in was 6.1.
 
zhu guo
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
who can help me?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34410
346
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using the Ant tasks that came with WebSphere 5 or WebSphere 6? (I believe they changed.)

I haven't used either. The WebSphere 5 ones gave me trouble so I started using a standalone Ant file to compile. You can run ejbdeploy at he command line separately (or through an ant script) or even generate the deploy code as part of deploying.
 
zhu guo
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i find the way for websphere 6 ant task,code as below:


err info:
[*Error] ejbModule/META-INF/ejb-jar.xml(企业 bean:Code_Generator): CHKJ2802E: 不能反映 <ejb-class> 类 com.huawei.it.support.codegenerator.facade.Code_GeneratorBean
或它的某个超类型。检查类路径。
[exec]
[*Error] ImportedClasses/com/huawei/it/support/codegenerator/facade/Code_GeneratorBean.class(类:com.huawei.it.support.codegenerator.facade.Code_GeneratorBean): CHKJ2907E: 不能反映类型 com.huawei.it.support.co
degenerator.facade.Code_GeneratorBean 或它的某个超类型。检查类路径。
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic