Isnt it jpa 2.1? So you need to override jpa api in tomee
Le 6 nov. 2013 20:11, "rdeleon" <[email protected]> a écrit :
> Hi,
>
> Yes - I downloaded apache-tomee-1.6.0-20131106.041134-223-plus and set-up
> the environment to match what I had in 1.5.2.
>
> I dumped eclipselink-2.5.1.jar into {tomEEInstallDir}/lib.
>
> I edited system.properties to include the following (matching what I've
> done
> with 1.5.2):
> * javax.persistence.provider =
> org.eclipse.persistence.jpa.PersistenceProvider
>
> But for some reason 1.6.0 is not accepting this later version of
> eclipselink, because I get the following (and the version reference that
> I'll *bold* leads me to believe 1.6 is not loading my latest eclipselink
> jar):
>
> /INFO: Using
>
> 'javax.persistence.provider=org.eclipse.persistence.jpa.PersistenceProvider'
> Nov 6, 2013 12:54:54 PM org.apache.openejb.util.OptionsLog info
> INFO: Using 'openejb.validation.output.level=VERBOSE'
> Nov 6, 2013 12:54:54 PM org.apache.openejb.config.AppInfoBuilder build
> INFO: Enterprise application
> "C:\apache-tomee-plus-1.6.0-SNAPSHOT\webapps\datacloud-core" loaded.
> Nov 6, 2013 12:54:54 PM org.apache.openejb.assembler.classic.Assembler
> createApplication
> INFO: Assembling app:
> C:\apache-tomee-plus-1.6.0-SNAPSHOT\webapps\datacloud-core
> Nov 6, 2013 12:54:54 PM
> org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory
> createDelegate
> INFO: PersistenceUnit(name=datacloud-pu,
> provider=org.eclipse.persistence.jpa.PersistenceProvider) - provider time
> 355ms
> Nov 6, 2013 12:54:54 PM org.apache.openejb.assembler.classic.Assembler
> destroyApplication
> INFO: Undeploying app:
> C:\apache-tomee-plus-1.6.0-SNAPSHOT\webapps\datacloud-core
> Nov 6, 2013 12:54:59 PM org.apache.tomee.catalina.TomcatWebAppBuilder
> checkHost
> WARNING: Error deploying application
> C:\apache-tomee-plus-1.6.0-SNAPSHOT\webapps\datacloud-core.ear
> org.apache.openejb.OpenEJBException: Creating application failed:
> C:\apache-tomee-plus-1.6.0-SNAPSHOT\webapps\datacloud-core:
> org.apache.openejb.OpenEJBRuntimeException:
> javax.persistence.PersistenceException: *Exception [EclipseLink-28018]
> (Eclipse Persistence Services - 1.0 (Build 1.0 - 20080707))*:
> org.eclipse.persistence.exceptions.EntityManagerSetupException
> Exception Description: Predeployment of PersistenceUnit [datacloud-pu]
> failed.
> Internal Exception: *Exception [EclipseLink-7155] (Eclipse Persistence
> Services - 1.0 (Build 1.0 - 20080707))*:
> org.eclipse.persistence.exceptions.ValidationException
> Exception Description: The type [class java.lang.Object] for the attribute
> [value] on the entity class [class
>
> com.pervasive.datasolutions.datacloud.persistence.ent.ProvisioningParameter]
> is not a valid type for a serialized mapping. The attribute type must
> implement the Serializable interface.:
> javax.persistence.PersistenceException: Exception [EclipseLink-28018]
> (Eclipse Persistence Services - 1.0 (Build 1.0 - 20080707)):
> org.eclipse.persistence.exceptions.EntityManagerSetupException
> Exception Description: Predeployment of PersistenceUnit [datacloud-pu]
> failed.
> Internal Exception: Exception [EclipseLink-7155] (Eclipse Persistence
> Services - 1.0 (Build 1.0 - 20080707)):
> org.eclipse.persistence.exceptions.ValidationException
> Exception Description: The type [class java.lang.Object] for the attribute
> [value] on the entity class [class
>
> com.pervasive.datasolutions.datacloud.persistence.ent.ProvisioningParameter]
> is not a valid type for a serialized mapping. The attribute type must
> implement the Serializable interface.
> at
>
> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:897)
> at
>
> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:612)
> at
>
> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:608)
> at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.checkHost(TomcatWebAppBuilder.java:1973)
> at
>
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:133)
> at
>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> at
>
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> at
>
> org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1374)
> at
>
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1530)
> at
>
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540)
> at
>
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519)
> at java.lang.Thread.run(Thread.java:662)
> Caused by: org.apache.openejb.OpenEJBException:
> org.apache.openejb.OpenEJBRuntimeException:
> javax.persistence.PersistenceException: Exception [EclipseLink-28018]
> (Eclipse Persistence Services - 1.0 (Build 1.0 - 20080707)):
> org.eclipse.persistence.exceptions.EntityManagerSetupException
> Exception Description: Predeployment of PersistenceUnit [datacloud-pu]
> failed.
> Internal Exception: Exception [EclipseLink-7155] (Eclipse Persistence
> Services - 1.0 (Build 1.0 - 20080707)):
> org.eclipse.persistence.exceptions.ValidationException
> Exception Description: The type [class java.lang.Object] for the attribute
> [value] on the entity class [class
>
> com.pervasive.datasolutions.datacloud.persistence.ent.ProvisioningParameter]
> is not a valid type for a serialized mapping. The attribute type must
> implement the Serializable interface.:
> javax.persistence.PersistenceException: Exception [EclipseLink-28018]
> (Eclipse Persistence Services - 1.0 (Build 1.0 - 20080707)):
> org.eclipse.persistence.exceptions.EntityManagerSetupException
> Exception Description: Predeployment of PersistenceUnit [datacloud-pu]
> failed.
> Internal Exception: Exception [EclipseLink-7155] (Eclipse Persistence
> Services - 1.0 (Build 1.0 - 20080707)):
> org.eclipse.persistence.exceptions.ValidationException
> Exception Description: The type [class java.lang.Object] for the attribute
> [value] on the entity class [class
>
> com.pervasive.datasolutions.datacloud.persistence.ent.ProvisioningParameter]
> is not a valid type for a serialized mapping. The attribute type must
> implement the Serializable interface.
> at
>
> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:758)
> ... 11 more
> Caused by: org.apache.openejb.OpenEJBRuntimeException:
> javax.persistence.PersistenceException: Exception [EclipseLink-28018]
> (Eclipse Persistence Services - 1.0 (Build 1.0 - 20080707)):
> org.eclipse.persistence.exceptions.EntityManagerSetupException
> Exception Description: Predeployment of PersistenceUnit [datacloud-pu]
> failed.
> Internal Exception: Exception [EclipseLink-7155] (Eclipse Persistence
> Services - 1.0 (Build 1.0 - 20080707)):
> org.eclipse.persistence.exceptions.ValidationException
> Exception Description: The type [class java.lang.Object] for the attribute
> [value] on the entity class [class
>
> com.pervasive.datasolutions.datacloud.persistence.ent.ProvisioningParameter]
> is not a valid type for a serialized mapping. The attribute type must
> implement the Serializable interface.
> at
>
> org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory.createDelegate(ReloadableEntityManagerFactory.java:117)
> at
>
> org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory.<init>(ReloadableEntityManagerFactory.java:101)
> at
>
> org.apache.openejb.assembler.classic.PersistenceBuilder.createEntityManagerFactory(PersistenceBuilder.java:150)
> at
>
> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:752)
> ... 11 more
> Caused by: javax.persistence.PersistenceException: Exception
> [EclipseLink-28018] (Eclipse Persistence Services - 1.0 (Build 1.0 -
> 20080707)): org.eclipse.persistence.exceptions.EntityManagerSetupException
> Exception Description: Predeployment of PersistenceUnit [datacloud-pu]
> failed.
> Internal Exception: Exception [EclipseLink-7155] (Eclipse Persistence
> Services - 1.0 (Build 1.0 - 20080707)):
> org.eclipse.persistence.exceptions.ValidationException
> Exception Description: The type [class java.lang.Object] for the attribute
> [value] on the entity class [class
>
> com.pervasive.datasolutions.datacloud.persistence.ent.ProvisioningParameter]
> is not a valid type for a serialized mapping. The attribute type must
> implement the Serializable interface.
> at
>
> org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:870)
> at
>
> org.eclipse.persistence.jpa.PersistenceProvider.createContainerEntityManagerFactory(PersistenceProvider.java:189)
> at
>
> org.apache.openejb.assembler.classic.EntityManagerFactoryCallable.call(EntityManagerFactoryCallable.java:55)
> at
>
> org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory.createDelegate(ReloadableEntityManagerFactory.java:115)
> ... 14 more
> Caused by: Exception [EclipseLink-28018] (Eclipse Persistence Services -
> 1.0
> (Build 1.0 - 20080707)):
> org.eclipse.persistence.exceptions.EntityManagerSetupException
> Exception Description: Predeployment of PersistenceUnit [datacloud-pu]
> failed.
> Internal Exception: Exception [EclipseLink-7155] (Eclipse Persistence
> Services - 1.0 (Build 1.0 - 20080707)):
> org.eclipse.persistence.exceptions.ValidationException
> Exception Description: The type [class java.lang.Object] for the attribute
> [value] on the entity class [class
>
> com.pervasive.datasolutions.datacloud.persistence.ent.ProvisioningParameter]
> is not a valid type for a serialized mapping. The attribute type must
> implement the Serializable interface.
> at
>
> org.eclipse.persistence.exceptions.EntityManagerSetupException.predeployFailed(EntityManagerSetupException.java:210)
> ... 18 more
> Caused by: Exception [EclipseLink-7155] (Eclipse Persistence Services - 1.0
> (Build 1.0 - 20080707)):
> org.eclipse.persistence.exceptions.ValidationException
> Exception Description: The type [class java.lang.Object] for the attribute
> [value] on the entity class [class
>
> com.pervasive.datasolutions.datacloud.persistence.ent.ProvisioningParameter]
> is not a valid type for a serialized mapping. The attribute type must
> implement the Serializable interface.
> at
>
> org.eclipse.persistence.exceptions.ValidationException.invalidTypeForSerializedAttribute(ValidationException.java:1028)
> at
>
> org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.DirectAccessor.processSerialized(DirectAccessor.java:592)
> at
>
> org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.DirectAccessor.processJPAConverters(DirectAccessor.java:507)
> at
>
> org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.DirectAccessor.processMappingConverter(DirectAccessor.java:542)
> at
>
> org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.BasicAccessor.process(BasicAccessor.java:223)
> at
>
> org.eclipse.persistence.internal.jpa.metadata.accessors.classes.ClassAccessor.processAccessor(ClassAccessor.java:433)
> at
>
> org.eclipse.persistence.internal.jpa.metadata.accessors.classes.ClassAccessor.processAccessorMethods(ClassAccessor.java:477)
> at
>
> org.eclipse.persistence.internal.jpa.metadata.accessors.classes.ClassAccessor.processAccessors(ClassAccessor.java:550)
> at
>
> org.eclipse.persistence.internal.jpa.metadata.accessors.classes.MappedSuperclassAccessor.process(MappedSuperclassAccessor.java:330)
> at
>
> org.eclipse.persistence.internal.jpa.metadata.accessors.classes.EntityAccessor.process(EntityAccessor.java:467)
> at
>
> org.eclipse.persistence.internal.jpa.metadata.MetadataProcessor.processORMMetadata(MetadataProcessor.java:443)
> at
>
> org.eclipse.persistence.internal.jpa.deployment.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:300)
> at
>
> org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:830)
> ... 17 more/
>
> This error revolves around Eclipselink 1.0 issues which were corrected in
> later(est) versions of Eclipselink. I'm able to get much further than this
> on 1.5.2 following what I've mentioned before the stack-trace.
>
> I don't understand why this seems to have regressed? (Can be mistaken...
> could be user error... probably is )
>
> For future sake, here is my system.properties as well (Note: what is not
> shown here is commented out):
>
> # all this properties are added at JVM system properties at startup
> # here some default Apache TomEE system properties
> # for more information please see
> http://openejb.apache.org/properties-listing.html
> openejb.check.classloader.verbose = true
> openejb.classloader.forced-load=org.quartz,org.eclipse
>
> openejb.jmx.active = true
> openejb.conf.file = conf/tomee.xml
> openejb.validation.skip = false
> openejb.validation.output.level = VERBOSE
> openejb.jdbc.log = true
> javax.persistence.provider =
> org.eclipse.persistence.jpa.PersistenceProvider
>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/TomEEPlus-1-5-2-Spring-3-1-3-RELEASE-Quartz-2-1-6-tp4665988p4666020.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>