Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

PI x Java Mapping.

Hi all!

I'm developing a PI service wich uses a Java class to do a message mapping.

This java class uses some libs (imported .jars) to run the business rules.

When I run Junit test locally it works fine.

But when I upload the class by Imported Archives and I try do transformation at integration builder design returns a error telling me that my imported jars weren't found.

Note: my libs were uploaded with in .jar package and I can see it in imported archives at Integration builder.

What I'm doing wrong? Is there any configuration missing?

Can anyone help me?

Thanks in advance.



I think you have followed all processes for uploading the jar files correctly. There is no other process to do so.

Now since this is not working here is another approach to solve your problem. Extract the class file from the jar file.

How to do this ? follow this link

once you have extracted the class file, place it in the sub folder under the folder of your java mapping file . The name of the subfolder should be the package name of the jar file. Import this class into your mapping program. Now run the program of mapping once in your local machine. Then create another jar file for exporting the mapping program along with the extracted class file.

Put this jar file in PI server.

Hope this might solve your problem.

one more thing I would like to add here. Once you extract the class file from jar file, you need to import this file into your mapping program using import statement. Please follow normal steps of import. This blog might help



Edited by: anupamsap on Jun 8, 2011 8:28 AM

Edited by: anupamsap on Jun 8, 2011 8:49 AM

0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question