on 11-23-2007 10:38 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you see the jar in the Inactive workspace if you browse the DTR using the DTR perspective of NWDS?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.