cancel
Showing results for 
Search instead for 
Did you mean: 

NOclassdeffound Exception !

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Greatful to Sdn experts !

Former Member
0 Kudos

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

Former Member
0 Kudos

thanks nind for your reply.

Where i can see archive file.

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi NInad ,

Thanks for Reply.And i have checked in Java lib jar file is added .

thanks in advance.