cancel
Showing results for 
Search instead for 
Did you mean: 

WebDynpro JCO connection - java.lang.NoClassDefFoundError: com.sap.util.mo

former_member193294
Active Participant
0 Kudos

Hello,

I have recently installed a test SAP NW 7.0 EHP1Java (AIX 6.1/ Oracle 11.2) system and deployed Portal/DI/EP Core for our developers.

I am setting also up the WebDynpro settings for one of them. In particular I define the JCO which will be need in WebDynrpo.

I had several issue when I created and tested 1 JCO. I was getting either classpath errors or I could not find the message server I wanted from the given list. I solved them by defining on the O/S sidadm profile the LIBPATH to

/usr/sap/<SID>/SYS/exe/run

and by configuring correctly the SLD on the target ABAP ERP 6.0 system

Now, when I am testing the JCO connection I get this error:

The initial exception that caused the request to fail, was:

java.lang.NoClassDefFoundError: com.sap.util.monitor.jarm.TaskMonitor

at com.sap.mw.jco.util.Jarm.getRequestMonitor(Jarm.java:57)

at com.sap.mw.jco.JCO$Client.beginCall(JCO.java:4144)

at com.sap.mw.jco.JCO$Client.execute(JCO.java:3796)

at com.sap.mw.jco.JCO$Client.execute(JCO.java:3392)

at com.sap.mw.jco.JCO$Client.ping(JCO.java:4106)

... 31 more

The library exists under:

/usr/sap/<SID>/JCxx/j2ee/cluster/server0/bin/ext/com.sap.util.monitor.jarm

I guess I have to do something with the CLASSPATH. Should I add the path

/usr/sap/<SID>/JCxx/j2ee/cluster/server0/bin

to my LIBPATH on OS?

What about the CLASSPATH defined in the Configtool (java startup framework/bootstrap etc).

Your response is very welcome.

Loukas

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Just searched thru SDN oh this error type but didnt find much other than this link

Check wether this helps for u...

Regards,

Saleem Mohammad

former_member193294
Active Participant
0 Kudos

Hi Saleem,

unfortunately I have already found this article and it doesn't help that much.

I have done an extensive research and there is not much info out there.

I was rather expecting some answer from personal experience from some guy(s) with webdynpro.

Let 's see if someone else has had the same error.

Brgds,

Loukas

Former Member
0 Kudos

You will have to set up a runtime reference of required library in your web dynpro application....

Right click on your project and click on properties...there you will find a section for runtime references...

there you need to set the runtime dependency for this jar in your application......

former_member193294
Active Participant
0 Kudos

Hi Saurabh,

basically it is not a project. It is a JCO destination which is defined by the developer. When I go to "Maintain JCo Destinations" and say test, then the error appears.

Is it possible to associate the jar(s) for the JCo connection as well?

Brgds,

Loukas

Former Member
0 Kudos

See the last reply from prakash...if this helps you out....

/thread/27415 [original link is broken]

And excuse me for misinterpreting your question........

former_member193294
Active Participant
0 Kudos

I have also found this thread. However it is not clear where to change the classpath in the configtool.

It is very generic the answer and it doesn't provide precise info where and what to change.

Classpath there is in configtool for framework , for bootstrap and it contains few jars. Should we change this location of classpath everytime an application requires a new jar?

Is this a standard way for defining the Classpath?

by the way I have changed the LIBPATH on the Unix level containing the path to the /bin/ext libraries but no success.