Instant Messaging 8: Problem Setting JVM Option With "=" In iim_server.jvm.options (Doc ID 1394861.1)

Last updated on JANUARY 11, 2017

Applies to:

Oracle Communications Instant Messaging Server - Version 8.0 and later
Information in this document applies to any platform.

Symptoms

In Instant Messaging Server 8, setting

iim_server.jvm.options = "-Djava.library.path=/app/AccessServerSDK/oblix/lib/"
 

in iim.conf does not result in "-Djava.library.path=/app/AccessServerSDK/oblix/lib/" being pre-pended to the server start-up command.

 


Instead, only "/app/AccessServerSDK/oblix/lib/" is pre-pended, e.g.

/opt/sun/comms/im/sbin/../lib/execdaemon /app/jdk1.6.0_20/bin/java
/app/AccessServerSDK/oblix/lib/ -Dlogdir=/var/opt/SUNWiim/default/log

-Djava.awt.headless=true -server -Xmx256m -cp
/opt/sun/comms/im/sbin/../lib/imcommon.jar:/opt/SUNWmfwk/lib/mfwk_instrum_tk.jar:/opt/SUNWmfwk/lib/mfwk_agent.jar:/opt/SUNWmfwk/lib/rmi2rpc.jar:/opt/SUNWmfwk/lib/xml-apis.jar:/opt/SUNWmfwk/lib/


This causes the server to fail to start, with the following error:

[ Oct 29 17:04:45 Executing start method
("/opt/sun/comms/im/sbin/imadmin start") ]
Starting Watchdog Exception in thread "main"
java.lang.NoClassDefFoundError: /app/AccessServerSDK/oblix/lib/
Caused by: java.lang.ClassNotFoundException: .app.AccessServerSDK.oblix.lib.
      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: /app/AccessServerSDK/oblix/lib/.
Program will exit.


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