In our WTX map (version 18.104.22.168(13)) we are using the JEXIT function and are receiving:
ERROR: JExit exception encountered: Unable to find class com.ibm.websphere.dtx.dtxpi.MDispatchFunction
*ERR: Exception occurred (-2) in JExit()
Here's an example of our map rule:
=JEXIT("com.in.edi.mapping.WtxCodeLookup", "getIHCodeFromEDICode", "entityTypeQualifier", SubmitterEntityType Submitter Element:HeaderRecord RecordTypes:Input_PIM)
This call is using a java class and method,com.in.edi.mapping.WtxCodeLookup - getIHCodeFromEDICode, that gets a text file, based on the parameters passed in-entityTypeQualifier. Once it finds the text file it returns information from there for the other parameter that was passed in - SubmitterEntityType Submitter Element:HeaderRecord RecordTypes:Input_PIM .
There are multiple jexit calls in the map that are doing basically the same thing just for different parameters.
This topic has been locked.
3 replies Latest Post - 2013-01-30T18:14:00Z by SystemAdmin
Pinned topic why receiving JExit exception for unable to find class
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2013-01-30T18:14:00Z at 2013-01-30T18:14:00Z by SystemAdmin
Purush_WTX 270002TMQV8 PostsACCEPTED ANSWER
Re: why receiving JExit exception for unable to find class2013-01-29T20:13:46Z in response to SystemAdminLooking at your example, looks like you are trying to access a class WtxCodeLookup and method getIHCodeFromEDICode().
So if you have JEXIT error related to this class package, you should not be seeing "com.ibm.websphere.dtx.dtxpi.MDispatchFunction"
Rather your exception error should say "com.in.edi.mapping.WtxCodeLookup".
So I suspect, you are missing all mandatory installation of WTX and JAR related to JEXIT method call. Contact your IBM Support partner.