misleading error from filter when jsp not found - which class to enable log

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

misleading error from filter when jsp not found - which class to enable log

vernekap
All my xforms jsps are under folder xforms-jsp and web.xml contains filter OrbeonXformsFilter on xforms-jsp/*.

Whenever there is request for a nonexistent jsp, I get following error in the browser:

<?xml version="1.0" encoding="utf-8" ?>
  <null xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" /> 

I tried to look at log files enabling logging on OrbeonXformsFilter , but could not locate information such as jsp does not exist.

Which is the orbeon class I should enable logging on?

regards
Pralhad
Reply | Threaded
Open this post in threaded view
|

Re: misleading error from filter when jsp not found - which class to enable log

Alessandro Vernet
Administrator
Pralhad,

vernekap wrote
All my xforms jsps are under folder xforms-jsp and web.xml contains filter OrbeonXformsFilter on xforms-jsp/*.

Whenever there is request for a nonexistent jsp, I get following error in the browser:

<?xml version="1.0" encoding="utf-8" ?>
  <null xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" /> 
I am not getting the same result (I get an exception), but it is wrong in all cases, and a 404 should be returned. The processing shouldn't be handled to the XForms engine when the JSP/servlet returns an error. I created a bug this:

http://forge.ow2.org/tracker/index.php?func=detail&aid=313784&group_id=168&atid=350207

BTW, most likely you can fix this by just changing the code of the filter, so that shouldn't be too hard to do if you want to give it a shot.

Alex