0

我正在尝试构建一个包含我的 EJB 模块的 EAR 文件。项目构建工作完美,但是当我尝试在服务器中部署发布和部署它时,我总是得到以下异常。谁能让我知道这是否是 Eclipse IDE 问题。是否有任何设置需要更改才能使其正常工作。我所有的其他队友都能做到这一点,但我做不到。

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
4

1 回答 1

0

看起来类services.AdvanceSearchBean以及如何在模块AdvanceSearch.jar的部署描述符中引用不匹配。也许检查引用包的一致性。

于 2013-12-18T14:49:52.857 回答