最近在使用JSF+EJB3.0+JBOSS 5.1.0 开发一个项目,可是jboss的命令行总是出现"Do not use InterceptorsFactory with a ManagedObjectAdvisor"的警告,在 发现了一个可行的解决方案,修改方式如下
(1) 打开 JBOSS_HOME\server\default\conf\jboss-log4j.xml
(2)在该文件的存在<category/>元素的位置添加如下片段
<category name="org.jboss.ejb3.interceptors">
<priority value="ERROR" />
</category>
(3)重启jboss,该问题得到解决