Skip to Content

Share JAR files between Portal Application Packages

Hello,

I am trying to share a common java component (JAR) file that will be shared among many other portal application packages.

I created my main shared component java classes and deployed it to Portal.

How can I share this package with other components? I modified portalapp.xml to include the line:

<property name="SharingReference" value="ProgistixEmployeeUtilities"/>

.... and also put this line under component-profile that needs to have access to my shared classes:

<property name="PAR_DEPENDENCIES" value="ProgistixEmployeeUtilities, com.progistix.ess.util"/>

However, I am still seeing the following error:

Caused by: java.lang.NoClassDefFoundError: com/progistix/ess/util/SapEmployeeConfig

Is there anything that I missed?

Please help,

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Posted on Feb 14, 2005 at 11:43 PM

    Hi Reza,

    if ProgistixEmployeeUtilities is the portal application which should be used from some other portal apps (and the par name therefore is ProgistixEmployeeUtilities.par, so the dir under WEB-INF/portal/portalapps has the name ProgistixEmployeeUtilities; which, just a remark, is not that nice without having a namespace), than the JAR to be used by other portal apps has to be set into the public lib part (ie under WEB-INF/portal/portalapps/ProgistixEmployeeUtilities/lib).

    You won't need any special entries within portalapp.xml.

    For the portal apps which should use this common lib, you have to make an entry under Application-Config (not within the component profile), because reference sharing works on a per application basis, not per component. See http://help.sap.com/saphelp_nw04/helpdata/en/9e/0f1140d72dc442e10000000a1550b0/frameset.htm for the entries.

    For "who can access whom" see http://help.sap.com/saphelp_nw04/helpdata/en/95/1b1640a991c742e10000000a1550b0/frameset.htm

    Hope it helps

    Detlev

    PS: Please consider rewarding points for helpful answers. Thanks in advance!

    Add comment
    10|10000 characters needed characters exceeded