[Webware-discuss] (no subject)
- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Webware-discuss mailing list Webware-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/webware-discuss
[Webware-discuss] (no subject)
quick question: I just updated both my python install (241-242) as well as updating webware from the svn ( I know I should not have done both at the same time) and when i tried to run webware (after running install.py again) I received an error that in application.py at line 125 I could not do float - none. It appears to me that the Profiles.starttime is not being set and so it defaults to none. I added a line setting the starttime to self._startTime which fixed the problem for me but I thought I would pass the info to the group. Has anyone else had this problem? Jose --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Webware-discuss mailing list Webware-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/webware-discuss
RE: [Webware-discuss] (no subject)
Eduardo Elgueta wrote: Geoff, Thanks for your answer. I usually store a database connection in my sessions. How can I make the database connection pickable? Are regular classes pickable or I have to add custom code? Sessions expire because of this or they're just not saved to disk? Thanks again. Ed. I would recommend reading the Python documentation on pickling here: http://www.python.org/doc/current/lib/pickle-inst.html But briefly, database connections are definitely not going to be picklable by themselves. Class instances are picklable, by default pickling all of the attributes of the class. But you can add special __getstate__ and __setstate__ methods to a class to control exactly what part of the instance's state is pickled and unpickled. So you could wrap your database connection in a class, and have only the connection _information_ be pickled, not the connection itself; and reconstruct the connection from that information on unpickling. I hope that leads you in the right direction... I'm not really sure what happens if the session can't be pickled to disk, but it certainly causes big problems if you try to restart your app server so you really ought to avoid it. - Geoff --- This SF.net email is sponsored by OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could win a $250 Gift Certificate. http://www.wrgsurveys.com/2003/osdntech03.php?site=8 ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
RE: [Webware-discuss] (no subject)
Eduardo Elgueta wrote: Hi All, I have several webkit servers (XP, Linux and Win2K) and in all of them I get the following traceback every two hours or so (this one is from a Win2K server): None Traceback (most recent call last): File .\WebKit\SessionFileStore.py, line 78, in __setitem__ self.encoder()(item, file) File D:\Python22\Lib\copy_reg.py, line 58, in _reduce state = base(self) TypeError: connect() argument 1 must be string, not Connection What on earth is this? This looks like an error when the session code is attempting to pickle the session to disk. Are you storing something unusual in your session? A database connection object perhaps? You can't put anything unpicklable into your sessions. - Geoff --- This SF.net email is sponsored by OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could win a $250 Gift Certificate. http://www.wrgsurveys.com/2003/osdntech03.php?site=8 ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
RE: [Webware-discuss] (no subject)
Geoff, Thanks for your answer. I usually store a database connection in my sessions. How can I make the database connection pickable? Are regular classes pickable or I have to add custom code? Sessions expire because of this or they're just not saved to disk? Thanks again. Ed. cita quien=Geoffrey Talvola Eduardo Elgueta wrote: Hi All, I have several webkit servers (XP, Linux and Win2K) and in all of them I get the following traceback every two hours or so (this one is from a Win2K server): None Traceback (most recent call last): File .\WebKit\SessionFileStore.py, line 78, in __setitem__ self.encoder()(item, file) File D:\Python22\Lib\copy_reg.py, line 58, in _reduce state = base(self) TypeError: connect() argument 1 must be string, not Connection What on earth is this? This looks like an error when the session code is attempting to pickle the session to disk. Are you storing something unusual in your session? A database connection object perhaps? You can't put anything unpicklable into your sessions. - Geoff --- This SF.net email is sponsored by OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could win a $250 Gift Certificate. http://www.wrgsurveys.com/2003/osdntech03.php?site=8 ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss -- Eduardo Elgueta Senior Consultant Navix emial: [EMAIL PROTECTED] phone: +56 (2) 315-7608 mobile: +56 (9) 821-0033 web: www.navix.cl --- This SF.net email is sponsored by OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could win a $250 Gift Certificate. http://www.wrgsurveys.com/2003/osdntech03.php?site=8 ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
Re: [Webware-discuss] (no subject)
On Dec 2, 2003, at 2:29 PM, Eduardo Elgueta wrote: I usually store a database connection in my sessions. How can I make the database connection pickable? Are regular classes pickable or I have to add custom code? Sessions expire because of this or they're just not saved to disk? Most classes are pickleable, but only if they don't have anything transient -- like an open file object, a socket, or in this case a database connection. One way to handle this would be to put the connection parameters in the session, and create the connection in your servlet's awake() method (or probably your SitePage's awake). If you use DBPool, it will reuse old connections based on those parameters, or make a new connection if necessary. So when you restart the server, the connection will be recreated. If you are doing long transactions then you need to be more sure that you get the exact connection back. Then you might put a connection ID (that you make yourself) into the session, and keep the actual connections in a module global. Like: _connections = {} _count = 0 _connLock = threading.Lock() def saveConnection(conn): _connLock.acquire() connID = _count _count += 1 _connLock.release() # Make sure it's extra unique: connID = '%s_%s' % (time.time, connID) _connections[connID] = connection return connID def getConnection(connID): try: return _connections[connID] except KeyError: raise KeyError, Your connection has expired, been closed, or has been lost in a server restart # and maybe redirect or something intelligent based on this -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org --- This SF.net email is sponsored by OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could win a $250 Gift Certificate. http://www.wrgsurveys.com/2003/osdntech03.php?site=8 ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
Re: [Webware-discuss] (no subject)
Aaron, Thank you very much for your answer. My question was wrong, thouhgt. I'm looking for a compiled adapter. I have no C compiler for Windows and I wouldn't know how to compile it. Ed. cita quien=Aaron Held http://cvs.sourceforge.net/viewcvs.py/webware/Webware/WebKit/Adapters/wkISAPI/ -Aaron Eduardo Elgueta wrote: Hi All, Does anyboy know where can I find an ISAPI webkit adapter for IIS? Thanks! Ed. -- Eduardo Elgueta Senior Consultant Navix emial: [EMAIL PROTECTED] phone: +56 (2) 315-7608 mobile: +56 (9) 821-0033 web: www.navix.cl --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
[Webware-discuss] (no subject)
Dear our Guests, EXPLORE TURKEY WITH ASTARTETOURS!! Hotel Reservations: You will find more than 200 hotels all over Turkey, which have been carefully selected. Through our reservation system we are able to book more than 1.000 hotels arround Europe. Tours Hosted Programs, sightseeing tours, escorted tours or cruise programs. We have tours on set dates each year or we can organize special itineraries for the independant traveller or small groups!! Rent-A-Car: Travelling on your own pace in Turkey! We have a range of vehicles on offer to choose from. They may be hired in all major cities. Your car can be made available at the airport or your hotel for collection!! Visit our web-site!! www.astartetours.com Kind Regards Astarte Tours P.S.: If you want to unsubscribe, please sent us an e-mail. --- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
[Webware-discuss] RE: Subject: Gordon McMillan's Standalone utility
I've always used py2exe, it is very easy to use and as long as as you don't put anything extra in the setup.py it works great. It's what I used to compile webkit.py to webkit.exe without any real issues Good luck Jose Message: 4 Date: Sat, 26 Oct 2002 12:56:01 -0600 From: Bob Gailer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [Webware-discuss] Gordon McMillan's Standalone utility For IIS the instructions say Use Gordon McMillan's Standalone utility, which is part of his Installer package,.. I downloaded installer_5b4.zip http://www.mcmillan-inc.com/dnld/installer_5b4.zip from http://www.mcmillan-inc.com/dnld/. I can't find anything in it called Standalone. When I attempt to go thru the steps in Installer Release 5 Getting Started all I do is get lost, around III - Create a spec file for your project. What am I missing? What should I be doing? How can the WebKit documentation be improved to avoid this confusion? --- This SF.net email is sponsored by: ApacheCon, November 18-21 in Las Vegas (supported by COMDEX), the only Apache event to be fully supported by the ASF. http://www.apachecon.com ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
RE: [Webware-discuss] (no subject)
You can download a compiled dll from http://webware.sourceforge.net/MiscDownloads/ForCVS/Windows/ - Geoff -Original Message- From: Arnaldo Riquelme [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 06, 2002 5:29 PM To: WebWare Discuss Subject: [Webware-discuss] (no subject) Hello everyone!!! I'd like to use mod_webkit with Apache 1.3.2 on Windows 2000. How do I compile the source on Windows? I don't have VS, and even if I did I never used it before. Has anyone compile it on windows successfully? If so could someone point me to the right direction or maybe even share the binary. I'd also like to thank those of you that have created this frame work. It's getting better and better. The Python community have been craving for something like this. Thanks very much Arnaldo ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
[Webware-discuss] (no subject)
Title: Message I first noticed this problem using IE-on-Windows. I also see the problem in several other client situations (these are all on Linux): 1. Using a Python script with urllib.py 2. Using wget 3. Using Netscape on Linux Number 3 gives the most status information: The error page displays, right down to the uid/gid/etc. information, and the status bar states "12K read (stalled)" and the "wait cursor" (the little wristwatch) displays until I press Stop, at which point the status bar states "Document done." At the end of the page, then, is a horizontal rule, followed by "Transfer interrupted!" in bold. Now that I see what Netscape on Linux shows, there may be a clue. Is there supposed to be more error information AFTER the list of uid/gid/pid, etc. The last think I see is 'getuid 500' (500 is the nobody user on my box). If there's more information being collected, perhaps that's where the hang is. Cheers! -- David Hancock | [EMAIL PROTECTED] | 410-266-4384 -Original Message-From: Geoffrey Talvola [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 1:02 PMTo: 'Hancock, David (DHANCOCK)'; '[EMAIL PROTECTED]'Subject: RE: [Webware-discuss] WebKit Error traceback pages don't close th eir connection? OK. It doesn't happen here at work on Windows boxes, but I can try it this weekend on my linux box at home. Have you by any chance tried other clients beside IE-on-Windows? I'll only be able to test it with Linux browsers at home. - Geoff -Original Message-From: Hancock, David (DHANCOCK) [mailto:[EMAIL PROTECTED]]Sent: Friday, April 26, 2002 10:28 AMTo: Geoffrey Talvola; '[EMAIL PROTECTED]'Subject: RE: [Webware-discuss] WebKit Error traceback pages don't close th eir connection? Oops--sorry for incomplete information earlier. OS: Linux (RedHat 6.b2 distribution) mod_webkit adapter Python 2.2 Webware 0.7 (released, nothing newer from CVS) NOT configured to email error reports Cheers! -- David Hancock | [EMAIL PROTECTED] | 410-266-4384 -Original Message-From: Geoffrey Talvola [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 10:19 AMTo: 'Hancock, David (DHANCOCK)'; '[EMAIL PROTECTED]'Subject: RE: [Webware-discuss] WebKit Error traceback pages don't close th eir connection? Which OS, adapter, Python version, and Webware version? It it configured to send email or not? It doesn't happen to me, and like you, I get a lot of error pages :-) - Geoff -Original Message-From: Hancock, David (DHANCOCK) [mailto:[EMAIL PROTECTED]]Sent: Thursday, April 25, 2002 10:56 PMTo: '[EMAIL PROTECTED]'Subject: [Webware-discuss] WebKit Error traceback pages don't close their connection? When I get an error traceback page (it happens a lot, I make a lot of mistakes), it seems like the HTTP connection doesn't get closed. The symptoms I see are that the traceback page loads, down to the end (I think), where the IDs print, but the IE "globe" keeps spinning until I press the Stop button on the browser. When I request the /Examples/Error servlet via urllib in a Python script, it hangs at the point of retrieving the page. If I press Ctrl-C, there's nothing in the output file. Any words of advice about what's going on and how I could fix it? I'm trying to write a cheesy automatic test for a servlet page that will simply look for the presence of the traceback. What I'm doing as a workaround is assuming that no page will take more than 30 seconds to load (browser and servlet on the same network), and handling an alarm if the timeout is exceeded. I appreciate any advice or pointers to information you can provide. Thanks. By the way, the fancy traceback is a great boon for us--much easier than finding and tailing a logfile. Cheers! -- David Hancock | [EMAIL PROTECTED] | 410-266-4384
[Webware-discuss] (no subject)
At 12:32 AM 4/5/2002 -0800, you wrote: I'm learning to use WebKit. My question: what are the pros and cons for using WebKit.cgi instead of using OneShot.cgi? Thanks. Mico Siahaan --- E-mail: mico at cbn dot net dot id mico at intermatik dot com --- PT Intermatik Kreatif Media www.intermatik.com
Re: [Webware-discuss] (no subject)
OneShot.cgi is only for debugging when you are doing very active development (and you don't want to restart the AppServer manually all the time). On Fri, 2002-04-05 at 02:43, Mico Siahaan wrote: At 12:32 AM 4/5/2002 -0800, you wrote: I'm learning to use WebKit. My question: what are the pros and cons for using WebKit.cgi instead of using OneShot.cgi? Thanks. Mico Siahaan --- E-mail : mico at cbn dot net dot id mico at intermatik dot com --- PT Intermatik Kreatif Media www.intermatik.com ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
Re: [Webware-discuss] (no subject)
On April 5, 2002 10:22 am, Ian Bicking wrote: OneShot.cgi is only for debugging when you are doing very active development (and you don't want to restart the AppServer manually all the time). One thing that's been on my pie-in-the-sky list for a while: - a separate monitor process that communicates with the AppServer process about what modules depencies should be monitored. It watches the module files and restarts the AppServer process if any changes are detected. That should provide the best of both worlds: peformance and autoreloading. On Fri, 2002-04-05 at 02:43, Mico Siahaan wrote: At 12:32 AM 4/5/2002 -0800, you wrote: I'm learning to use WebKit. My question: what are the pros and cons for using WebKit.cgi instead of using OneShot.cgi? Thanks. Mico Siahaan --- E-mail : mico at cbn dot net dot id mico at intermatik dot com --- PT Intermatik Kreatif Media www.intermatik.com ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
Re: [Webware-discuss] (no subject)
On April 5, 2002 11:45 am, Tavis Rudd wrote: On April 5, 2002 10:22 am, Ian Bicking wrote: OneShot.cgi is only for debugging when you are doing very active development (and you don't want to restart the AppServer manually all the time). One thing that's been on my pie-in-the-sky list for a while: - a separate monitor process that communicates with the AppServer process about what modules depencies should be monitored. It watches the module files and restarts the AppServer process if any changes are detected. Actually, I have other hopes for the monitor process as well: - scheduled restarts - triggered restarts on any number of user specified conditions - memory and cpu usage profiling/throttling - response time profiling I gotta admit that my interest comes from the cool factor, rather than an actual need on my part, but it would be fun to code. ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
Re: [Webware-discuss] (no subject)
Another aspect of this that I'm interested in: - being able to run scheduled functional tests throughout the lifetime of a webkit process and restart/report if the tests fail. Once the basic monitoring framework is setup it should be very easy to add a little wrapper around Steve Purcell's httpsession.py and PyUnit. On April 5, 2002 12:04 pm, Tavis Rudd wrote: Actually, I have other hopes for the monitor process as well: - scheduled restarts - triggered restarts on any number of user specified conditions - memory and cpu usage profiling/throttling - response time profiling I gotta admit that my interest comes from the cool factor, rather than an actual need on my part, but it would be fun to code. ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
Re: Webware Monitor (Was: Re: [Webware-discuss] (no subject))
On April 5, 2002 11:02 am, Kendall Clark wrote: It's that *kind* of stuff that would help make Webware seem more attractive to the enterprise crowd, including ISPs. Having such a monitoring solution would make selling Webware, as a consultant, against the Java App Server easier, too. Nothing wrong with that. And if I were a colo-host or big ISP, that kind of solution would certainly make me more likely to consider allowing or providing Webware for my customers. One would hope. Webware's great when you have control of your server, but rather difficult to work with otherwise. ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
RE: Webware Monitor (Was: Re: [Webware-discuss] (no subject))
Kendall Clark wrote: tavis == Tavis Rudd [EMAIL PROTECTED] writes: tavis Actually, I have other hopes for the monitor process as well: tavis - scheduled restarts tavis - triggered restarts on any number of user specified tavisconditions tavis - memory and cpu usage profiling/throttling tavis - response time profiling tavis I gotta admit that my interest comes from the cool factor, tavis rather than an actual need on my part, but it would be fun to tavis code. I don't need *all* of that, but since I'm gonna be using Webware to host web apps, for paying customers, on several boxes, across many virtual domains, some of it would be nice. It's that *kind* of stuff that would help make Webware seem more attractive to the enterprise crowd, including ISPs. Having such a monitoring solution would make selling Webware, as a consultant, against the Java App Server easier, too. Nothing wrong with that. And if I were a colo-host or big ISP, that kind of solution would certainly make me more likely to consider allowing or providing Webware for my customers. Good ideas, Tavis. If you work on this, try to modularize the OS-specific parts as much as possible. Windows and Unix will require very different ways of monitoring memory and cpu. And the method for restarting the appserver will be quite different too. But much of the logic should be identical. Perhaps a small class can be written that handles the os-specific parts, and a different class can be swapped in for the Windows version. - Geoff ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
[Webware-discuss] (no subject)
I posted this to another mailing list and thought it might be of interest at webware discuss. Seems to be a nice example of using Webware at least. Randy I have reworked my web site, http://zunzun.com, and would like anyone interested to review it for me. Several major and minor changes: 1. All code is memory-resident and run by a daemon, currently running with 5 threads, from http://webware.sf.net. Normally each time a CGI script is invoked a lot happens on the server side, such as loading a perl or python interpreter, libraries, scripts, etc. and initializing same. This does not happen in my case and the site response is lightning fast for dishing up dynamic content that is generated on the fly. Webware even caches database connections so these are reused rather than re-created. 2. Every web page on the site is dynamically generated thanks to #1 above. Only the home page is static as I cannot redirect my site host to use a cgi script for the home page. This is a *huge* reduction in site maintenence for me! 3. I dropped frames in favor of Cascading Style Sheets (CSS). Frame communication was becoming a lot of programming overhead and using DIVs in CSS is very easy besides looking nice. All DIVs are hidden and only show upon menu select, which works extremely well. The site now has no frames. 4. I added user entry for initial coefficient values. 5. I ensured the Levenberg-Marquardt solver cannot infinite loop on errors. 6. I added more 2D and 3D equations and equation categories. The next change I am now working on is to add an automatic equation finder. This would fit your data set to all functions and show the user a list to choose from, based on fit statistics and the model visualization plots. ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss