Re: [Webware-discuss] AssertionError in ServletFactory?

2003-06-30 Thread Randall Randall
On Wednesday, June 25, 2003, at 04:38 PM, Randall Randall wrote:

Hi, all.

I'm getting a weird traceback from one of my servlets:
/Users/randall/Devel/Work/shadowcash/context/editprofile.py
Traceback (most recent call last):
  File /opt/Webware/WebKit/Application.py, line 415, in 
dispatchRequest
self.handleGoodURL(transaction)
  File /opt/Webware/WebKit/Application.py, line 568, in handleGoodURL
self.createServletInTransaction(transaction)
  File /opt/Webware/WebKit/Application.py, line 1061, in 
createServletInTransaction
inst = self.getServlet(transaction, path)
  File /opt/Webware/WebKit/Application.py, line 995, in getServlet
inst = factory.servletForTransaction(transaction)
  File ./WebKit/ServletFactory.py, line 199, in servletForTransaction
AssertionError
[snip]
I found a similar problem had by Edmund Lian on the Cheetah list,
but the cause there (class name not being the same as the filename)
doesn't seem to apply.
Anyone know why this could be happening?
Well, evidently no one did.

So, having finally got to the deploy on Linux stage, I find
that this error doesn't happen on Linux, but only Mac OS X (my
development platform), which makes me very happy. :)
So, if anyone needs additional information and wants to try to
track this down in Webware 0.8, I'd be happy to give you more
info, but don't know what would be useful.  Eventually I'll try
to do that myself, but it may be some time before I'm able to
take the time.
--
Randall Randall [EMAIL PROTECTED]
Not only can money buy happiness,
 it isn't even particularly expensive any more.  -- Spike Jones


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss


Re: [Webware-discuss] AssertionError in ServletFactory?

2003-06-30 Thread Randall Randall
On Monday, June 30, 2003, at 09:49 PM, Ian Bicking wrote:
Sorry, I thought someone else might pipe up about it.
Oh, no problem.  It turned out not to be a really serious
problem, but it is annoying. :)
Anyway, this was at one point commonly caused by path problems
(sys.path), where a module can be imported more than once.  Imagine a
path like:
Hm.  The sys.path as reported by the traceback page looks normal; no
duplicates.
Python doesn't recognize that these are the same module, so there are
two classes going by the same name.  You might look at the class's
__module__ attribute to find out more.  It might depend on the way you
are running the AppServer, environmental variables, etc., which would
explain why it works in one environment and not another.
Hm.  Okay.  I'll instrument things a bit and see what happens. :)

Thanks!

--
Randall Randall [EMAIL PROTECTED]
Not only can money buy happiness,
 it isn't even particularly expensive any more.  -- Spike Jones


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss


RE: [Webware-discuss] still getting 404's

2003-06-30 Thread jose
Still trying to figure out why you would be having this problem.  Do any
of the PSP's work?  For example do the example PSP's work?  

Jose

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian
Sent: Thursday, June 26, 2003 1:56 PM
To: [EMAIL PROTECTED]
Subject: RE: [Webware-discuss] still getting 404's


What exactly is a context? There is an __init__.py file in the MyContext

directory.

Here is all the info displayed when i run the appserver. And just to
clear 
up the directory structure a bit:

~merk/public_html is the directory i'm trying to work out of now. Apache

sees it fine as the index.html page loads up correctly. I have an 
index.html and a Hello.psp page in public_html, along with all the extra

directories and files the MakeAppWorking directory script created.

ian

WebKit AppServer 0.8
part of Webware for Python
Copyright 1999-2001 by Chuck Esterbrook. All Rights Reserved. WebKit and
Webware are open source. Please visit:  http://webware.sourceforge.net

Process id is 7749
Date/time is Thu Jun 26 13:57:19 2003

AutoReload = 0
AutoReloadPollInterval = 1
CheckInterval  = 100
Host   = 127.0.0.1
MaxServerThreads   = 20
MinServerThreads   = 5
PlugInDirs = ['/disk/u/merk/work/Webware']
PlugIns= []
Port   = 8086
PrintConfigAtStartUp   = 1
StartServerThreads = 10
Verbose= 1

ActivityLogColumns  = ['request.remoteAddress', 
'request.method', 'r
equest.uri', 'response.size', 'servlet.name', 'request.timeStamp', 
'transaction.
duration', 'transaction.errorOccurred']
ActivityLogFilename =
/disk/u/merk/public_html/Logs/Activity.csv
AdminPassword   = X
CacheServletClasses = 1
CacheServletInstances   = 1
ClearPSPCacheOnStart= 1
Contexts= {'Admin': 
'/disk/u/merk/work/Webware/WebKit/Ad
min', 'default': 'MyContext', 'Testing': 
'/disk/u/merk/work/Webware/WebKit/Testi
ng', 'Examples': '/disk/u/merk/work/Webware/WebKit/Examples',
'MyContext': 
'MyCo
ntext'}
Debug   = {'Sessions': 0}
DirectoryFile   = ['index', 'Index', 'main', 'Main']
DynamicSessionTimeout   = 15
EmailErrorReportAsAttachment= 0
EmailErrors = 0
ErrorEmailHeaders   = {'To': ['[EMAIL PROTECTED]'], 'Reply-to': 
'[EMAIL PROTECTED]', 'Fr
om': '[EMAIL PROTECTED]', 'Content-type': 'text/html', 'Subject': '[WebKit
Error]'}
ErrorEmailServer= mail.-.com
ErrorLogFilename=
/disk/u/merk/public_html/Logs/Errors.csv
ErrorMessagesDir= /disk/u/merk/public_html/ErrorMsgs
ExtensionCascadeOrder   = ['.py', '.psp', '.html']
ExtensionsToIgnore  = ['.pyc', '.pyo', '.py~', '.psp~', 
'.html~', '.
bak', '.tmpl']
ExtensionsToServe   = []
ExtraPathInfo   = 0
FancyTracebackContext   = 5
FilesToHide = ['.*', '*~', '*.bak', '*.tmpl', 
'*.config', '_
_init__.*', '*.pyc', '*.pyo']
FilesToServe= []
IgnoreInvalidSession= 1
IncludeFancyTraceback   = 0
LogActivity = 0
MaxDynamicMemorySessions= 1
MaxValueLengthInExceptionReport = 500
OldStyleActions = 0
PrintConfigAtStartUp= 1
RPCExceptionReturn  = traceback
ReportRPCExceptionsInWebKit = 1
SaveErrorMessages   = 1
SessionPrefix   = None
SessionStore= Dynamic
SessionTimeout  = 60
ShowDebugInfoOnErrors   = 1
UnknownFileTypes= {'CheckDate': 1, 'Technique':
'serveContent',
'CacheContent': 1, 'ReuseServlets': 1}
UseAutomaticPathSessions= 0
UseCascadingExtensions  = 1
UserErrorMessage= The site is having technical
difficulties 
with
  this page. An error has been logged, and the problem will be fixed as 
soon as p
ossible. Sorry!

Loading context: Admin at /disk/u/merk/work/Webware/WebKit/Admin
Loading context: Testing at /disk/u/merk/work/Webware/WebKit/Testing
Loading context: Examples at /disk/u/merk/work/Webware/WebKit/Examples
Loading context: MyContext at /disk/u/merk/public_html/MyContext

Current directory: /disk/u/merk/public_html
Session Sweeper started

Plug-ins list: /disk/u/merk/work/Webware/COMKit, 
/disk/u/merk/work/Webware/Middl
eKit, /disk/u/merk/work/Webware/MiscUtils,
/disk/u/merk/work/Webware/PSP, 
/disk/
u/merk/work/Webware/TaskKit, /disk/u/merk/work/Webware/UserKit, 
/disk/u/merk/wor
k/Webware/WebUtils
Loading plug-in: COMKit at /disk/u/merk/work/Webware/COMKit
 Plug-in /disk/u/merk/work/Webware/COMKit cannot be loaded because:
 Required op sys is ['nt'], but actual op sys is posix. Loading
plug-in: MiddleKit at /disk/u/merk/work/Webware/MiddleKit
Loading context: MKBrowser at
/disk/u/merk/work/Webware/MiddleKit/WebBrowser