为什么冬眠试图通过代理名称获取类以从jar中加载类?

时间:2018-09-25 11:57:36

标签: java hibernate

我试图在我的应用程序中使用带有WildFly 14的最新的hibernate 5.3.6 Final,hibernate无法加载映射到具有关系的实体的类。在日志中,似乎正在尝试将相关类及其代理名称加载到.Jar文件中。

2018-09-24 15:14:38,308 INFO  [stdout] (default task-1) 15:14:38.288 [default task-1] ERROR com.tlbo.bo.BaseBusinessMethods - com.tlbo.bo.personinfo.impl.client.PersonImpl$HibernateProxy$cCWcZAbjImplM from [Module "deployment.ctools.ear.ctservices.jar" from Service Module Loader]
2018-09-24 15:14:38,308 INFO  [stdout] (default task-1) java.lang.ClassNotFoundException: com.tlbo.bo.personinfo.impl.client.PersonImpl$HibernateProxy$cCWcZAbjImplM from [Module "deployment.ctools.ear.ctservices.jar" from Service Module Loader]

wildFly日志中的错误:

2018-09-24 15:14:38,198 DEBUG [org.hibernate.loader.plan.exec.process.internal.ResultSetProcessorImpl] (default task-1) Starting ResultSet row #0
2018-09-24 15:14:38,198 DEBUG [org.hibernate.loader.plan.exec.process.internal.EntityReferenceInitializerImpl] (default task-1) On call to EntityIdentifierReaderImpl#resolve, EntityKey was already known; should only happen on root returns with an optional identifier specified
2018-09-24 15:14:38,227 DEBUG [org.hibernate.engine.internal.TwoPhaseLoad] (default task-1) Resolving associations for [com.tlbo.bo.artifact.impl.FileAttachmentImpl#190aa8c077d8fa3b161f9cbf51677ce]
2018-09-24 15:14:38,308 INFO  [stdout] (default task-1) 15:14:38.288 [default task-1] ERROR com.tlbo.bo.BaseBusinessMethods - com.tlbo.bo.personinfo.impl.client.PersonImpl$HibernateProxy$cCWcZAbjImplM from [Module "deployment.ctools.ear.ctservices.jar" from Service Module Loader]
2018-09-24 15:14:38,308 INFO  [stdout] (default task-1) java.lang.ClassNotFoundException: com.tlbo.bo.personinfo.impl.client.PersonImpl$HibernateProxy$cCWcZAbjImplM from [Module "deployment.ctools.ear.ctservices.jar" from Service Module Loader]
2018-09-24 15:14:38,308 INFO  [stdout] (default task-1)     at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:255) ~[?:?]
2018-09-24 15:14:38,308 INFO  [stdout] (default task-1)     at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410) ~[?:?]
2018-09-24 15:14:38,308 INFO  [stdout] (default task-1)     at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) ~[?:?]
2018-09-24 15:14:38,308 INFO  [stdout] (default task-1)     at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116) ~[?:?]
2018-09-24 15:14:38,308 INFO  [stdout] (default task-1)     at java.lang.Class.forName0(Native Method) ~[?:1.8.0_31]
2018-09-24 15:14:38,308 INFO  [stdout] (default task-1)     at java.lang.Class.forName(Class.java:260) ~[?:1.8.0_31]
2018-09-24 15:14:38,308 INFO  [stdout] (default task-1)     at com.tlbo.bo.BaseBusinessMethods.addMethodToMap(BaseBusinessMethods.java:152) [ctservices.jar:?]
2018-09-24 15:14:38,308 INFO  [stdout] (default task-1)     at com.tlbo.bo.BaseBusinessMethods.getMethods(BaseBusinessMethods.java:106) [ctservices.jar:?]

我搜索了此类情况,但未找到任何有关此情况的信息。请帮助我。预先感谢!

0 个答案:

没有答案