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
com.sap.portal.pcm.system.ISystems 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?
Cheers,
Scott...
😊
Hi Scott,
THis isnt an answer to ur Question, but could u tell me which jar files are needed for the packages:
com.sap.portal.pcm.system.ISystems
com.sap.portal.pcm.system.ISystem
and under which path I coul dfind them.
Thnx
Regards
Meesum.
Add a comment