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

Activation failed: Missing external jar

Hi,

I'm using an external jar in my WebDynpro development for ESS. I placed this jar file in the lib folder. Everything works fine when deploying to the development server directly.

During activation, i got the error which describing the imported classes from the jar file cannot be found. I'm confirmed this jar file was uploaded into the open activity prior to the activation.

How to solve this problem?

Any help would be highly appreciated. Thanks.

- julius

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 23, 2007 at 10:45 AM

    Do you see the jar in the Inactive workspace if you browse the DTR using the DTR perspective of NWDS?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 23, 2007 at 12:10 PM

    Hi julius,

    if you want to use a class in a jar file in your WebDynpro Development DC, you have to do the following steps:

    1) create a external library component , copy your jar file into the library folder

    2) creating two public parts one of the type assembly the other one of the type compilation

    3)create a j2ee library component and use the Public part of type assembly from step one as used component. Build and Deploy that component (sda file) to your server.

    4)In your WD DC use the PP from step 1 of type compilation, build the DC -> then you can use the classes of yor jar file.--> Organize Imports

    5)Last step: navigate to the properties of your WD project-> select Web Dynpro References -> select Library references and perss add. Enter the name of the j2ee library component ( this is for runtime dependency)

    regrds

    Martin

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 26, 2007 at 09:50 PM

    Hi julius

    I think reasson for activation fail is CBS build probelm. As we build our project locally in NWDS, in the same way CBS also builds the project. When CBS is trying to build the project it was not able find your jar file on server.

    Regards

    Praveen

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      most likely the <i>lib</i> folder, where jar is located, is <b>not registered</b> as source/package folder <b>in DC metadata</b>.

      CBS is quite pedantic with that regards and takes into consideration only what is defined in .dcdef

      you may adjust DC properties from Development Configuration perspective, but I would recommend to <b>create an external library DC</b> and define dependencies between DCs

      best regards 😊

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.