Matt Feifarek wrote:
> Contexts['default'] = Contexts['sp']
>
> Assuming that Contexts was a dictionary, I assigned the value of 'default'
> to the value of 'sp'. In the example config from a clean workdir, it looks
> more like this:
>
> Contexts['default'] = 'sp'
Hm, I tested this and looked at the code: Both forms of specifying the
default context are allowed and equivalent. The problem must have been
something different.
If you find it, or if you find any other gotchas with 0.9.4, let me
know, since I want to publish a new release soon.
-- Chris

On 10/26/07, Christoph Zwerschke <cito@...> wrote:
>
> One thing you should do is create a new working directory with
> makeAppWorDir. If you start an empty working directory, you should get
> the Example and Test contexts. Does this work? Then copy your servlets
> to that new working directory and change the config appropriately.
>
Thanks, Christoph.
This does indeed work.
So there must be some other corruption of the config files. And sure enough
I found the offensive bit. In my contexts area in Application.config, I had
something like this:
Contexts = {}
approot = '/data/apps'
Contexts['pp'] = approot + 'pp/us/servlets'
Contexts['sp'] = approot + 'sp/servlets'
Contexts['default'] = Contexts['sp']
Assuming that Contexts was a dictionary, I assigned the value of 'default'
to the value of 'sp'. In the example config from a clean workdir, it looks
more like this:
Contexts['default'] = 'sp'
SO, I guess that 'default' has some special logic behind it to look up
another key. That's a new one for me.
Thanks for your troubleshooting help!

Hi Matt,
the latest mod_webkit should also work with older Webware versions.
But anyway, you should update and get 0.9.4 running with Apache.
One thing you should do is create a new working directory with
makeAppWorDir. If you start an empty working directory, you should get
the Example and Test contexts. Does this work? Then copy your servlets
to that new working directory and change the config appropriately.
> I see this in the 0.9.4 release notes:
> "Assume root path as the servlet path if the URL has been completely
> rewritten by the web server"
>
> That looks possibly related to me, and though I'm not using mod_rewrite at
> all, might that be implicated somehow?
No, I don't think it has anything to do with your problem.
-- Chris

On 10/26/07, Matt Feifarek <matt.feifarek@...> wrote:
>
> I'm finding some weird url-mapping errors... but I'm trying to use an old
> version of Webware with the newer version of mod_webkit... I'm using v
> 0.9.0. I'm reluctant to try and upgrade Webware, as my apps are pretty old
> and may break.
>
I ended up upgrading to the current version 0.9.4 and I still can't seem to
hit any servlets via Apache. I've been using Webkit for years, and this one
has me stumped.
I've got mod_rewrite turned off, and here's my declaration in apache:
<Location /wk>
WKServer localhost 8086
SetHandler webkit-handler
</Location>
Sure enough, http://localhost gives me standard apache hits and /wk gives me
webkit 404 page (so I am getting to webkit) but I can't hit ANY of my
contexts or the servlets within them.
I see that the __init__.py is compiles when the appserver starts (so the
directories declared in my Application.config are valid) but I can't see
main.py or any other servlets in the same directory as the __init__.py. Note
also that I CAN see the contexts and servlets when using the built-in httpd.
I have a just-built set of AppServer.config and Application.config with only
the contexts changed, so there's no old Webware version cruft that could be
causing this.
I see this in the 0.9.4 release notes:
"Assume root path as the servlet path if the URL has been completely
rewritten by the web server"
That looks possibly related to me, and though I'm not using mod_rewrite at
all, might that be implicated somehow?
Thanks!

On 10/25/07, Christoph Zwerschke <cito@...> wrote:
>
> mod_webkit definitly works on 64bit boxes. Seems you're using a very old
> version that doesn't cope with Apache 2.2.
>
You're right!
Thanks.
I'm finding some weird url-mapping errors... but I'm trying to use an old
version of Webware with the newer version of mod_webkit... I'm using v 0.9.0.
I'm reluctant to try and upgrade Webware, as my apps are pretty old and may
break.
Can I expect similar apache <- mod_webkit -> webkit behavior with 0.9.4 as
0.9.0 or should I expect incompatibilities?
Thanks for helping out.