hi,
Iam getting errors when trying to generate deploy code for EJB. I am using the jdk that comes with webpshere. The ejb jar file is created successfully with the deploy code but does not include ibm-ejb-jar-bnd.xmi, although the ejb-jar.xml and the ibm-ejb-jar-bnd.xmi reside in the same directory
my build file looks like this -
######################################################
<ejbjar srcdir="${test.srcEJB}" descriptordir="${project.ejb.dir}/ejbModule/META-INF" destdir="${build.dir}/lib">
<include name="${build.ejb.classes}/**/*.class" />
<include name="*ejb-jar.xml" />
<include name="*-ejb-jar-bnd.xmi" />
<websphere dbvendor="DB2UDBOS390_V6" ejbdeploy="true" destdir="${dist.dir}">
<wasclasspath>
<pathelement location="${websphere.home}/deploytool/itp/plugins/org.eclipse.core.boot_2.1.3/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"/>
<pathelement location="${project.utilities}/rt.jar" />
</wasclasspath>
</websphere>
<dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" location="${dtd.location}"/>
</ejbjar>
####################################################
When this task is executed I get the following error -
########################################################
[ejbjar] building ejb.jar with 4 files
[ejbdeploy] 0 Errors, 0 Warnings, 0 Informational Messages
[ejbjar] building ibm.jar with 1 files
[ejbdeploy]
[ejbdeploy] [*Error] An unexpected exception was thrown. Halting execution.
[ejbdeploy] Error importing: Error importing Module File.
[ejbdeploy] >com.ibm.etools.ejbdeploy.EJBDeploymentException (Error importing: E
rror importing Module File.)
[ejbdeploy] >com.ibm.etools.wft.util.WFTWrappedException (Error importing Module
File)
[ejbdeploy] com.ibm.etools.archive.exception.DeploymentDescriptorLoadException:
META-INF/ejb-jar.xml
[ejbdeploy] Stack trace of nested exception:
[ejbdeploy] com.ibm.etools.j2ee.exception.WrappedRuntimeException: IWAE0099E An
Exception occurred while parsing xml: Line #: 2 :Column #: 159
[ejbdeploy] Stack trace of nested exception:
[ejbdeploy] org.xml.sax.SAXParseException: Document root element "ejbbnd:EJBJarB
inding", must match DOCTYPE root "null".
[ejbdeploy] at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
[ejbdeploy] at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Sour
ce)
#############################################
Where am I going wrong?