on 08-29-2005 9:13 PM
I've created a J2EE library DC that references some classes in an already deployed library. The referenced jar file has been correctly deployed, as it's successfully used by some other components. I can build the DC, since I've created created a compile-time reference to the local copy of the target jar file.
Unfortunately, I can't figure out how to create a runtime reference from my J2EE library to the already deployed library - there just doesn't appear to be any place to put the reference, at least using a gui-based function in NWDS. Unlike WebDynpro, which has a 'references' configuration option, J2EE lib's don't appear to have anything similar.
Where/How can I do this?
BTW, the Visual Administrator function 'ClassLoader Viewer ' is a very handy tool for diagnosing ClassDefNotFoundError errors....
Hello Ken,
well it seems to be not a trivial thing.
1) Build your library DC.
2) Create folder "server" in root DC folder "_comp".
3) Extract provider.xml from generated SDA file to "server" folder.
4) Add references in provider.xml:
<references>
<reference type="library" strength="weak">
sapxmltoolkit
</reference>
<reference type="library" strength="weak">
com.sap.lcr.api.cimclient
</reference>
<reference type="service" strength="weak">
tc~sec~securestorage~service
</reference>
</references>
5) Rebuild DC. Deploy.
6) Enjoy!
Useful links:
http://help.sap.com/saphelp_webas630/helpdata/en/b5/22123b8d92294fac207283f3e8756e/content.htm
Best regards, Maksim Rashchynski
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah, it might have something to do with it - it's still broken.
I just implemented what you suggested, and it appears that the reference has been correctly defined, at least as shown in the Visual Administrator. I'll try to use the library from an application and see if there are any ClassNotFound exceptions.
Thanks Maksim!
Hi,
I am also doing same kind of scenario. I created a Java DC, where I am using KM APIs to upload a document into KM repository. I attached that Java DC to J2EE Library DC and deployed it. It is succefull. When I go to Guided Procedure and create a background execution callable object, its giving some error java.lang.NoClassDefFoundError: com/sapportals/portal/security/usermanagement/UserManagementException. I have to give sharing reference of KM, If we do through web dynpro, we give sharing reference for that application.I am unable to do so with the suggested procedure above.
Can you guys please suggest me what to do?
Thanks
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.