重庆分公司,新征程启航

为企业提供网站建设、域名注册、服务器等服务

POJOCACHE配置问题的示例分析

这篇文章主要为大家展示了“POJO CACHE配置问题的示例分析”,内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下“POJO CACHE配置问题的示例分析”这篇文章吧。

在任丘等地区,都构建了全面的区域性战略布局,加强发展的系统性、市场前瞻性、产品创新能力,以专注、极致的服务理念,为客户提供成都网站设计、网站建设、外贸网站建设 网站设计制作按需定制开发,公司网站建设,企业网站建设,高端网站设计,营销型网站建设,外贸网站建设,任丘网站建设费用合理。

POJO CACHE 配置在jboss-4.0.5-GA上会遇到个bug,这个bug是:Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: addObser
ver
at org.jboss.aop.ClassAdvisor.attachClass(ClassAdvisor.java:312)
at org.jboss.aop.AspectManager.initialiseClassAdvisor(AspectManager.java
:590)
at org.jboss.aop.AspectManager.getAdvisor(AspectManager.java:578)
at org.jboss.tutorial.entity.bean.LineItem.(LineItem.java)
... 112 more
Caused by: java.lang.NoSuchMethodException: addObserver
at org.jboss.aop.ClassAdvisor.getMethod(ClassAdvisor.java:323)
at org.jboss.aop.ClassAdvisor.getMethod(ClassAdvisor.java:331)
at org.jboss.aop.ClassAdvisor.populateMixinMethods(ClassAdvisor.java:394
)
at org.jboss.aop.ClassAdvisor$1.run(ClassAdvisor.java:290)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.aop.ClassAdvisor.attachClass(ClassAdvisor.java:271)
... 115 more
14:37:34,656 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=tutor
ial.jar,name=ShoppingCartBean,service=EJB3 with dependencies:
14:37:34,656 INFO [JmxKernelAbstraction] persistence.units:jar=tutorial.j
ar,unitName=tempdb
[@more@]

郁闷了好久,终于搞定了,答案就在这些英文里面。

If you encounter this issue with 4.0.5.GA, until the update is available, do the following:

1. If you don't use http session clustering, you can remove tc5-cluster.aop from your
deploy directory and use your own jboss-aop.xml. That should work.

2. If you do, you will need to include tc5-cluster.aop in your classpath when
instrumenting the classes. Furthermore, you will need jboss-aop-aspect.jar
(for aop aspects) in your classpath as well during compilation.

以上是“POJO CACHE配置问题的示例分析”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注创新互联行业资讯频道!


新闻标题:POJOCACHE配置问题的示例分析
标题URL:http://cqcxhl.com/article/jojpig.html

其他资讯

在线咨询
服务热线
服务热线:028-86922220
TOP