[hibernate-dev] JPA 2.1 in WildFly 8
Ales Justin
ales.justin at gmail.com
Wed Oct 30 09:25:31 EDT 2013
Afaik, this is _not_ *user* forum. ;-)
---
"This means that you are trying to access a weld deployment with a
Thread Context ClassLoader that is not associated with the deployment."
It looks like JPA stuff is trying to access some CDI bean, but the TCCL is not app's CL.
On 30 Oct 2013, at 13:34, Arun Gupta <arun.gupta at gmail.com> wrote:
> Hello there...
>
> I've a simple sample defined at:
>
> https://github.com/arun-gupta/javaee7-samples/tree/master/jpa/listeners
>
> This sample shows how different JPA entity listeners can be specified.
> Deploying this sample in WildFly trunk gives the following error:
>
> 05:28:54,709 ERROR [org.jboss.msc.service.fail] (ServerService Thread
> Pool -- 59) MSC000001: Failed to start service
> jboss.persistenceunit."jpa-listeners.war#myPU":
> org.jboss.msc.service.StartException in service
> jboss.persistenceunit."jpa-listeners.war#myPU":
> java.lang.IllegalStateException: JBAS016071: Singleton not set for
> org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl$AggregatedClassLoader at 639b9ef8.
> This means that you are trying to access a weld deployment with a
> Thread Context ClassLoader that is not associated with the deployment.
> at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:169)
> [wildfly-jpa-8.0.0.Beta2-SNAPSHOT.jar:8.0.0.Beta2-SNAPSHOT]
> at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:117)
> [wildfly-jpa-8.0.0.Beta2-SNAPSHOT.jar:8.0.0.Beta2-SNAPSHOT]
> at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.7.0_45]
> at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:463)
> [wildfly-security-manager-1.0.0.Beta3.jar:1.0.0.Beta3]
> at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:178)
> [wildfly-jpa-8.0.0.Beta2-SNAPSHOT.jar:8.0.0.Beta2-SNAPSHOT]
>
> Any suggestions on what is wrong ?
>
> --
> Blog: http://blog.arungupta.me
> Twitter: http://twitter.com/arungupta
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
More information about the hibernate-dev
mailing list