Skip to Content
avatar image
Former Member

Subdirectory for JAR for Custom Action Block

I am creating a Custom Action Block application. Everything works fine. In the XML file under the Lighthammer\Xacute\Components directory, I have the correct JAR file for "AssemblyName" (MyJar.jar). However, that manifest.mf file inside the MyJar.jar reference to other JARs. Currently,I have those JAR files under the same directory as the MyJar.jar (Lighthammer\WEB-INF\lib and Lighthammer\CMSLogicEditor). I am just wondering if I can create a folder and put all those other JARs inside and modify the manifest.mf and still make it work. In the manifest.mf file, I have

Class-Path: a.jar b.jar c.jar

and I have tried

Class-Path: ./subfolder/a.jar ./subfolder/b.jar ./subfolder/c.jar

Class-Path: /subfolder/a.jar /subfolder/b.jar /subfolder/c.jar

but it doesn't work. Does anyone knows the correct Class-Path in order to make it to work or those JARs just can't be put in a subfolder but the out most directories (Lighthammer\WEB-INF\lib and Lighthammer\CMSLogicEditor).

Thank you.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jan 15, 2008 at 11:06 PM

    Tim, you didn't indicate whether you're trying to get this custom action block working on the client side (in the BLE) or the Xacute engine or both. On the client side, you're pretty much out of luck since the CLASSPATH is defined by the JNLP file which you have no access to. There's no requirement by the Java Classloader to load jars referenced by a jar's manifest.

    On the server side, you could stick jars in the WEB-INF/lib folder and they'll be loaded into the web-app's CLASSPATH - there's no need to reference them in your jar manifest. But I'm fairly certain adding jars WEB-INF/lib would be frowned upon by SAP.

    -tim

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Yeah, but I created a folder under WEB-INF/lib/subdir and put my dependent jars in it and reference them like you stated Class-Path: subdir/dep1.jar subdir/dep2.jar and it doesn't work.

      Tim

  • avatar image
    Former Member
    Jan 15, 2008 at 11:10 PM

    For more information see [this Web Start FAQ entry|http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/faq.html#209] and the one a couple answers further down.

    -tim

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 16, 2008 at 02:56 PM

    Tim,

    Do you have the dependent jars specified in the action component XML?

    <?xml version="1.0" encoding="utf-8"?>

    <ComponentCatalog>

    <Category Name="Name" Description="Desc">

    <Component Type="Action" Name="ActionName" Description="" Label="ActionLabel" ClassName="com.company.xmii.custom.actions.classname" AssemblyName="My.jar" Dependencies="dependent1.jar,dependent2.jar" HelpFileName="" />

    </Category>

    </ComponentCatalog>

    Hope this helps.

    Sam

    Add comment
    10|10000 characters needed characters exceeded