简体   繁体   English

Eclipse IDE中的weblogic.application.AnnotationProcessingException

[英]weblogic.application.AnnotationProcessingException in Eclipse IDE

I am trying to build a EAR file which contains my EJB modules. 我正在尝试构建一个包含我的EJB模块的EAR文件。 The project build works perfectly but when I try to deploy publish and deploy it in server I always get the following exception. 项目构建可以完美地运行,但是当我尝试部署发布并将其部署到服务器中时,总是会遇到以下异常。 Can anyone let me know if this an eclipse IDE issue. 任何人都可以让我知道这是否是Eclipse IDE问题。 Is there any setting to be changed to make this work. 是否有需要更改的设置才能使它起作用。 All my other team mates were able to get this running but I couldn't. 我所有其他队友都能够顺利进行比赛,但我做不到。

Error processing annotations: ."
weblogic.application.ModuleException: Exception preparing module: EJBModule(AdvanceSearch.jar)
An error occurred while reading the deployment descriptor. The error was:
 Error processing annotations: .
    at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:447)
    at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:188)
    at weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:83)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
    at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:172)
    Truncated. see log file for complete stacktrace
Caused By: weblogic.application.AnnotationProcessingException: [EJB:015002]Unable to load class services.AdvanceSearchBean in Jar D:\LISModel\AdvanceSearch\build\classes : java.lang.ClassNotFoundException: Class bytes found but defineClass()failed for: 'services.AdvanceSearchBean'
    at weblogic.ejb.spi.EJBJarUtils.getIdentityAnnotatedClasses(EJBJarUtils.java:129)
    at weblogic.ejb.container.deployer.ModuleExtensionContextImpl.getAnnotatedClasses(ModuleExtensionContextImpl.java:64)
    at weblogic.ejb.container.metadata.EjbDescriptorReaderImpl.createReadOnlyDescriptor(EjbDescriptorReaderImpl.java:352)
    at weblogic.ejb.spi.EjbDescriptorFactory.createReadOnlyDescriptor(EjbDescriptorFactory.java:78)
    at weblogic.ejb.container.deployer.EJBMetadataHandler.loadDescriptors(EJBMetadataHandler.java:150)
    Truncated. see log file for complete stacktrace

It looks like there is a mismatch in class services.AdvanceSearchBean and how this is referenced in the deployment descriptor of module AdvanceSearch.jar . 看来类services.AdvanceSearchBean中存在不匹配,以及如何在模块AdvanceSearch.jar的部署描述符中引用此不匹配。 Maybe check consistency of referenced packages. 也许检查引用包的一致性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM