I am using jython2.1 and writing jython servlets in tomcat.

I use re module and in my servlet I try to reload servlet using

request.getAttribute("pyservlet").reset() so I do not have to start and stop tomcat to see changes

but every time I got this error

File "C:\jython-2.1\Lib\sre.py", line 57, in search

File "C:\jython-2.1\Lib\sre.py", line 134, in _compile
File "C:\jython-2.1\Lib\sre_compile.py", line 368, in compile
File "C:\jython-2.1\Lib\sre_compile.py", line 352, in _code
File "C:\jython-2.1\Lib\sre_compile.py", line 141, in _compile
ValueError: ('unsupported operand type', 'at')