Skip to Content
author's profile photo Former Member
Former Member

EP 6.20 Class loader issues with irj application

Hi All,

I have a servlet to interface with the SAP UM API. I had deployed this as a WAR, but the SAP UM cannot be initialised outside of the irj application (SAP Support advised this it is abailable outside the irj application in 6.40).

As a result, I tried to deploy it within the irj application - I copied my jars to the WEB-INF\lib directory, and modified the WEB-INF\web.xml to include a new servlet and servlet-mapping.

I also had to copy some other SAP supporting jars into WEB-INF\lib (the XML parser impls).

This works fine for the UM stuff. Ideally I'd like to redeploy the irj application so I don't have to hack the files and it would allow me to specify the additional libaries required, however there is now way I've found in the Deploy Tool to do this (you need the WAR of the irj application, or the project file). So this is problem 1.

Problem 2. The next extension included support for user mapping data.

Using -

IUserMapping iUserMapping = UMFactory.getUserMapping();

iUserMapping.getUserMappingData(systemAlias, iUser, mapLogonData);

I was able to read the mapping data, but this required knowing beforehand, all the system aliases. With a response from SAP Security, it was suggested

IUserMappingService iums = (IUserMappingService)PortalRuntime.getRuntimeResources().getService(IUserMappingService.KEY);

IUserMappingData mappingData = iums.getMappingData (systemAlias, iUser);

be used to obtain mapping data, and that sysSrv = (ISystems)PortalRuntime.getRuntimeResources().getService(ISystems.KEY);

String[] systemAliases = sysSrv.getAliases();

be used to obtain the system aliases.

The problem is with the class loader. If I copy the jars with the classes for the IUserMappingService and the ISystems, to the irj WEB-INF\lib I cause a class def not found with other EP6 applications. This is also the case when I add them to the JVM classpath (I know this is bad - but it was a last resort!).

Hoping someone can help me redeploy irj with my application that will resolve problem 2! If not, maybe some advice on problem 2?




Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 15, 2004 at 11:13 AM

    Hi Scott,

    THis isnt an answer to ur Question, but could u tell me which jar files are needed for the packages:

    and under which path I coul dfind them.




    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.