Technote

(troubleshooting)
ejbConvert fails when converting EJBs
Problem(Abstract)
When you run ejbConvert.bat to convert an EJB to use a different database, a stack trace similar to the following appears in the stack trace.

------------------------------
Buildfile: D:\WCTOOL~3\setup\ejbconvert.xml convert: [delete] Deleting directory D:\WCTOOL~3\temp\converted [delete] Deleting directory D:\WCTOOL~3\temp\working [mkdir] Created dir: D:\WCTOOL~3\temp\converted [mkdir] Created dir: D:\WCTOOL~3\temp\working [copy] Copying 67 files to D:\WCTOOL~3\temp\converted BUILD FAILED file:D:/WCTOOL~3/setup/ejbconvert.xml:28: java.util. MissingResourceException: Can't find resource for bundle java.util. PropertyResourceBundle, key CLOUDSCAPE_V51_1 Total time: 1 second[
------------------------------
Cause The ejbConvert tool must use DB2 as the original database. The above error will be thrown if you are using a source database different from DB2 during ejbConvert. Resolving the problem In the case above, the source database is DB2.

If you are using Cloudscape as a backend for the map in the EJB you may take the following steps in order for ejbConvert to work:

  1. Change the EJB mapping to make them DB2 instead of Cloudscape in Rational Aapplication Developer 6.
    http://publib.boulder.ibm.com/infocenter/wchelp/v6r0m0/index.jsp?topic=/com.ibm.commerce.developer.doc/tasks/tdeejb_jar_wo_conversion.htm

  2. Use the <WCToolkit>/bin/setdbtype.bat to set your current database to DB2

  3. Run ejbConvert again.


For reference, the EJB conversion maps files from DB2 to different databases can be found under:
WCToolkitEE60\properties\com\ibm\commerce\metadata\conversion\

iSeries™: as400.mapping
Oracle: oracle.mapping
zSeries : zSeries.mapping
 

Document Information

Current web document: http://www.ibm.com/support/docview.wss?uid=swg21287752