cancel
Showing results for 
Search instead for 
Did you mean: 

import com.sap.aii.mappingtool.tf3.rt.Container

Former Member
0 Kudos

Hi,

I want to develop a Java Mapping in NWDS and make use of the container parameter.

To make use of the same, I should import the below:

import com.sap.aii.mappingtool.tf3.rt.Container;

Can some one please help me with the jar file corresponding to the above so that I can compile and test on my workstation, before loading it to my mapping on PI7.1

Regards,

Sriram

Accepted Solutions (1)

Accepted Solutions (1)

former_member181985
Active Contributor

try from browser,

http://<yourxiserverhost>:port/rep/repository/com.sap.xi.mapping.tool.lib_api.jar

Former Member
0 Kudos

Hi Praveen,

I have the jat file u have mentioned above. I am looking for the jar file aii_mt_rt.jar.

Thanks,

Sriram

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks Praveen. Do you have the jar file for the below import

com.sap.aii.mappingtool.tf7.rt.Container

My Java mapping is not getting compiled due to the absence of this jar import.

Rgds,
Sriram

former_member181985
Active Contributor
0 Kudos

Hello Sriram,

I think you did not understand my previous reply completely. You can download the required jar file by pointing browser with below URL with your XI server host and port

http://<yourxiserverhost>:<port>/rep/repository/com.sap.xi.mapping.tool.lib_api.jar

Former Member
0 Kudos

Thanks Praveen. The above issue is resolved. However when i am trying to activate my MM i am getting the below error.

Java Area "Attributes and Methods", Line 5:

<identifier> expected     trace = container.getTrace();                         ^

Java Area "Attributes and Methods", Line 6:

<identifier> expected     trace.addInfo("input:" + a);                                ^

Java Area "Attributes and Methods", Line 7:

<identifier> expected   trace.addInfo("action:" + action);                ^ 3 errors

The code is

public String Extract(String a, String action, Container container) throws StreamTransformationException{

String result = "";

StringTokenizer st = new StringTokenizer(a,";");

     AbstractTrace trace;

         trace = container.getTrace();

     trace.addInfo("input:" + a);

   trace.addInfo("action:" + action);

}

Is there any import i am required to do for using the getInfo and addTrace methods?

Regards,

Sriram

Former Member
0 Kudos

Hi Praveen and Gagan,

I can get it from Basis but is there a possibilty of either of you haveing the jar file locally with you?

Regards,
Sriram

Former Member
0 Kudos

post your id here, i can mail it to you.

Former Member
0 Kudos

Thanks Bharat. Please email me on sriram_654@rediffmail.com

former_member181985
Active Contributor
0 Kudos

For PI7.1, it is com.sap.xi.mapping.tool.lib_api.jar not aii_mt_rt.jar

http://<yourxiserverhost>:port/rep/repository/com.sap.xi.mapping.tool.lib_api.jar

gagandeep_batra
Active Contributor
0 Kudos

Hi Sriram,

i am not sure but you can check if this jar file is available in PI server that have a look the following blog:

http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/02/12/another-way-to-get-the-libraries-...

and check for compile java mapping without NWDS using command:

http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/11/06/adding-carriage-return-or-line-fe...

Regards

Gagan