Win a copy of Machine Learning with R: Expert techniques for predictive modeling this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

EJB Ant task for websphere 6.1

 
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?
 
author & internet detective
Posts: 39540
778
Eclipse IDE VI Editor Java
  • 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 或它的某个超类型。检查类路径。
 
I can't renounce my name. It's on all my stationery! And hinted in this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!