Re: Freemarker JSP support on Google App Engine

Attila Szegedi <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Here's what I wrote there (assuming you're getting the  
java.lang.IllegalAccessError: Class  
com 
.google 
.apphosting.runtime.security.shared.intercept.java.lang.reflect.Method_ 
$3 can not access a member of class  
freemarker.ext.jsp.FreeMarkerPageContext2 with modifiers "static"):

<quote>
This honestly looks like a bug in AppEngine's JVM security model.  
We're invoking a package-private method  
freemarker.ext.jsp.FreeMarkerPageContext2#create() from a class in the  
same package -freemarker.ext.jsp.PageContextFactory. It ought to work.  
However, it appears that for (presumably some security purposes)  
AppEngine replaces java.lang.reflect.Method with  
com 
.google 
.apphosting 
.runtime.security.shared.intercept.java.lang.reflect.Method, and here  
security trips over itself, as a class from package  
"com 
.google 
.apphosting.runtime.security.shared.intercept.java.lang.reflect."  
can't call a method in package "freemarker.ext.jsp"...

This is not a problem on ordinary JVMs as classes in java.* packages  
have special privileges. Can you file a bug report with Google  
(possibly referencing this report here) and post URL to it here? I'll  
be happy to work with them to resolve this.
</quote>

Attila.

On 2009.05.20., at 17:09, Amin Mohammed-Coleman wrote:

> Hi again
>
> I'm getting an error stating 'This artifact is not accessible.'.  I  
> really need to find out why freemarker jsp support doesn't work on  
> app engine...
>
> will try to see the url some other way..not sure how.
>
> Cheers
> AMin
>
> On Wed, May 20, 2009 at 10:06 PM, Amin Mohammed-Coleman <[email protected] 
> > wrote:
> Hi
>
> I tried that and I got an error.  Will try again.
> Cheers
> Amin
>
> Sent from my iPhone
>
>
> On 20 May 2009, at 21:57, Attila Szegedi <[email protected]> wrote:
>
> It's weird, it didn't allow me access either until I logged in. Try
> logging with your SourceForge account (create one first if you don't
> have it) and then you should be able to see it.
>
> Attila.
>
> On 2009.05.20., at 16:37, Amin Mohammed-Coleman wrote:
>
> Hi
>
> Thanks for getting back to me.  Unfortunately I can't seem to access
> the URL.  Is there an alternative to it?
>
> Cheers
> Amin
>
> On Wed, May 20, 2009 at 8:54 PM, Attila Szegedi <[email protected]>
> wrote:
> Yes, see <https://sourceforge.net/tracker/?func=detail&atid=100794&aid=2786848&group_id=794
>
>
> Attila.
>
> On 2009.05.20., at 15:20, Amin Mohammed-Coleman wrote:
>
> Hi
>
> Has anyone had any issues using freemarker jsp support on google app
> engine?
>
>
> Cheers
> Amin






------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.