In the first part of this blog series, I gave you background information on how to use external libraries in the SAP DC world. Now it’s time for a real example. I will show you step by step how to create and use a standalone external library and use it in your own application.



This is a very helpful blog and this was the one that I was looking for.
But I am facing one problem while doing this. When I used the library DC in my application, It is not giving any error in design time, but at runtime, I am getting classnot found Exception.
Can you tell me where I am missing.
Thanks,
Fahad Hamsa
Hi Fahad
First I will clarify myself, what I did. 🙂
1. Created Library Project and copied the jar file to library folder
2. Created compilation and assembly public part for this library DC
3. Added the jar file to both of these public parts as Archive
4. Created an ear project and added the library dc to the this project with dependency as deploy time and runtime. [The COMPILATION and ASSEMBLY PPs were alredy there with dependency as Buid Time, by default]
5. Built the ear project and deployed. One thing I noted was
is not present in the application-j2ee-engine.xml file.
6. In the webdynpro application, I added the library component with dependency as designtime,Deploytime and runtime as checked.
Here also, ASSEMBLY and COMPILATION PPs were present with dependency as Build time by default.
When I deploy and run this webdynpro application, I am still getting classnotfound exception. Can you suggest me where I am doing wrong..
Thanks,
Fahad Hamsa
My problem got solved.
I created archive of the webdynpro project and deplyed. I was not doing build operation in the webdynpro project.
Thanks for your helpful blog and support.
Regards,
Fahad Hamsa
Do you have a similar document for acheiving the same on 7.0 ? (I am trying to emulate the steps given here and running into problems)
Any help will be greatly appreciated
regards
-Sri
Do you have a similar document for acheiving the same on 7.0 ? (I am trying to emulate the steps given here and running into problems)
Any help will be greatly appreciated
regards
-Sri
I have same problem in using external jars in Netweaver 7.0.If you got any solution so please send me.
regards,
Shashank