I did some research of Application.py code and I found the solution.
There is a small problem in resolveInternalRelativePath() function
which works only with relative paths like 'mypath/myservlet'.
It does NOT work with absolute paths: /mycontext/mypath/myservlet'
nor full URI: http://localhost/WK/mycontext/mypath/myservlet
The solution is to add a small line of code.
def resolveInternalRelativePath(self, trans, url, context=None):
if context is None: # delete it
context = req._contextName # delete it
path = '/%s%s' % (context, url) # delete it
path = '%s' % (url) # ADD this line
Now, I can execute http://localhost/WK/MyContext/first/fake1/fake2.
This servlet can call the another without any problem. It is done
using .callMethodOfServlet with '/MyContext/servlets/second' as a path
(the path should include context name).
I have no acces to CVS tree. Could anyone fix it?
Get latest updates about Open Source Projects, Conferences and News.