addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1light-bulblinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

GAE debug tools and Jetty/GAE discrepancies

From: Alex H.
Sent on: Sunday, December 19, 2010 4:53 PM
2 quick questions for anyone:

1) The guestbook app from AppEngine Magic works perfectly on Jetty on localhost:8080 but
GAE gives me an uninformative 500 Error when I deploy it.  I have no static files and made a blank slate application so the only output should be from my routehandlers.  I also deleted any references in the appengine-web.xml files to index.html so it wouldn't be pointing to a nonexistent file as I am aware that can create the error.  I also set the :keep-non-project-files variable to true in the project.clj file to work around a nasty leiningen 1.4 bug.  Other than that it's pretty much verbatim from the tutorial and works perfectly on Jetty.  Any ideas why the discrepancy?

2) Is there a better way to go about debugging these things?  I remember with Rails I felt really dumb
because I only figured out there was a Rails debugger separate from the Ruby language debugger
after a while of constantly discarding my apps and starting fresh.  I never really got into the Rails debugger before moving on to Clojure, though, so my experience with web applications so far has been the easiest way to "debug" them is to treat them as disposable: if something goes wrong it's usually so difficult to track down the bug that it's easier just to start with a fresh app, maybe moving the broken app to a different filename so you can copy in the good files one by one.  I hated that feeling and it feels wrong.  Is there a smarter way to debug GAE Apps?  Or web apps in general?  Running Jetty locally first gives more informative error messages and that is helpful but I feel like I must be missing something about the development process and it also doesn't help me in cases like the present where Jetty works great and GAE doesn't agree and doesn't give an informative error message, at least not as far as I can tell.

Thanks to anyone who replies.


From: [address removed]
To: [address removed]
Subject: Re: [Clojure-NYC] RE:Forms in App Engine Magic
Date: Thu, 16 Dec[masked]:40:36 -0500

if i followed what you wrote here, you now have a file with the namespace compojure.core, but on the path for guestbook.compojure.core. That's not going to work...

In any case, I'm assuming that before you tried that you put compojure in your project.clj and re-ran 'lein deps'.

but frankly, i'm a little confused about what you're saying is causing the problem. Where do forms come into it? Is it that you are using compojure's html-creation stuff to make the forms? Maybe that's the problem. That was spun-off from compojure a while ago, so if you're using a recent version of compojure, you'll need to use hiccup too. https://github.com/weavejester/hiccup

/brian

On Thu, Dec 16, 2010 at 9:23 PM, Alex Haliasos <[address removed]> wrote:
I've located some sort of bug with AppEngine Magic and forms.

When I lein appengine-prepare a the guestbook example, I keep getting the error message
that compojure/core.clj is not found in my classpath.

I checked lein classpath to see all my classpaths, and cloned Compojure off github, and copied it into the guestbook/src/guestbook directory so that along with core.clj and app_servlet.clj there is a compojure directory with core.clj in it so it is compojure/core.clj.

Still lein appengine-prepare does not find it.  I tried jarring Compojure and putting the jarfile in guestbook/lib/dev with other jar files and still it does not find it.

I understand classpaths, I know exactly the file it is talking about, I'm manually placing it where it's supposed to be, and for some reason the system is not finding it.

As a result I cannot use Compojure to make web forms so all I have deployed is a web page, not a web application.  Any insights?  What am I doing wrong?



From: [address removed]
To: [address removed]
Subject: RE: [Clojure-NYC] Speaker for this Wednesdays meetup...
Date: Thu, 16 Dec[masked]:42:53 -0500

John thanks for writing and no problem -- Constantine's stuff is great so I managed to do it.


From: [address removed]
To: [address removed]
Subject: Re: RE: [Clojure-NYC] Speaker for this Wednesdays meetup...
Date: Wed, 15 Dec[masked]:36:57 -0500

Hi Alex,
Apologies for my tutorial being so out of date. Unfortunately I believe Compojure changed incompatibly, and I haven't had a chance to go back and rewrite the whole thing. (The GAE SDK may also have changed.) I'm hoping I'll be able to revisit in January, but at the moment I have no bandwidth for this.
-hume.
-- typed with my thumbs
On Dec 14,[masked]:56 AM, "Alex Haliasos" <[address removed]> wrote:




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by John Hume ([address removed]) from NYC Clojure Users Group.
To learn more about John Hume, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here

Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]



--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Alex Haliasos ([address removed]) from NYC Clojure Users Group.
To learn more about Alex Haliasos, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here

Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]



--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Alex Haliasos ([address removed]) from NYC Clojure Users Group.
To learn more about Alex Haliasos, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here

Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Brian Gruber ([address removed]) from NYC Clojure Users Group.
To learn more about Brian Gruber, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here

Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy