cancel
Showing results for 
Search instead for 
Did you mean: 

LinkageError during appliction Java mapping

Former Member
0 Kudos

Dear All,

After upgrading PI 7.02 to PI 7.3 version, our Java mapping programs are throwing "LinkageError during appliction Java mapping - Thrown: java.lang.NoClassDefFoundError: org/apache/xpath/XPathAPI ".

Has anyone seen this issue before?. I found a note which similar symptos which is applicable for only XI 3.0 but could not find any notes related to PI 7.1 or PI 7.3?.

Thanks in advance.

Regards

Accepted Solutions (0)

Answers (1)

Answers (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>NoClassDefFoundError

this means that you need to upload the apache libs again to PI and activate I'd say

Regards,

Michal Krawczyk

Former Member
0 Kudos

Thanks

I do not think that we had the apache lib deployed previously. Mapping program is using XPath class and it was working perfectly in the previous version without any additional libraries uploaded?.

Also, If i have to upload the libraries, how do we upgrade jar files?.

Regards

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

just check if you have any "Imported archives" at any SWCV which is used in your mapping

(also dependent SWVCs )

Regards,

Michal Krawczyk

Former Member
0 Kudos

Yes. "Imported Archives" contains the java classes required for the java mapping but does not have the XPath apache library.

Do you think that i have to import library containing XPath apache library as imported archives?. We could not be importing this apache jar file as imported archive of every java mapping ?. i get the feeling that SAP changed something about XML parsing libraries?..

Any idea.

Regards

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>>Do you think that i have to import library containing XPath apache library as imported archives?.

give it a try

>>>We could not be importing this apache jar file as imported archive of every java mapping ?.

no, just once - function libraries - archived used option

Regards,

Michal Krawczyk

anupam_ghosh2
Active Contributor
0 Kudos

Hi,

You can try the following with one of the java mapping codes. If successful, then apply the same for all other java mapping codes

1. install j2se 1.5.0 in your local system.(Pls verify java version from BASIS team. you need to do trial and error until you get perfect java installation in your local system. Pi 7.1 accepts codes compiled in j2se and jre 1.5.0)

2. install eclipse or NWDS

3. add external jar file say aii_map_api.jar in project build path, This file you can obtain by studying this link

http://wiki.sdn.sap.com/wiki/display/XI/WheretogetthelibrariesforXI+development

4. You need not run the codes in local system but try project->build all options in eclipse (or compile the code in NWDS).

5. Export the jar file containing .class file and .java file into PI server again

Then I think your problem will get resolved. Linkage error comes due to the fact that java version used to compile the java classes in PI 7.0 was j2se 1.4.2 now the java version in PI 7.3 is 1.5 or more pls get it confirmed from your BASIS team.

Thus if you recompile the java classes in correct java version meant for PI 7.3 you will not get Linkage error.

Hope this helps.

Regards

Anupam