From: <nik...@va...> - 2001-03-22 09:54:25
|
Date: Wed, 21 Mar 2001 14:22:56 -0600 (CST) From: "Robert W. Bill" <rb...@di...> >>=3D20 >> I've probably described things rather poorly. :) I do want to have = inner =3D and >> proper in the same place. But two servlets (i.e. 2 * 2 files), each runni=3D ng >> in it's own context, didn't seem to work. As if the first, when initializ=3D ed >> by the engine (Tomcat), somehow locks stuff that make Jython unable = to fi=3D nd >> the other servlet. >> It's a bizarre problem (if I for instance remove the first = servlet fr=3D om >> Tomcat initialization, the other is suddenly found). >> I'm too tired to dare try and explain further I'm afraid :); = I'll try=3D to >> produce a better analysis and description later (I don't even have access=3D to >> the machine right here.) >>=3D20 >> Hopefully; I haven't missed something obvious (since it's such a = strange >> problem). > >Ahhh, I did misunderstand before- ooops. Well, it may not help, >but I've witnessed jython servlets running in many contexts. >What is likely different is that these contexts were all=3D20 >self-contained. This means _each_ WEB-INF/lib folder has it's own >jython.jar (maybe that's why I haven't seen similar troubles?) It >seems reasonable to give this a try. For jythonc compiled files >it creates some troubles with python.home and finding the Lib >directory. org.python.util.PyServlet can help here because it >allows you to use web.xml to set properties, or you could try >freezing all the required modules into a jar also in each >WEB-INF/lib. (I never realized how much duplication this sounds >like until I tried describing it.) Ah, thank you; I will try this. If this is the problem, is this = something which might be fixed in upcoming versions of Jython, or is it an undefeatable effect?=A0It seems a little constraining not being able to = treat jython-originiated servlet-classes the same as regular serlvets. (Or am = I misunderstanding something?) Of course, I guess the procedings you advice here are probably how most things should be done in a "proper" setting. Thanks! / Niklas |