on 01-04-2010 9:58 AM
Hello all,
I have created a Java DC in which a Java class ConnectionManager exits.
I want to use this class in my Wed Dynpro DC. I have added this class in public part and used it as Used DC in my WD DC.
But i am getting RunTime Error NoClassDefFoundError.
I was suggested to create a J2ee library out of Java DC to solve this error.
How do i resolve this error? What steps need to be performed? Please detail it out.
Regards,
Yogesh Bhatia
Hope this'll help: [Working with J2EE Engine Libraries|http://help.sap.com/saphelp_nw70/helpdata/en/9f/2ade3fc6c6ec06e10000000a1550b0/content.htm]
BR, Siarhei
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Yogesh,
create a J2ee library out of Java DC to avoid this error.
In the java DC you have to add respestive jar files and create public part in the jaav DC to expose the jar files to the out side world.
In the WD DC you have to to use the java DC.
Hope this may help you.
Deepak!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ho yogesh,
1.) Adding jars to the lib-folder: You are talking about "... import ..."; Simply use the Windows-Explorer to copy your jars into the lib-folder of your DC, or use the "Navigator-View" within the NetweaverDeveloper-Studio and "paste" them to the lib-folder; both should work.
And do not unpack the jars, use them as they are (... because you said something like "manifest.mf is overwritten... ).
2. Adding the jar to a public part:
Open the "Navigator-View" in your NetWeaverDeveloper-Studio, open the "libraries"-folder in your "DevelopmentComponent-Project of type External library", right-click the jars you want to add to the public part, and within the Contextmenu goto "DevelopmentComponent", there you should find the option to "add" the files...
Pls refer below thread:-
Deepak!!!
User | Count |
---|---|
85 | |
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.