> I attached a patch for this.
>
https://bugs.eclipse.org/bugs/show_bug.cgi?id=224083
>
> Let me explain some code changes.
>
> Index:
> /home/wons/works/eclipselink/jpa/eclipselink.jpa/src/org/eclipse/persistence/internal/jpa/EntityManagerSetupImpl.java
> ===================================================================
> ---
> /home/wons/works/eclipselink/jpa/eclipselink.jpa/src/org/eclipse/persistence/internal/jpa/EntityManagerSetupImpl.java
> (revision 13857)
> +++
> /home/wons/works/eclipselink/jpa/eclipselink.jpa/src/org/eclipse/persistence/internal/jpa/EntityManagerSetupImpl.java
> (working copy)
> @@ -765,9 +765,6 @@
> // Process the Object/relational metadata from XML and
> annotations.
> PersistenceUnitProcessor.processORMetadata(processor,
> throwExceptionOnFail);
>
> - // The connector will be reconstructed when the session
> is actually deployed
> - session.getProject().getLogin().setConnector(new
> DefaultConnector());
> -
> if (session.getIntegrityChecker().hasErrors()){
> session.handleException(new
> IntegrityException(session.getIntegrityChecker()));
> }
>
> Above code(in predeploy phase) wasn't needed at all because the Login
> object has already dummy DefaultConnector at creation time.
There is actually a case where there might not be a dummy connector. If the