#jython IRC Log (v0.9)

Index

IRC Log for 2011-02-06

Timestamps are in GMT/BST.

[1:33] * lucian (~lucian@78-86-217-168.zone2.bethere.co.uk) Quit (Remote host closed the connection)
[3:38] * juneau001 (~juneau@pool-70-106-164-91.chi01.dsl-w.verizon.net) Quit (Quit: juneau001)
[4:45] * lopex (lopex@89-76-44-27.dynamic.chello.pl) Quit ()
[4:52] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) Quit (Quit: Leaving)
[5:26] * shanka (~shashank@c-98-245-87-8.hsd1.co.comcast.net) Quit (Quit: Leaving.)
[6:05] * stakkars_ (~tismer@77-21-85-35-dynip.superkabel.de) Quit (Quit: stakkars_)
[6:13] * stakkars_ (~tismer@77-21-85-35-dynip.superkabel.de) has joined #jython
[8:01] * shanka (~shashank@c-98-245-87-8.hsd1.co.comcast.net) has joined #jython
[8:45] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) has joined #jython
[8:48] * burhan (~burhan@pdpc/supporter/student/fyrestrtr) has joined #jython
[8:49] <burhan> anyone using jython on glassfish?
[8:50] <burhan> I'm having an issue where glassfish/jython is not populating my GET string
[8:59] <pr3d4t0r> burhan: I thought I saw you yesterday.
[9:00] <pr3d4t0r> burhan: What do you mean? If you're using Glassfish, is the Jython script a servlet?
[9:00] <burhan> pr3d4t0r: yes, and I'm having a strange problem with it.
[9:01] <pr3d4t0r> burhan: http://ciurana.eu/pastebin - show the snippet that causes the problem, please ?
[9:01] <burhan> pr3d4t0r: a simple request, like foo.jsp?hello=there - and in my django application, request.GET['hello'] is not there (in fact, it throws KeyError exception)
[9:01] <pr3d4t0r> burhan: . . .
[9:01] <burhan> pr3d4t0r: and when I do print(request.GET), its an empty dict
[9:01] <pr3d4t0r> burhan: Django + Glassfish sounds *bad*.
[9:01] <pr3d4t0r> burhan: How do you ensure that WSGI is met?
[9:02] <burhan> not really, its the only one that worked for me. The automatic war generation doesn't work if your media URL is an absolute URL, and even when you get it to work actually make a war file, and deploy it on tomcat, the resulting webapplication doesn't start.
[9:03] <burhan> so with glassfish's built-in django support, it was the only container that actually worked for me.
[9:03] <burhan> except now I have this problem with querystrings that I cannot understand. Same codebase when run using runserver works great, when run in glassfish no querystring :/
[9:17] <pr3d4t0r> burhan: I'd suggest either using Wicket + Java or ditching Glassfish for the front-end and using CherryPy or Dyango + nginx or Apache.
[9:18] <pr3d4t0r> burhan: Doing Jython on top of Tomcat + Glassfish doesn't sound very productive. Too many opportunities for error. There's no explicit separation of concerns that I'm aware of there like there is with Spring or Mule and Jython or other JSR-223 run-times.
[9:23] <burhan> pr3d4t0r: would either of those scenarios work on Windows?
[10:15] <pr3d4t0r> burhan: Yup.
[10:15] <pr3d4t0r> burhan: And you can always ditch Jython and use CPython instead, if needed.
[10:16] <pr3d4t0r> burhan: Your current configuration seems to me like overcomplicated. You can accomplish Django/CherryPy/etc. without having Glassfish, perhaps better.
[10:16] <pr3d4t0r> burhan: http://httpd.apache.org/docs/current/platform/windows.html
[10:18] <pr3d4t0r> burhan: http://nginx.org/en/download.html#stable_versions
[11:14] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) Quit (Quit: jabley)
[11:49] * burhan (~burhan@pdpc/supporter/student/fyrestrtr) Quit (Ping timeout: 246 seconds)
[11:51] * lucian (~lucian@78-86-217-168.zone2.bethere.co.uk) has joined #jython
[11:52] * burhan (~burhan@pdpc/supporter/student/fyrestrtr) has joined #jython
[11:52] <burhan> pr3d4t0r: ditched glassfish for apache + mod_wsgi + cpython 2.7.1 and everything is working fine now.
[12:11] <pr3d4t0r> burhan: :D
[12:12] <pr3d4t0r> burhan: Good call.
[12:12] <pr3d4t0r> burhan: Some of the Glassfish guys are quite hostile to Python - that's why I don't trust that it'll work well without spending a lot of time validating that everything works as it should.
[12:20] <burhan> yes but such a shame, it would be wonderful to get a proper jython + django platform going; a lot of enterprisey stuff is just not available in apache.
[12:21] <pr3d4t0r> burhan: Well... do like Morpheus.
[12:23] <burhan> I am not giving up on it, just need to find a combination that works.
[12:32] <pr3d4t0r> burhan: Try this.
[12:33] <pr3d4t0r> burhan: Write a Glassfish service that uses Jython, then launch Django from there on port 8080 or wherever. Use Glassfish only as a dumb proxy from 80 --> 8080. That ouight to work.
[12:33] <pr3d4t0r> burhan: Your service may just need to implement the ScriptingFactory to find the Jython run-time. From there, you're in Python land.
[12:34] <pr3d4t0r> burhan: Read my Mule punching paper too. It talks about cleanly separating Java and Python code in a JVM or the class loaders will shit all over themselves.
[12:34] <pr3d4t0r> burhan: What you DO NOT want to do is, on a busy server, have Python or Java code call the other side over and over (e.g. abusing the import statements, if you will).
[12:35] <pr3d4t0r> burhan: At some point your class loaders will do something nasty and take the server with them.
[12:35] <pr3d4t0r> burhan: http://ciurana.eu/site.php?page=musings&contentTag=dynamic_mule_updates.html - Mule punching.
[12:36] <pr3d4t0r> burhan: It's mostly Mule/Spring stuff but you can probably extrapolate.
[13:02] <burhan> it was such a dumb error.
[13:03] <burhan> and I didn't know what it could be. Something as simple as /foo?bar=zoo and no bar in request.GET under glassfish
[13:03] <burhan> same computer, same IP, same SSL certificate, switched to apache with mod_wsgi and cpython and the code worked without a single change.
[13:15] <pr3d4t0r> burhan: Think about it for a moment and you'll know what happened
[13:15] <pr3d4t0r> .
[13:15] <pr3d4t0r> burhan: HttpRequest.doGet() was called at some point way before the payload got to the Python code.
[13:16] <pr3d4t0r> burhan: The hosting servlet, somewhere, has the request and its arguments.
[13:40] * burhan (~burhan@pdpc/supporter/student/fyrestrtr) Quit (Ping timeout: 260 seconds)
[14:13] * enebo (~enebo@67-4-176-189.mpls.qwest.net) has joined #jython
[14:33] * lucian (~lucian@78-86-217-168.zone2.bethere.co.uk) Quit (Read error: Connection reset by peer)
[14:34] * lucian (~lucian@78-86-217-168.zone2.bethere.co.uk) has joined #jython
[14:55] * juneau001 (~juneau@pool-70-106-164-91.chi01.dsl-w.verizon.net) has joined #jython
[15:03] * enebo_ (~enebo@67-4-176-189.mpls.qwest.net) has joined #jython
[15:03] * enebo (~enebo@67-4-176-189.mpls.qwest.net) Quit (Read error: Connection reset by peer)
[15:40] * lucian (~lucian@78-86-217-168.zone2.bethere.co.uk) Quit (Remote host closed the connection)
[15:52] * enebo_ (~enebo@67-4-176-189.mpls.qwest.net) Quit (Quit: enebo_)
[16:36] * MarderIII (~marderii@enneman.demon.nl) has joined #jython
[17:25] * burhan (~burhan@83.96.74.34) has joined #jython
[17:25] * burhan (~burhan@83.96.74.34) Quit (Changing host)
[17:25] * burhan (~burhan@pdpc/supporter/student/fyrestrtr) has joined #jython
[17:54] * burhan (~burhan@pdpc/supporter/student/fyrestrtr) Quit (Quit: leaving)
[17:58] * MarderIII (~marderii@enneman.demon.nl) Quit (Quit: [IRSSI] Vacant lots and vacant minds usually become dumping grounds for a lot of rubbish)
[17:58] * MarderIII (~marderii@enneman.demon.nl) has joined #jython
[18:36] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) has joined #jython
[18:58] * shanka1 (~shashank@c-98-245-87-8.hsd1.co.comcast.net) has joined #jython
[18:58] * shanka (~shashank@c-98-245-87-8.hsd1.co.comcast.net) Quit (Quit: Leaving.)
[18:59] * fwierzbicki (~frank@99-106-170-105.lightspeed.sntcca.sbcglobal.net) has joined #jython
[19:36] * shanka1 (~shashank@c-98-245-87-8.hsd1.co.comcast.net) Quit (Ping timeout: 240 seconds)
[19:37] * shanka (~shashank@c-98-245-87-8.hsd1.co.comcast.net) has joined #jython
[19:40] * MarderIII (~marderii@enneman.demon.nl) Quit (Quit: [IRSSI] Clowning around is not the same as fooling around...I am a clown, not a fool)
[19:46] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) has joined #jython
[19:48] * fwierzbicki (~frank@99-106-170-105.lightspeed.sntcca.sbcglobal.net) Quit (Quit: Ex-Chat)
[20:12] * lucian (~lucian@78-86-217-168.zone2.bethere.co.uk) has joined #jython
[20:21] * lopex (lopex@89-76-44-27.dynamic.chello.pl) has joined #jython
[20:24] * lopex (lopex@89-76-44-27.dynamic.chello.pl) Quit (Client Quit)
[20:30] * lopex (lopex@89-76-44-27.dynamic.chello.pl) has joined #jython
[20:31] * shanka (~shashank@c-98-245-87-8.hsd1.co.comcast.net) Quit (Ping timeout: 245 seconds)
[20:38] * lopex (lopex@89-76-44-27.dynamic.chello.pl) Quit (Ping timeout: 265 seconds)
[20:38] * lopex (lopex@89-76-44-27.dynamic.chello.pl) has joined #jython
[21:38] * lopex (lopex@89-76-44-27.dynamic.chello.pl) Quit (Ping timeout: 250 seconds)
[21:39] * shanka (~shashank@c-98-245-87-8.hsd1.co.comcast.net) has joined #jython
[21:39] * lopex (lopex@89-76-44-27.dynamic.chello.pl) has joined #jython
[21:44] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) Quit (Ping timeout: 240 seconds)

Index

These logs were automatically created by JythonLogBot_ on irc.freenode.net using a slightly modified version of the Java IRC LogBot (github).