Skip to Content
0
Jul 01, 2011 at 10:02 AM

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

26 Views

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