Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

What do I have to do to use selfmade Java-Methods in a RPE-Template deployed in RQM on a WAS?

Hello,

Context:
I have the following situation. I have a RPE-Template, in which i use the RQMurlUtility.jar from IBM amongst other things. To use the JAR, I had just to place it inside the "<RPE_HOME>\jre\lib\ext" and it worked fine. In the next step i deployed it into RQM and it also worked fine, when I placed the JAR in "<JTS_HOME>\server\jre\lib\ext". Everything works fine when using the "WebSphere Application Server Liberty" but now comes the problem.


Problem:
I want to deploy the template in a RQM which is running on a WebSphere Application Server (WAS). To just place the JAR-File in the mentioned path doesn't work. So i checked the options in WAS and found out that the JARs must probably be loaded by a class loader of the WAS. I created a Shared Library, made a reference to RQM and
restarted the WAS. When i checked the class loader viewer, the JAR is loaded but not the classes inside the JAR.


First I thought I had to modify the Manifest-File somehow but then i tried to load other JAR-Files which are already loaded by other class loaders and it also didn't work. I wonder what i have to do to use selfmade Java-Methods in a RPE-Template deployed in RQM on a WAS.

Additional Information
RPE and JTS Versions are 6.0.6
WAS Version is 8.5.5.14
Installed Features on WAS:
- IBM 64-bit Websphere SDK for Java
- WebSphere Application Server Full Profile
- ...


In advance thanks for your help and time.

0 votes

Comments

This should be some issue with WAS. How are you calling the methods - within "JavaScript Code" element through "Command" property?

I am calling the Java-Methods directly for example:
var reader = new Packages.com.ivs.hackup.x.Reader(args);

readedContent= reader.read();

I am not executing Main-Classes via commandline calls.


Be the first one to answer this question!

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,943
× 58

Question asked: Dec 13 '18, 8:15 a.m.

Question was seen: 2,025 times

Last updated: Dec 18 '18, 3:29 a.m.

Confirmation Cancel Confirm