The fix provided in the blog above some how shoots (or hide???) the
inner problem. But the outer problem (cannot create
PageContextFactory) is still there. I get this exception after deploy
the *fixed* version to the cloud:
java.lang.NoClassDefFoundError: Could not initialize class
freemarker.ext.jsp.PageContextFactory
at
freemarker.ext.jsp.TagTransformModel.getWriter(TagTransformModel.java:
99)
at freemarker.core.Environment.visit(Environment.java:286)
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:130)
at freemarker.core.Environment.visit(Environment.java:210)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:210)
at freemarker.core.Environment.process(Environment.java:190)
at freemarker.template.Template.process(Template.java:256)
at
freemarker.ext.servlet.FreemarkerServlet.process(FreemarkerServlet.java:
452)
at
freemarker.ext.servlet.FreemarkerServlet.doGet(FreemarkerServlet.java:
391)
I think Google didn't keep a good consistency here. The local GAE
should mimic the cloud in at least *stop* bugs like these.
I'm just commenting on FreeMarker guy blog. Hope that they can release
another fix soon.
On Apr 27, 6:20 pm, Sudhir Ramanandi <[email protected]> wrote:
> Aah, freemarker-gae-pre2.jar won't work either. I got the same error.
> Asked to freemarker mailing list. Lets see what comes up.
>
> Does any one else has any idea?
>
> Thanks
> SN
>
> On Tue, Apr 27, 2010 at 11:29 AM, Sudhir Ramanandi
> <[email protected]>wrote:
>
>
>
> > First of all, Currently normal release of freemarker will not run on GAE as
> > it has dependency on javax.swing package
> > If you solve the problem you just mentioned, sooner or later you will get
> > other problems
>
> > See this
> >http://solveme.wordpress.com/2009/12/25/freemarker-sucks-it-has-depen...
>
> > You will have to download a GAE compatible version of freemarker. see above
> > link for download link.
>
> > Thanks
> > SN
>
> > On Tue, Apr 27, 2010 at 8:31 AM, Phuong Nguyen <[email protected]>wrote:
>
> >> Hi guys:
> >> I'm having spring-mvc + apache tiles + freemarker in my Gae
> >> Application.
> >> Everything works fine in my local machine after several nightmare of
> >> trying to figuring out the appropriate version of apache tiles to use.
>
> >> I can recall that I had it successfully run on the cloud few months
> >> ago (when the latest version of sdk is still 1.3.1)
>
> >> Funny thing is that, after several improvements and adaptation, I'm
> >> now at 1.3.3.1 and my app work fine on local server. However, when I
> >> upload it onto the cloud, here is what I got:
>
> >> java.lang.VerifyError: (class: freemarker/ext/jsp/
> >> FreeMarkerJspApplicationContext, method: <init> signature: ()V)
> >> Incompatible argument to function
> >> at
>
> >> com.google.appengine.runtime.Request.process-5cb3cd85ccb06a68(Request.java)
> >> at java.lang.Class.forName0(Native Method)
> >> at java.lang.Class.forName(Class.java:109)
> >> 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(Class.java:109)
> >> at
> >> freemarker.ext.jsp.PageContextFactory.<clinit>(PageContextFactory.java:
> >> 26)
> >> at
> >> freemarker.ext.jsp.TagTransformModel.getWriter(TagTransformModel.java:
> >> 99)
> >> at freemarker.core.Environment.visit(Environment.java:286)
> >> at freemarker.core.UnifiedCall.accept(UnifiedCall.java:130)
> >> at freemarker.core.Environment.visit(Environment.java:210)
> >> at freemarker.core.MixedContent.accept(MixedContent.java:92)
> >> at freemarker.core.Environment.visit(Environment.java:210)
> >> at freemarker.core.Environment.process(Environment.java:190)
> >> at freemarker.template.Template.process(Template.java:237)
> >> at
> >> freemarker.ext.servlet.FreemarkerServlet.process(FreemarkerServlet.java:
> >> 452)
> >> at
> >> freemarker.ext.servlet.FreemarkerServlet.doGet(FreemarkerServlet.java:
> >> 391)
>
> >> I'm dying. How on earth? I would probably get fired tomorrow.
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Google App Engine for Java" group.
> >> To post to this group, send email to
> >> [email protected].
> >> To unsubscribe from this group, send email to
> >> [email protected]<google-appengine-java%[email protected]>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-appengine-java?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group
> athttp://groups.google.com/group/google-appengine-java?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.