on 09-18-2009 9:45 AM
Hi All ,
The following is my application. Its a simple webservice creation application calls a RFC in java program.
Even after adding a jar file getting exception NOclassdeffound.
Stops exceution from line
public JCoFunctionTemplate getFunctionTemplate(String functionName)
throws Throwable {
try {
JCoFunctionTemplate template =
repos.getFunctionTemplate(functionName.toUpperCase()); (from here)
if (template == null)
//return null;
//return next.getFunctionTemplate(functionName);
return template
the above code is written to get the RFC name.
please help me in solving. Have added required jar.
thanks in advance
vanita k
Greatful to Sdn experts !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vanita,
As you mentioned you are creating a webservice that means you must be deploying the application on server and you have added those jar files locally in your NWDS.
So please check when you create a archive file for the webservice is that jar file is added in webservice archive file? if this is not the case it will not give any error in developer studio as it has the reference in studio but when you deploy if the file is not in archive file then at runtime it will not find the reference and it will give the dump.
So please check when you create a archive file for the webservice is that jar file is added in webservice archive file?
Ninad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
please follow below process and check if anything is missing.
Right click on project -> Properties -> Java Build Path
at this place you can see the reference projects and jar files in different tabs
go to tab Order & Export and see if the desired jar file is selected or not if not select it and deploy the application again.
Let me know the result of this.
Ninad
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.