AOP Tomcat7.0 版本报错解决问题 这是个BUG 问题SPR-11446
来源:互联网 发布:网络it培训 编辑:程序博客网 时间:2024/06/03 06:30
折腾半天 其他版本好用 ,JETTY 好用 就是Tomcat7 版本不要用。
错入如下:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loadTimeWeaver': Initialization of bean failed; nested exception is java.lang.IllegalStateException: ClassLoader [org.apache.catalina.loader.WebappClassLoader] does NOT provide an 'addTransformer(ClassFileTransformer)' method. Specify a custom LoadTimeWeaver or start your Java virtual machine with Spring's agent: -javaagent:org.springframework.instrument.jar
VM 参数同样添加 javaanegt 参数:
解决 :
0 0
- AOP Tomcat7.0 版本报错解决问题 这是个BUG 问题SPR-11446
- tomcat7.0.42 版本下部署 websocket 报错
- 报错解决问题
- tomcat7.0启动的时候报错
- tomcat7启动报错
- TOMCAT7启动报错
- tomcat7报错
- spring aop版本问题
- js报错 版本问题
- Ecplise js报错解决问题
- Proxool 版本bug问题
- Tomcat7 启动报错解决办法
- 访问Tomcat7及以下版本时(HttpServeltRequest请求时)的中文乱码解决问题
- tomcat7.0报错tcnative-1l找不到
- Tomcat7.0起步:报错java.lang.NoClassDefFoundError: org/apach
- <aop:config>报错
- spring aop报错
- 基于XML开发AOP应用报错的问题
- 字母排序
- 解决VS2008 开发Wince应用程序项目生成速度慢的问题
- 关于IOCTL_HID_GET_STRING和ProbeForWrite
- 【并发问题】java BlockingQueue、ConcurrentHashMap的详解
- 深入理解 Express.js
- AOP Tomcat7.0 版本报错解决问题 这是个BUG 问题SPR-11446
- Java基础
- 【hash表】两种实现(链地址法,开放地址法)
- [Web学习]关于form提交的中文字符串错误笔记
- 安卓软件定做-华为Mate7手机高配版和标准版的区别
- 利用Token机制解决重复重复提交问题
- python字符编码惯用法
- 正式开通~
- ubuntu 更换桌面为 KDE
I have tested successfully to enable load-time-weaving in Tomcat 7.0.52 by adding spring-instrument-tomcat-3.2.8.RELEASE.jar to Tomcat's libdirectory and the following context.xml to the META-INF directory of my webapp:
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/test">
<Loader loaderClass="org.springframework.instrument.classloading.tomcat.TomcatInstrumentableClassLoader"/>
</Context>
Note: The InstrumentableClassLoader mentioned in
SPR-10788does not exist neither in Tomcat 7.0.52 nor its current 7.0.x trunk (http://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk) but only in the main trunk (http://svn.apache.org/repos/asf/tomcat/trunk).