Reputation: 21
I have an application on latest struts 2.5.20 and OGNL 3.2.10. Upon application startup, I got an exception
java.lang.ClassNotFoundException: ognl.DefaultMemberAccess
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1309)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1138)
I checked on struts documentation and found the following
Here is the link to the document : Release notes - version 3.2.3 - WIP
I am unable to get any example or so that how can I create a Custom Implementation for MemberAccess and provide it to OgnlContext. Do anyone has idea how can I resolve this?
Upvotes: 1
Views: 4106
Reputation: 1103
DefaultMemberAccess
was removed after version 3.2.1
. You can degrade version to 3.2.1
,
This file was move to here.
You can refer to the project description in README.md
How to define an AccessMember?
the best way is to implement your own AccessMember which will suite your project best, you can base on existing DefaultAccessMember and adjust it to your needs.
Upvotes: 2