XDOLoader Utility Failing To Upload Templates With Error "Caused by: java.lang.ClassNotFoundException"

(Doc ID 2051838.1)

Last updated on AUGUST 29, 2017

Applies to:

BI Publisher (formerly XML Publisher) - Version 11.5 to 12.1.3 [Release 11.5 to 12.1]
Information in this document applies to any platform.

Symptoms

On Oracle Applications 12.1.3,
when trying to upload an RTF template using the XDO Loader utility, the following error occurs:

Exception in thread "main" java.lang.NoClassDefFoundError: oracle/xml/parser/v2/XMLDocument
Caused by: java.lang.ClassNotFoundException: oracle.xml.parser.v2.XMLDocument
  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:306)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: oracle.apps.xdo.oa.util.XDOLoader. Program will exit.


This can be reproduced with the following steps:
1. Run the following command to upload an RTF template:
java oracle.apps.xdo.oa.util.XDOLoader \
UPLOAD \
-DB_USERNAME apps \
-DB_PASSWORD myDBpassword \
-JDBC_CONNECTION host.domain.com:1521:SID \
-LOB_TYPE TEMPLATE \
-APPS_SHORT_NAME MMCCUS \
-LOB_CODE MMC_RAXINV_XML_FR_TEMP \
-LANGUAGE en \
-XDO_FILE_TYPE PDF \
-FILE_CONTENT_TYPE 'application/rtf' \
-FILE_NAME MMC_RAXINV_XML_FR.rtf \
-NLS_LANG American_America.AL32UTF8 \
-CUSTOM_MODE FORCE

2. The error results.

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