Quantcast

ongl 2.6.9 -ognl 2.7

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

ongl 2.6.9 -ognl 2.7

hama
 ongl 包需要升级到2.7以上 ,否则和许多struts2 冲突
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: ongl 2.6.9 -ognl 2.7

Eduardo Macarron
2.6.9 OGNL是最后一个,不依赖于Javassist的,那就是为什么使用该版本。总之,这个版本是不是依赖。它包含内
org.apache.ibatis.ognl包,所以它不应该与Struts2的碰撞。如果您有任何问题,请职位的详细信息(错误,日志,
stacktraces的...)。

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: ongl 2.6.9 -ognl 2.7

hama
org.apache.ibatis.builder.xml.dynamic.DynamicContext 内部类
static class ContextAccessor implements PropertyAccessor
在 mybatis3.0.5 中引用
org.apache.ibatis.ognl.PropertyAccessor 有两个方法
mybatis3.1.0
使用 ongl2.6.9
ognl.PropertyAccessor 有两个方法

但是ongl2.7.0 中ognl.PropertyAccessor 有4个方法

struts2 使用 2.7.0以上版本

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: ongl 2.6.9 -ognl 2.7

Eduardo Macarron
mybatis 3.1.0 accesses ognl.PropertyAccessor but in build time, OGNL
is inserted inside the org.apache.ibatis.ognl package. So there will
be indeed two OGNLs running.

MyBatis runs org.apache.ibatis.ognl.* 2.6.9
Struts2 runs org.* 2.7.0

I cannot see how that can become a problem. I think I wll understand
it better if you could post a stacktrace or a test that demostrates
the problem.

Would that be possible?
Loading...