Re: Freemarker JSP support on Google App Engine

Amin Mohammed-Coleman <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Hi
The problem I'm getting is:

Uncaught exception from servlet
java.lang.VerifyError: (class:
freemarker/ext/jsp/FreeMarkerJspApplicationContext, method: <init>
signature: ()V) Incompatible argument to function
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Unknown Source)
	at com.google.apphosting.runtime.security.shared.intercept.java.lang.Class_.loadClassOrStub(Class_.java:261)
	at com.google.apphosting.runtime.security.shared.intercept.java.lang.Class_.access$100(Class_.java:37)
	at com.google.apphosting.runtime.security.shared.intercept.java.lang.Class_$2.run(Class_.java:103)
	at com.google.apphosting.runtime.security.shared.intercept.java.lang.Class_$2.run(Class_.java:99)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.google.apphosting.runtime.security.shared.intercept.java.lang.Class_.forName(Class_.java:99)
	at freemarker.ext.jsp.FreeMarkerJspFactory21.class$(FreeMarkerJspFactory21.java:13)
	at freemarker.ext.jsp.FreeMarkerJspFactory21.<clinit>(FreeMarkerJspFactory21.java:12)
	at freemarker.ext.jsp.FreeMarkerPageContext21.<clinit>(FreeMarkerPageContext21.java:29)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Unknown Source)



Not the same as the one mentioned in the issue. I will send an email to the
google app engine team and see what is happening.

Cheers
Amin


On Wed, May 20, 2009 at 10:14 PM, Attila Szegedi <[email protected]> wrote:

> 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
> _______________________________________________
> FreeMarker-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freemarker-user
>

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com

_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user
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.