WebSphere7上的Perf4j?

WebSphere7上的Perf4j?,websphere,websphere-7,perf4j,Websphere,Websphere 7,Perf4j,我正在尝试将EAR部署到我们的WebSphereApplicationServerVersion7(确切地说是7.0.0.17)。以前的版本运行得很好,我只是尝试使用Perf4j在日志中添加一些评测细节 安装失败,日志中出现以下异常: com.ibm.ws.exception.RuntimeWarning: java.lang.TypeNotPresentException: Type org.perf4j.log4j.aop.EjbTimingAspect not present at

我正在尝试将EAR部署到我们的WebSphereApplicationServerVersion7(确切地说是7.0.0.17)。以前的版本运行得很好,我只是尝试使用
Perf4j
在日志中添加一些评测细节

安装失败,日志中出现以下异常:

com.ibm.ws.exception.RuntimeWarning: java.lang.TypeNotPresentException: Type org.perf4j.log4j.aop.EjbTimingAspect not present
    at com.ibm.ws.metadata.ejb.EJBMDOrchestrator.processBean(EJBMDOrchestrator.java:1357)
    at com.ibm.ws.runtime.component.EJBContainerImpl.startModule(EJBContainerImpl.java:2618)
    at com.ibm.ws.runtime.component.EJBContainerImpl.start(EJBContainerImpl.java:3826)
    [....snip...snip...]
Caused by: java.lang.TypeNotPresentException: Type org.perf4j.log4j.aop.EjbTimingAspect not present
    at com.ibm.oti.reflect.AnnotationHelper$AnnotationInvocationHandler.invoke(AnnotationHelper.java:131)
    at $Proxy27.value(Unknown Source)
    at com.ibm.ws.metadata.ejb.InterceptorMetaDataFactory.addMethodLevelInterceptors(InterceptorMetaDataFactory.java:1263)
    at com.ibm.ws.metadata.ejb.InterceptorMetaDataFactory.updateEJBMethodInfoInterceptorProxies(InterceptorMetaDataFactory.java:1384)
    at com.ibm.ws.metadata.ejb.InterceptorMetaDataFactory.createInterceptorMetaData(InterceptorMetaDataFactory.java:410)
    at com.ibm.ws.metadata.ejb.EJBMDOrchestrator.initializeInterceptorMD(EJBMDOrchestrator.java:6924)
    at com.ibm.ws.metadata.ejb.EJBMDOrchestrator.finishBMDInit(EJBMDOrchestrator.java:1761)
    at com.ibm.ws.metadata.ejb.EJBMDOrchestrator.processBean(EJBMDOrchestrator.java:1346)
    ... 48 more
Caused by: java.lang.ClassNotFoundException: org.perf4j.log4j.aop.EjbTimingAspect
    at com.ibm.oti.reflect.AnnotationHelper.getReturnValueForEntry(Native Method)
    at com.ibm.oti.reflect.AnnotationHelper.access$000(AnnotationHelper.java:16)
    at com.ibm.oti.reflect.AnnotationHelper$AnnotationInvocationHandler.invoke(AnnotationHelper.java:129)
    ... 55 more
org.perf4j.log4j.aop.EjbTimingAspect
perf4j
jar的一部分,它被添加到EAR中(检查并确认)

当然,与Websphere一样,我怀疑有类加载问题(我们的应用程序首先使用
父类,而改变它并不是一个选项,因为它在过去导致了一些问题),但在论坛或Google上找不到任何东西

有人知道可能出了什么问题吗?
没有?拜托,我肯定我不是唯一一个有这个问题的人

好的,终于找到了答案。看起来在EJB层POM上添加依赖项是不够的,它们还需要在内部应用程序(WAR文件)中,尽管我只在EJB层中使用该类

哦,又是Websphere内部魔法