IBM Support

Liberty Server warning message when osgi.jpa-1.0 feature and the restConnector-1.0 feature are both configured

Troubleshooting


Problem

[WARNING ] No persistence descriptors could be located in the bundle com.ibm.ws.jmx.connector.server.rest

Symptom

Web Application Bundles (WABs) may contain JPA Persistence Units. Although this is optional, a warning will be printed when a WAB that does not contain a persistence unit is loaded. Liberty features contain OSGi bundles and may contain WABs, so this warning may also be seen when starting Liberty features that contain WABs. For example when the restConnector-1.0 feature is enabled, customers will see a message of the form,

[WARNING ] No persistence descriptors could be located in the bundle com.ibm.ws.jmx.connector.server.rest/1.0.1.cl50120130816-0341. The following locations were searched: [META-INF/persistence.xml].

This message is harmless and may be safely ignored, unless it is informing a developer that a required persistence descriptor is missing.

Cause

If you configure both the osgi.jpa-1.0 feature and the restConnector-1.0 feature, then upon starting the Liberty server you will see this warning message every time. If you remove one of the two features, it would not appear any more.

Resolving The Problem

The warning message can be ignored

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"--","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF014","label":"iOS"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF035","label":"z\/OS"}],"Version":"8.5.5.1","Edition":"Liberty","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg21669534