我计划在我的项目中实现openejb。 我尝试了一些示例,并为此进行了POC。哪个完美。 现在我正在尝试在jboss上部署ear文件,其中包含openejb specofic 变化。 我得到以下错误。我试图去谷歌。但是帮助不多。
我正在使用openejb-core-8.0.0-M3.jar和javaee-api-8.0-1.jar特定于 版本的罐子。 JBoss版本11。
我尝试了一些例子和POC。哪个效果很好。
2019-06-14 18:45:19,746 ERROR [org.jboss.msc.service.fail] (MSC service
thread 1-2) MSC000001: Failed to start service
jboss.deployment.unit."admion.ear".PARSE: org.jboss.msc.service.StartException
in service jboss.deployment.unit."admion.ear".PARSE: WFLYSRV0153: Failed to
process phase PARSE of deployment "admion.ear"
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:154)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalArgumentException: WFLYEJB0059: Method
AroundTimeout, on class org.apache.openejb.monitoring.StatsInterceptor,
annotated with @javax.interceptor.AroundTimeout must return Object type
at
org.jboss.as.ejb3.deployment.processors.AroundTimeoutAnnotationParsingProcessor.validateArgumentType(AroundTimeoutAnnotationParsingProcessor.java:106)
at
org.jboss.as.ejb3.deployment.processors.AroundTimeoutAnnotationParsingProcessor.processAroundInvoke(AroundTimeoutAnnotationParsingProcessor.java:86)
at
org.jboss.as.ejb3.deployment.processors.AroundTimeoutAnnotationParsingProcessor.deploy(AroundTimeoutAnnotationParsingProcessor.java:71)
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)
... 5 more