on 05-31-2005 3:56 PM
Hi all,
We are having some problems with external libraries in our J2EE/WebDynpro applications developed with SAP NetWeaver Developer Studio v. 2.0.7. environment when we work with DC projects (DataComponent). With non DC projects we are not having any problems.
We have made some DC projects (WebDynpro, java or EJB Module) and when we add an external library in the project properties, the library is missing when we choose the Build DC option. Only libraries linked with Used DCs option are saved.
We tried to make a J2EE Server Component - DC Library but this projects cant add external libraries in the same way we generate .sda file from a normal Library project.
We tries too to deploy a normal file library (.sda) and attach it. But we didnt find the option to include this kind of libraries in a DC Project as a reference (in non DC Web or EJB projects that option is included).
Can you suggest us what is the best practice to attach a external library with DC projects in SAP NetWeaver Developper Studio?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ruben,
Do one thing.
If your DC is webdynpro application, then follow the steps:
1. Go to navigator tab.
2. right click on your DC project.
3. expand this node and choose lib folder.
4. right click on it and choose import.
5. choose file system as option.
6. Now here choose your required external JAR files and click ok. It will import external JAR files into your Lib folder.
7. Now from webdynpro perspective, right click on your project and go for properties.
8. There choose java build path-> libraries.
9. press button Add JARs and choose all JARs under your webdynpro DC project node.
Doing this, you need not to add jars through Add external JARs procedure. And at the building time it will add all these external jars into your .sda or .ear file.
Let me know the status,
If its really helpful then don't forget to give reward points.
Regards,
Bhavik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ruben
To attach external jars, use a DC which contains all your libraries. I mean extract all your libraries into src/packages folder of your DC and expose them as public part (Java package tree). Use this DC in other DCs.
Kishore
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.