aspose file tools*
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
JavaRanch » Java Forums » Products » Websphere
Bookmark "EJB Ant task for websphere 6.1" Watch "EJB Ant task for websphere 6.1" New topic
Author

EJB Ant task for websphere 6.1

zhu guo
Greenhorn

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

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

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

Joined: May 26, 2003
Posts: 30973
    
159

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
zhu guo
Greenhorn

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> 类 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 或它的某个超类型。检查类路径。
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB Ant task for websphere 6.1