有人在JBoss AS 7.1.1 final中运行AspectJ吗? [英] Has anyone run AspectJ with JBoss AS 7.1.1 final?

查看:129
本文介绍了有人在JBoss AS 7.1.1 final中运行AspectJ吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对所有内容进行了配置,就像他们说的那样

I configured everything like they say here.

它仍然无法运行.它只是给我一个LogManager异常.
有人在那里成功运行过AspectJ吗?

And it still won't run. It just gives me an LogManager exception.
Does anyone successfully run AspectJ there?

推荐答案

这是一个可能的解决方法/解决方案(来自 http ://wiki.eclipse.org/LTWJboss7 ):

Here is a possible workaround/solution (from http://wiki.eclipse.org/LTWJboss7):

由于存在错误,jBoss7抛出了IllegalStateException 限制对java.util.logging的访问: https://issues.jboss.org/browse/AS7-1 -部分解决方案 建议避免此问题,有关更改 加载loadmanager,将其推送到BootClasspath并添加 几个配置选项.但是,我们建议停用 AspectJ跟踪工具.您可以通过添加下一个来实现 选项:

The IllegalStateException is thrown by jBoss7 because there is a bug that limits access to java.util.logging: https://issues.jboss.org/browse/AS7-1 - There a partial solution to avoid this problem is suggested, regarding changing the way the loadmanager is loaded, pushing it to the BootClasspath and adding several configuration options. However we suggest deactivating the AspectJ tracing facilities. You can achieve this by adding the next options:

-Dorg.aspectj.tracing.enabled=false -Dorg.aspectj.tracing.factory=default

由于新的JBoss类加载器和模块化体系结构,类 存储在您的javaagent中的模块对其余模块不可见,因此 您的方面将找不到,您将获得不同类型的 错误.为了让您的方面被所有代码找到,您必须 将Aspectjweaver和Aspects.jar文件添加到bootclasspath并 在JBoss启动中添加下一个选项:

Due to new JBoss classloader and modularization architecture, classes stored in your javaagent are not visible to the remaining modules, so your aspects will not be found and you will get different types of errors. To let your aspects been found by all your code you have to add the aspectjweaver, and aspects.jar files to the bootclasspath and add the next option to JBoss startup:

-Djboss.modules.system.pkgs=org.aspectj,com.yourcompany.aspects.package

使得这些包下的每个类在所有 JBoss系统中的模块.

that makes every class under those packages shared across all the modules in the JBoss system.

这篇关于有人在JBoss AS 7.1.1 final中运行AspectJ吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆