Purge OSM DB Get Error: java.lang.NoClassDefFoundError:oracle/xml/sql/dml/OracleXMLSave (Doc ID 2252115.1)

Last updated on MAY 03, 2017

Applies to:

Oracle Communications Order and Service Management - Version 7.3.1.0.0 and later
Information in this document applies to any platform.

Goal

1. Install OSM 7.3.1.0.5.

2. Deploy some cartridges. I have installed the default OSM cartridges and product cartridges.

3. Run command purge ./config/config.xml and select 'Y'.

4. You will get error:

Apr 03, 2017 10:21:55 AM
com.mslv.oms.metadatahandler.operation.CleanupOperation doProcess
INFO: Purging all cartridges from database...
Exception in thread "main" java.lang.NoClassDefFoundError:
oracle/xml/sql/dml/OracleXMLSave        at
com.mslv.oms.metadatahandler.operation.CleanupOperation.load(CleanupOperation.
java:171)        at
com.mslv.oms.metadatahandler.operation.CleanupOperation.loadSeedingFiles(Clean
upOperation.java:221)        at
com.mslv.oms.metadatahandler.operation.CleanupOperation.cleanup(CleanupOperati
on.java:134)        at
com.mslv.oms.metadatahandler.operation.CleanupOperation.doProcess(CleanupOpera
tion.java:109)        at
com.mslv.oms.metadatahandler.operation.Operation.processOperation(Operation.ja
va:260)        at
com.mslv.oms.metadatahandler.MetadataProcessor.process(MetadataProcessor.java:
383)        at
com.mslv.oms.metadatahandler.MetadataHandlerMain.main(MetadataHandlerMain.java
:428)
Caused by: java.lang.ClassNotFoundException: oracle.xml.sql.dml.OracleXMLSave
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        ... 7 more

  

5. The other issue is that all cartridges were removed and you cannot restart OSM. OSM removed default cartridge which should stay in DB.

Solution

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