|
View:
New views
1 Messages
—
Rating Filter:
Alert me
|
|
|
Anyone managed to run webpy with jython?I sent the email to the web.py mailing list. Maybe some one on jython list
has tried it so here you go - ---------- Forwarded message ---------- Hi, I was trying to use web.py with Jython and saw your email. I'm also having the socket.TCP_NODELAY problem. I also saw Anand's suggestion and tried adding this line: web.httpserver.runsimple = web.httpserver.runbasic The web server starts but JVM crashes on the first request. (Jython 2.5.0 and 2.5.1RC1 and Java 1.6.0.16 on Windows) See the error below. I wonder if anyone has managed to make web.py work with Jython2.5? JVM error: http://0.0.0.0:8080/ # # An unexpected error has been detected by Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x77c32873, pid=1136, tid=2744 # # Java VM: Java HotSpot(TM) Client VM (11.0-b15 mixed mode, sharing windows-x86) # Problematic frame: # C [msvcrt.dll+0x22873] # # An error report file with more information is saved as: # D:\Java\webpy\hs_err_pid1136.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # On Mon, May 18, 2009 at 1:08 PM, see<cthedot@...> wrote: > > (sorry for the double post) > > I try to run web.py with Jython (Jython 2.5rc2 + socket.py patch > http://fisheye3.atlassian.com/browse/~raw,r=6354/jython/trunk/jython/Lib/socket.py). > > The first problem seems to be the included CherryPy wsgiserver for > which I ask for a change already http://www.cherrypy.org/ticket/921 > Problem is the usage of socket.TCP_NODELAY which is not supported by > Jython. It that would be configurable in CherryPy and/or web.py at > least this problem would be gone I think. > I hacked the server and using the following to start a web.py app at > least does that the server: > > > import web > > urls = ( > '/(.*)', 'hello' > ) > app = web.application(urls, globals()) > > > class hello: > def GET(self, name): > if not name: > name = 'world' > return 'Hello, ' + name + '!' > > application = app.wsgifunc() > > if __name__ == "__main__": > import wsgiserver > httpd = wsgiserver.CherryPyWSGIServer( > ('0.0.0.0', 8001), application, > server_name='www.cherrypy.example') > httpd.start() > > > If web.py would use a wsgiserver which would be like suggested at > http://bugs.jython.org/issue1347 at least the server would run with > Jython. > > Templates also do not seem to run but I have to look into that one > further. > > Thanks for any help. > > Chris ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Jython-users mailing list Jython-users@... https://lists.sourceforge.net/lists/listinfo/jython-users |
| Free embeddable forum powered by Nabble | Forum Help |