Hopefully this simpler example will lower the barrier of entry for
interested developers...
-g.
PS: happy 2010 to everyone on this list
On Dec 29 2009, 7:51 pm, Panagiotis Astithas <past...@gmail.com>
wrote:
> Creating a minimal example was in fact my goal, too. I have the
> tarball version working fine, I just wanted to create a new project
> from scratch using the wizard from Google Eclipse plugin and then use
> the ant script to generate the JavaScript bits on top of that. The
> only alternative right now is to go the other way, i.e. start from the
> working blog-gae tarball and strip the unnecessary bits.
>
> On Tue, Dec 29, 2009 at 1:47 PM, George Moschovitis
>
>
>
>
>
> <george.moschovi...@gmail.com> wrote:
> > BTW, I will try to add a minimal example in the appengine package, the
> > blog-gae example is too nitro specific.
> > -g.
>
> > On Tue, Dec 29, 2009 at 1:42 PM, George Moschovitis
> > <george.moschovi...@gmail.com> wrote:
>
> >> Use the example here: http://www.nitrojs.org/appenginejs/blog-gae.tar.gz
> >> I haven't updated the github lately.
>
> >> -g.
>
> >> On Tue, Dec 29, 2009 at 12:24 PM, Panagiotis Astithas <past...@gmail.com>
> >> wrote:
>
> >>> Working with the github version of the blog example, I tried to modify
> >>> build.xml to fetch the dependencies mentioned in the README and create
> >>> the symlinks, but it doesn't seem to work as advertised. When visiting
> >>>http://localhost:8080I get the following error:
>
> >>> [java] The server is running athttp://localhost:8080/
> >>> [java] org.mozilla.javascript.JavaScriptException: require error:
> >>> couldn't find "jack/handler/servlet"
>
> >>> (/Users/panagiotisastithas/workspace/blog-gae/war/WEB-INF/packages/narwhal/ lib/sandbox.js#130)
> >>> [java] at
> >>> org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1048)
> >>> [java] at
>
> >>> script(/Users/panagiotisastithas/workspace/blog-gae/war/WEB-INF/packages/na rwhal/lib/sandbox.js:130)
> >>> [java] at
>
> >>> script(/Users/panagiotisastithas/workspace/blog-gae/war/WEB-INF/packages/na rwhal/lib/sandbox.js:135)
> >>> [java] at
>
> >>> script(/Users/panagiotisastithas/workspace/blog-gae/war/WEB-INF/packages/na rwhal/lib/sandbox.js:235)
> >>> [java] at script(unnamed script:1)
> >>> [java] at
> >>> org.mozilla.javascript.Interpreter.interpret(Interpreter.java:845)
> >>> [java] at
>
> >>> org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:16 4)
> >>> [java] at
> >>> org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:405)
> >>> [java] at
> >>> org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3066)
> >>> [java] at
>
> >>> org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:17 5)
> >>> [java] at
> >>> org.mozilla.javascript.Context.evaluateString(Context.java:1106)
> >>> [java] at org.jackjs.JackServlet.init(JackServlet.java:44)
> >>> [java] at
>
> >>> org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:433)
> >>> [java] at
>
> >>> org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:342)
> >>> [java] at
> >>> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:463)
> >>> [java] at
>
> >>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandle r.java:1093)
> >>> [java] at
>
> >>> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Trans actionCleanupFilter.java:43)
> >>> [java] at
>
> >>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandle r.java:1084)
> >>> [java] at
>
> >>> com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFile Filter.java:121)
> >>> [java] at
>
> >>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandle r.java:1084)
> >>> [java] at
> >>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
> >>> [java] at
>
> >>> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> >>> [java] at
> >>> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> >>> [java] at
> >>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
> >>> [java] at
> >>> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> >>> [java] at
>
> >>> com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEn gineWebAppContext.java:70)
> >>> [java] at
> >>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> >>> [java] at
>
> >>> com.google.appengine.tools.development.JettyContainerService$ApiProxyHandle r.handle(JettyContainerService.java:352)
> >>> [java] at
> >>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> >>> [java] at org.mortbay.jetty.Server.handle(Server.java:313)
> >>> [java] at
> >>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
> >>> [java] at
>
> >>> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnecti on.java:830)
> >>> [java] at
> >>> org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
> >>> [java] at
> >>> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
> >>> [java] at
> >>> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
> >>> [java] at
>
> >>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396 )
> >>> [java] at
>
> >>> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java: 442)
> >>> [java] Dec 29, 2009 10:19:00 AM
> >>> com.google.apphosting.utils.jetty.JettyLogger warn
> >>> [java] WARNING: /
>
> >>> I can verify that the required path exists from the shell:
>
> >>> $ ls war/WEB-INF/packages/jack/lib/jack/handler/servlet.js
> >>> war/WEB-INF/packages/jack/lib/jack/handler/servlet.js
>
> >>> You can see my modifications to the build.xml file in the attached
> >>> diff. Is there something else I should be symlinking or another
> >>> dependency that was not mentioned in the README?
>
> >>> Thanks,
> >>> --
> >>> Panagiotis Astithas
> >>>http://www.linkedin.com/in/astithas
>
> >> --
> >> blog.gmosx.com
>
> > --
> > blog.gmosx.com
>
> --
> Panagiotis Astithashttp://www.linkedin.com/in/astithas