]
Radai Rosenblatt commented on WFLY-1444:
----------------------------------------
was closed and opened as
CNFE: javax.persistence.Converter
---------------------------------
Key: WFLY-1444
URL:
https://issues.jboss.org/browse/WFLY-1444
Project: WildFly
Issue Type: Bug
Components: JPA / Hibernate
Affects Versions: 8.0.0.Alpha2
Reporter: Juergen Zimmermann
Assignee: Scott Marlow
I'm using the latest WildFly snapshot containing Hibernate 4.3.0.Beta3. However,
I'm getting a CNFE for javax.persistence.Converter (see stacktrace below). This class
is definitely contained in
modules/system/layers/base/javax/persistence/api/main/hibernate-jpa-2.1-api-1.0.0.Draft-16.jar
Stacktrace:
...
16:45:00,362 INFO [org.hibernate.Version] HHH000412: Hibernate Core {4.3.0.Beta3}
16:45:00,362 INFO [org.hibernate.cfg.Environment] HHH000206: hibernate.properties not
found
16:45:00,362 INFO [org.hibernate.cfg.Environment] HHH000021: Bytecode provider name :
javassist
16:45:00,658 ERROR [org.hibernate.AssertionFailure] HHH000099: an assertion failure
occured (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the
session): java.lang.ClassNotFoundException: javax.persistence.Converter from [Module
"org.jboss.jandex:main" from local module loader @c84051 (finder: local module
finder @f6a711 (roots:
C:\Software\wildfly-8.0.0.Alpha2-20130602\modules,C:\Software\wildfly-8.0.0.Alpha2-20130602\modules\system\layers\base))]
16:45:00,658 ERROR [org.jboss.msc.service.fail] MSC000001: Failed to start service
jboss.persistenceunit."shop2.war#de.shop.PU":
org.jboss.msc.service.StartException in service
jboss.persistenceunit."shop2.war#de.shop.PU": org.hibernate.AssertionFailure:
The annotation javax.persistence.Converter does not define a parameter
'autoApply'
at
org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:112)
[wildfly-jpa-8.0.0.Alpha2-SNAPSHOT.jar:8.0.0.Alpha2-SNAPSHOT]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[rt.jar:1.7.0_21]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[rt.jar:1.7.0_21]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_21]
at org.jboss.threads.JBossThread.run(JBossThread.java:122)
[jboss-threads-2.1.0.Final.jar:2.1.0.Final]
Caused by: org.hibernate.AssertionFailure: The annotation javax.persistence.Converter
does not define a parameter 'autoApply'
at
org.hibernate.metamodel.source.annotations.JandexHelper.getDefaultValue(JandexHelper.java:328)
at
org.hibernate.metamodel.source.annotations.JandexHelper.getValue(JandexHelper.java:111)
at
org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.prepareMetadataSources(EntityManagerFactoryBuilderImpl.java:391)
at
org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init>(EntityManagerFactoryBuilderImpl.java:224)
at
org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init>(EntityManagerFactoryBuilderImpl.java:186)
at
org.hibernate.jpa.boot.spi.Bootstrap.getEntityManagerFactoryBuilder(Bootstrap.java:43)
at
org.hibernate.jpa.boot.spi.Bootstrap.getEntityManagerFactoryBuilder(Bootstrap.java:55)
at
org.hibernate.jpa.HibernatePersistenceProvider.createContainerEntityManagerFactory(HibernatePersistenceProvider.java:142)
at
org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:214)
[wildfly-jpa-8.0.0.Alpha2-SNAPSHOT.jar:8.0.0.Alpha2-SNAPSHOT]
at
org.jboss.as.jpa.service.PersistenceUnitServiceImpl.access$800(PersistenceUnitServiceImpl.java:59)
[wildfly-jpa-8.0.0.Alpha2-SNAPSHOT.jar:8.0.0.Alpha2-SNAPSHOT]
at
org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:108)
[wildfly-jpa-8.0.0.Alpha2-SNAPSHOT.jar:8.0.0.Alpha2-SNAPSHOT]
... 4 more
Caused by: java.lang.ClassNotFoundException: javax.persistence.Converter from [Module
"org.jboss.jandex:main" from local module loader @c84051 (finder: local module
finder @f6a711 (roots:
C:\Software\wildfly-8.0.0.Alpha2-20130602\modules,C:\Software\wildfly-8.0.0.Alpha2-20130602\modules\system\layers\base))]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:196)
[jboss-modules.jar:1.2.1.Final]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:444)
[jboss-modules.jar:1.2.1.Final]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:432)
[jboss-modules.jar:1.2.1.Final]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:374)
[jboss-modules.jar:1.2.1.Final]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:119)
[jboss-modules.jar:1.2.1.Final]
at
org.hibernate.metamodel.source.annotations.JandexHelper.getDefaultValue(JandexHelper.java:320)
... 14 more
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: