org.jboss.weld.exceptions.DefinitionException when starting



我在野蝇8中有一个项目。尝试启动服务器时,我收到错误

Failed to start service jboss.deployment.unit."aa.ear".WeldStartService
ERROR [org.jboss.as.controller.management-operation] JBAS014613:     
Operation ("deploy") failed - address: ([("deployment" => "aa.ear")]) - failure description: {"JBAS014671: Failed services" => {"jboss.deployment.unit."aa.ear".
WeldStartService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit."aa.ear".WeldStartService: Failed to start service
Caused by: org.jboss.weld.exceptions.DefinitionException: Exception List with 1 exceptions:
Exception 0 :
java.lang.TypeNotPresentException: Type Comparable not present at 
at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:117)_    
at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:125)_  
at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49)_ at 
sun.reflect.generics.repository.ClassRepository.getSuperInterfaces(ClassRepository.java:108)_   at 
java.lang.Class.getGenericInterfaces(Class.java:913)_   at 
org.jboss.weld.util.reflection.HierarchyDiscovery.discoverInterfaces(HierarchyDiscovery.java:100)_  at 
org.jboss.weld.util.reflection.HierarchyDiscovery.discoverFromClass(HierarchyDiscovery.java:96)_    
at org.jboss.weld.util.reflection.HierarchyDiscovery.discoverTypes(HierarchyDiscovery.java:70)_ at 
org.jboss.weld.util.reflection.HierarchyDiscovery.<init>(HierarchyDiscovery.java:51)_ at 
org.jboss.weld.util.reflection.HierarchyDiscovery.<init>(HierarchyDiscovery.java:44)_ at org.jboss.weld.annotated.enhanced.TypeClosureLazyValueHolder.computeValue(TypeClosureLazyValueHolder.java:54)_   at 
org.jboss.weld.annotated.enhanced.TypeClosureLazyValueHolder.computeValue(TypeClosureLazyValueHolder.java:33)_  
at org.jboss.weld.util.LazyValueHolder.get(LazyValueHolder.java:35)_sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:117)
at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:117)_    
at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature
Reifier.java:125)_  at 
sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49)_    at 
sun.reflect.generics.repository.ClassRepository.getSuperInterfaces(ClassRepository.java:108)_   at 
java.lang.Class.getGenericInterfaces(Class.java:913)_   at 
org.jboss.weld.util.reflection.HierarchyDiscovery.discoverInterfaces(HierarchyDiscovery.java:100)_  at 
org.jboss.weld.util.reflection.HierarchyDiscovery.discoverFromClass(HierarchyDiscovery.java:96)_    at 
org.jboss.weld.util.reflection.HierarchyDiscovery.discoverTypes(Hierarchy
Discovery.java:70)_ at org.jboss.weld.util.reflection.HierarchyDiscovery.<init>(HierarchyDiscovery.java:51)_  at 
org.jboss.weld.util.reflection.HierarchyDiscovery.<init>(HierarchyDiscovery.java:44)_ at org.jboss.weld.annotated.enhanced.TypeClosureLazyValueHolder.computeValue(TypeClosureLazyValueHolder.java:54)_   at 
org.jboss.weld.annotated.enhanced.TypeClosureLazyValueHolder.computeValue(TypeClosureLazyValueHolder.java:33)_  at 
org.jboss.weld.util.LazyValueHolder.get(LazyValueHolder.java:35)_

已经完成了干净的重建,野蝇的全新安装,重新启动。有什么想法吗?

我重新启动,在 Eclipse 中创建一个新的工作区,再次检查代码,重新创建我的项目,它工作了。不知道为什么。

相关内容

  • 没有找到相关文章

最新更新