Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Eclipselink deployment exception

Yes, I did - or tried too, their servers seem to be rejecting Google's SMTP servers attempts at connecting. In any event you are correct, shortly after posting this I turned up logging to FINEST in my persistence.xml and found that there was an underlying (non eclipse link) cause that was not showing up at the INFO level. Had to do with changes in the Jersey API between EE6 and EE7. Thanks,

-Noah


On Mon, Feb 2, 2015 at 11:02 AM, Rick Curtis <curtisr7@xxxxxxxxx> wrote:
I would post something to the Glassfish list. You didn't post the full exception, but this[1] leads me to believe this isn't an EclipseLink problem.

[1]  java.lang.IllegalStateException: This web container has not yet been started

Thanks,
Rick

On Fri, Jan 30, 2015 at 11:15 AM, NBW <emailnbw@xxxxxxxxx> wrote:
I am in the process of porting a JavaEE6 application (single WAR) which deploys fine into Glassfish 3.1.2 to JavaEE7 / Glassfish 4.1 and I am seeing the following error from Eclipselink on deployment. See below for a copy of persistence.xml  for the PU in question. Again this app deploys fine into GF 3.1.2. I have verified the corresponding JDBC resource and connection pool are configured in GF4 (jus as they are in the 3.1.2 instance) and the pool successfully pings the DB.

Thanks

-Noah

[2015-01-30T11:20:05.082-0500] [glassfish 4.1] [SEVERE] [] [javax.enterprise.system.core] [tid: _ThreadID=346 _ThreadName=admin-listener(32)] [timeMillis: 1422634805082] [levelValue: 1000] [[
  Exception while preparing the app]]

[2015-01-30T11:20:05.083-0500] [glassfish 4.1] [SEVERE] [NCLS-CORE-00026] [javax.enterprise.system.core] [tid: _ThreadID=346 _ThreadName=admin-listener(32)] [timeMillis: 1422634805083] [levelValue: 1000] [[
  Exception during lifecycle processing
javax.persistence.PersistenceException: Exception [EclipseLink-28017] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Unable to predeploy PersistenceUnit [FOOJPA] in invalid state [DeployFailed].
Internal Exception: javax.persistence.PersistenceException: Exception [EclipseLink-28019] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Deployment of PersistenceUnit [FOOJPA] failed. Close all factories for this PersistenceUnit.
Internal Exception: java.lang.IllegalStateException: This web container has not yet been started
        at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:1587)
        at org.eclipse.persistence.jpa.PersistenceProvider.createContainerEntityManagerFactory(PersistenceProvider.java:338)
        at org.glassfish.persistence.jpa.PersistenceUnitLoader.loadPU(PersistenceUnitLoader.java:199)
        at org.glassfish.persistence.jpa.PersistenceUnitLoader.<init>(PersistenceUnitLoader.java:107)
        at org.glassfish.persistence.jpa.JPADeployer$1.visitPUD(JPADeployer.java:223)
        at org.glassfish.persistence.jpa.JPADeployer$PersistenceUnitDescriptorIterator.iteratePUDs(JPADeployer.java:510)
        at org.glassfish.persistence.jpa.JPADeployer.createEMFs(JPADeployer.java:230)
        at org.glassfish.persistence.jpa.JPADeployer.prepare(JPADeployer.java:168)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:925)


<persistence-unit name="FOOJPA" transaction-type="JTA">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<jta-data-source>jdbc/oracle-tem-resource</jta-data-source>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
<property name="eclipselink.logging.level" value="INFO"/>
<property name="javax.persistence.jdbc.driver" value="oracle.jdbc.driver.OracleDriver"/>
<property name="eclipselink.logging.parameters" value="true"/>
<property name="eclipselink.jdbc.native-sql" value="true"/>
<property name="eclipselink.jdbc.batch-writing" value="Oracle-JDBC"/>
<property name="eclipselink.order-updates" value="true"/>
<property name="eclipselink.cache.shared.default" value="false"/>
</properties>
</persistence-unit>

_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/eclipselink-users



--
Rick Curtis

_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/eclipselink-users


Back to the top