Changing Portlet's Persistent Store From File To Database triggers java.lang.NoClassDefFoundError (Doc ID 1326173.1)

Last updated on NOVEMBER 10, 2016

Applies to:

Oracle WebCenter Portal - Version 11.1.1.2.0 and later
Information in this document applies to any platform.

Symptoms

When running persistent migration utility DatabaseDataLoader, exception occurs:

Error
------
Exception in thread "main" java.lang.NoClassDefFoundError: oracle.portlet.server.containerimpl.persistence.DatabaseDataLoader

Steps
-------
e.g:
java -classpath <WC_HOME>/webcenter/modules/oracle.portlet.server_11.1.1/oracle-portlet-api.jar:<WC_HOME>/webcenter/modules/oracle.portlet.server_11.1.1/wsrp-container.jar:<MID_HOME>/wlserver_10.3/server/lib/ojdbc6.jar \
oracle.portlet.server.containerimpl.PersistenceMigrationTool -sourceType file -destType db -sourcePath<WC_HOME>/portal/portletdata -destUsername uat_portlet -destPassword myPassword -destDatabase <host:port:service>

24-May-11 5:31:43 PM oracle.portlet.server.containerimpl.PersistenceMigrationTool main
Exception in thread "main" java.lang.NoClassDefFoundError: oracle.portlet.server.containerimpl.persistence.DatabaseDataLoader
at java.lang.Class.initializeClass(libgcj.so.7rh)
at oracle.portlet.server.containerimpl.PersistenceMigrationTool.createLoader(PersistenceMigrationTool.java:190)
at oracle.portlet.server.containerimpl.PersistenceMigrationTool.main(PersistenceMigrationTool.java:131)
Caused by: java.lang.ClassFormatError: oracle.jdbc.pool.OracleDataSource (unrecognized class file version)
at java.lang.VMClassLoader.defineClass(libgcj.so.7rh)
at java.lang.ClassLoader.defineClass(libgcj.so.7rh)
at java.security.SecureClassLoader.defineClass(libgcj.so.7rh)
at java.net.URLClassLoader.findClass(libgcj.so.7rh)
at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
at java.lang.Class.forName(libgcj.so.7rh)
at java.lang.Class.initializeClass(libgcj.so.7rh)
...2 more

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