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.
... 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
郁闷了好久,终于搞定了,答案就在这些英文里面。
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://azwzsj.com/article/gjedh.html