on 04-11-2007 5:51 PM
Hi all,
I created a web dynpro DC say PublicDC. In the src/package/utils folder I created a java class.
Now, I created another web dynpro DC say MainDC and from this DC I want to access the java class from PublicDC.
For that,
1. I created a public part(compile) in PublicDC and added the utils folder and the java class.
2. I also created another public part(assembly) in publicDC and added the same entities.
3. Now in the MainDc, I added these two public parts in the Used DC section both for build and runtime with strong qualifier.
From the init() method of the component controller of MainDC, when I try to access the Java class at runtime it throws java.lang.NoClassDefFoundError.
Can anybody tell me how to fix this?
Thanks
Thank you so much. It worked
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You have to add a sharing reference in the MainDC project to the PublicDC project. Right click on the project->properties->Web DynPro Reference->Sharing Reference tab. Add something like test.com/DCName. I'm sure there are several posts on SDN about sharing references.
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.