I have an exception from some reflection when Tiles tried to invoke a method on
the HttpUnit ServletUnit context class:
java.lang.IllegalAccessException: Class org.apache.tiles.access.TilesAccess can
not access a member of class com.meterware.servletunit.ServletUnitServletContext
with modifiers "public"
at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
at java.lang.reflect.Method.invoke(Method.java:578)
at
org.apache.tiles.access.TilesAccess.getAttribute(TilesAccess.java:125)
at org.apache.tiles.access.TilesAccess.getContainer(TilesAccess.java:74)
at
org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java:99)
This is the method on the class:
class ServletUnitServletContext
implements ServletContext
{
public Object getAttribute(String name)
{
return _attributes.get(name);
}
The class is private or default actually (this might be my decompiler messing it
up) so Tiles can't get the attribute it needs.
Any advice?
Thanks
Adam