cancel
Showing results for 
Search instead for 
Did you mean: 

Location to drop JAR files in MII

Former Member
0 Kudos


Hi,

We have a customized translation utility developed in java and packaged into a jar. However, we are not able to call the classes and functions of this jar file from the XSLT. Does anyone know where should such jar files be dropped in the MII/Netweaver classpath so that it can be referenced from the XSLT file? We are on MII v14.0.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

you have to place it into the system class loader. This is done via the extension class loading mechanism of Java (google for it). Same you would use if you want to use a standard xslt engine

like Xalan with its extension functions. You have to place the Jar into the ext folder of the JRE used by

NW/MII.

Cheers,

Matt

saumya_govil
Active Contributor
0 Kudos

Hi Nikhil,

As already answered by other experts, you can re-package (or probably use it as is if it is designed in teh same fashion) as a custom action and uploadit in MII 'System Resources -> Custom Actions' section. Then deploy the custom action and check in the log viewer if the deployment was done successfully without errors.

If the custom action was successfully deployed, you would be able to see the action blocks in the MII workbench when you try to create/edit a transaction. You can then use these blocks and pass the related input parameters and get the result back.

Link to a tutorial about using/writing custom actions:

https://help.sap.com/saphelp_mii122sp03/helpdata/en/4c/8cee70f2bd60c5e10000000a15822d/content.htm


Hope this helps!

Regards,

Saumya Govil

former_member193328
Active Participant
0 Kudos

Hi Nikhil

I do not think there is any one location where you can place your jar file and access it from with XSLT which is being called within an MII transaction.

To call your application jar best option is to create a custom action which calls your XSLT and has the jar as dependency. Then most probably you will get access to the classes in your localization jar.

I cannot think of any other option right now.

Regards

Partha

Former Member
0 Kudos

Hi Partha,

We are using the XSL file for UI rendering within an IRPT file. No transactions are being used for that.

Any idea if there is any classpath location in Netweaver(where JARs can be dropped) which would be available to MII ?

Regards,

Nikhil

Former Member
0 Kudos

Hi Nikhil,

As Partha suggested upload the jar as a dependency jar in MII from 'SAP MII: Custom Actions' screen.

And then try using the classes and functions in the XSLT.

I am not sure whether this will work or not.

Also let me know if it worked or not.

Regards,

Rohit Negi.

former_member193328
Active Participant
0 Kudos

Hi Nikhil

What you want to do is not possible as the classloaders cannot be modified externally. For your use case you may try the MII localization feature available with MII 12.2

Regards

Partha