Antonio Petrelli on 02/04/08 07:54, wrote:
2008/4/2, Adam Hardy <[EMAIL PROTECTED]>:
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"
...
 The class is private or default actually (this might be my decompiler messing 
it
 up) so Tiles can't get the attribute it needs.

It seems strange... What version of Servlet specification and Java are
you using?
Tiles is compatible with Servlet 2.4 and Java 5.

Hi Antonio,

I too thought it must be servlet spec incompatibility but HttpUnit is compatible with 2.4.

Looking at the code, the HttpUnit developers gave this ServletUnitServletContext class only package default access modifier! So I don't think there is any way that Tiles can ever successfully do this reflection, unless it casts it to ServletContext, but even then I'm not sure it can do it.

I think I'm asking in the wrong place basically! I'll go over to the HttpUnit forum.

thanks anyway,
Adam

Reply via email to