IBM Support

The EntityManagerFactory is null

Troubleshooting


Problem

Attempts to run a jsp file which calls a JPA entity results in the error "java.lang.RuntimeException: The EntityManagerFactory is null. This must be passed in to the constructor or set using the setEntityManagerFactory() method."

[{"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"J2EE Tooling","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.5","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
16 June 2018

UID

swg21430377