permaculture playing cards
The moose likes Websphere and the fly likes EJB Ant task for websphere 6.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "EJB Ant task for websphere 6.1" Watch "EJB Ant task for websphere 6.1" New topic

EJB Ant task for websphere 6.1

zhu guo

Joined: Jun 19, 2012
Posts: 5
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}">
<pathelement location="${websphere.home}/deploytool/itp/plugins/org.eclipse.core.boot/boot.jar" />
<pathelement location="${websphere.home}/deploytool/itp/plugins/" />
<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" />
<path refid="classpath" />
<dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" location="${jb.dtd.filepath}" />

but in was6.1, it does not work.

who can help me?
zhu guo

Joined: Jun 19, 2012
Posts: 5
boot.jar and batch.jar do not exist in was 6.1.
zhu guo

Joined: Jun 19, 2012
Posts: 5
who can help me?
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32819

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.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
zhu guo

Joined: Jun 19, 2012
Posts: 5
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> 类
[*Error] ImportedClasses/com/huawei/it/support/codegenerator/facade/Code_GeneratorBean.class(类 CHKJ2907E: 不能反映类型
degenerator.facade.Code_GeneratorBean 或它的某个超类型。检查类路径。
I agree. Here's the link:
subject: EJB Ant task for websphere 6.1
It's not a secret anymore!