on 04-28-2010 1:10 PM
In the procees of making a RFC call from a Java application in NWDS 7.1, i am using the following jarsfor establishing JCO connection and to call the RFC,
u2022 Jdsr.jar
u2022 Jrfc.jar
u2022 SAPmdi.jar
u2022 i18n_cp.jar
u2022 aii_proxy_rt.jar
u2022 aii_util_misc.jar
I have created an external library DC in which i have created two public parts of types compilation and assembly and have included all these jars.And have created a dependency to the library DC in my ejb DC. But still the RFC call fails during runtime. The exception that i encounter when i run the Java application is,
java.lang.NoClassDefFoundError
at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:1018)
at com.sap.mw.jco.JCO$Client.connect(JCO.java:3255)
Please advice. Any pointers on this would be highly appreciated.
Thanks,
Agila
Please advice.
Dear Agilandeswari,
Please take the time to confirm if the solution provided helped you.
I noticed that you have not closed any of your other messages either.
This helps everyone else when they run into a similar issue.
Thanks,
Shimon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Agila,
There are 2 kinds of JCO implementations with a compatible API. One
is the so called standalone installation for runtime environments
outside of a SAP J2EE Engine environment. This implementation
is bundled in the sapjco.jar archive.
The other one is only for use within the SAP J2EE Engine and bundled
in the jrfc.jar archive.
Neither of these implementations will work in both environments. You have
to choose one accordingly.
Your stack trace shows the class MiddlewareJRfc which indicates that the jrfc.jar
package is being used, as of course you indicated here.
If you are running outside the SAP J2EE Engine, this can't work.
Please switch over your environment to the JCo standalone enviroment
and use the sapjco.jar instead.
Hope this helps.
Regards,
Shimon Zafrir
SAP Active Global Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
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.