Custom Java API is Not Working, Error: java.lang.NoClassDefFoundError: com/evermind/server/rmi/RMIContext (Doc ID 845647.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Transportation Management - Version 5.5.04 and later
Information in this document applies to any platform.
***Checked for relevance on 16-Dec-2013***


Symptoms

-- Problem Statement:
On 5.5.04 when attempting to copy the example Java API (to remotely update data in OTM) as shown
in the datamanagement guide the following errors are encountered:

ERROR
Exception in thread "main" java.lang.NoClassDefFoundError: com/evermind/server/rmi/RMIContext

java.lang.NoClassDefFoundError: com/evermind/server/rmi/RMIContext
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at glog.util.j2ee.remote.ASNamingDirectory.<clinit>(ASNamingDirectory.java:34)
at glog.util.remote.NamingDirectory.get(NamingDirectory.java:98)
at glog.util.remote.NamingDirectory.get(NamingDirectory.java:121)
at glog.util.remote.SessionBeanHomeInvoker.<init>(SessionBeanHomeInvoker.java:26)
at glog.util.remote.NamingDirectory.get(NamingDirectory.java:165)
at glog.util.remote.NamingDirectory.get(NamingDirectory.java:220)
at glog.util.remote.NamingDirectory.get(NamingDirectory.java:244)
at glog.integration.clientapi.ClientAPIImpl.<init>(ClientAPIImpl.java:570)
at glog.integration.clientapi.ClientAPIImpl.connect(ClientAPIImpl.java:578)
at glog.integration.clientapi.ClientAPIConnection.connect(ClientAPIConnection.java:6)
at Example1.main(Example1.java:9)

-- Steps To Reproduce:

1. Follw the steps in the datamanagement guide to create a custom API.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms