[ 
http://issues.apache.org/jira/browse/MYFACES-237?page=comments#action_12313250 
] 

Tomasz Bandura commented on MYFACES-237:
----------------------------------------

All steps to  get this error
1. I change configuration of  web.xml to catching all errors by defined 
servlet(i need it to make  central error notification)
errorServlet is defined in web.xml too.

   <error-page>
        <error-code>403</error-code>
        <location>/errorServlet</location>
    </error-page>
    <error-page>
        <error-code>404</error-code>
        <location>/errorServlet</location>
    </error-page>
... etc ...

2. and catch errors in ErrorServlet (org.servlet.ErrorServlet) in doGet:

public void doGet(HttpServletRequest request, HttpServletResponse response)
                        throws ServletException, java.io.IOException {
...
                Enumeration en = request.getAttributeNames();
                        while (en.hasMoreElements()) {
                                String name = (String) en.nextElement();
                                logger.debug(name + " -> " + 
request.getAttribute(name));
                        }
...
}

and when i  use page with x:inputDate  , i receive:



2005-06-10 10:55:40,048 DEBUG org.servlet.ErrorServlet - 
javax.servlet.forward.request_uri -> /webapp/jscalendar/jscalendar-DB/drop1.gif
2005-06-10 10:55:40,048 DEBUG org.servlet.ErrorServlet - 
javax.servlet.forward.context_path -> /webapp
2005-06-10 10:55:40,048 DEBUG org.servlet.ErrorServlet - 
javax.servlet.forward.servlet_path -> /jscalendar/jscalendar-DB/drop1.gif
2005-06-10 10:55:40,048 DEBUG org.servlet.ErrorServlet - 
javax.servlet.forward.path_info -> /errorServlet
2005-06-10 10:55:40,048 DEBUG org.servlet.ErrorServlet - 
javax.servlet.error.message -> /webapp/jscalendar/jscalendar-DB/drop1.gif
2005-06-10 10:55:40,048 DEBUG org.servlet.ErrorServlet - 
javax.servlet.forward.request_uri -> /webapp/jscalendar/jscalendar-DB/drop2.gif
2005-06-10 10:55:40,063 DEBUG org.servlet.ErrorServlet - 
javax.servlet.forward.context_path -> /webapp
2005-06-10 10:55:40,063 DEBUG org.servlet.ErrorServlet - 
javax.servlet.forward.servlet_path -> /jscalendar/jscalendar-DB/drop2.gif
2005-06-10 10:55:40,063 DEBUG org.servlet.ErrorServlet - 
javax.servlet.forward.path_info -> /errorServlet
2005-06-10 10:55:40,063 DEBUG org.servlet.ErrorServlet - 
javax.servlet.error.servlet_name -> default
2005-06-10 10:55:40,063 DEBUG org.servlet.ErrorServlet - 
javax.servlet.error.message -> /webapp/jscalendar/jscalendar-DB/drop2.gif
2005-06-10 10:55:40,063 DEBUG org.servlet.ErrorServlet - 
javax.servlet.error.request_uri -> /webapp/jscalendar/jscalendar-DB/drop2.gif
2005-06-10 10:55:40,063 DEBUG org.servlet.ErrorServlet - 
javax.servlet.error.status_code -> 404
2005-06-10 10:55:40,095 DEBUG org.servlet.ErrorServlet - 
javax.servlet.error.request_uri -> /webapp/jscalendar/jscalendar-DB/drop1.gif
2005-06-10 10:55:40,110 DEBUG org.servlet.ErrorServlet - 
javax.servlet.error.status_code -> 404
2005-06-10 10:55:40,110 DEBUG org.servlet.ErrorServlet - 
javax.servlet.error.servlet_name -> default
2005-06-10 10:55:40,173 DEBUG org.servlet.ErrorServlet - 
javax.servlet.forward.request_uri -> /webapp/jscalendar/jscalendar-DB/left1.gif
2005-06-10 10:55:40,204 DEBUG org.servlet.ErrorServlet - 
javax.servlet.forward.request_uri -> /webapp/jscalendar/jscalendar-DB/left2.gif
2005-06-10 10:55:40,298 DEBUG org.servlet.ErrorServlet - 
javax.servlet.forward.context_path -> /webapp
2005-06-10 10:55:40,298 DEBUG org.servlet.ErrorServlet - 
javax.servlet.forward.context_path -> /webapp
2005-06-10 10:55:40,298 DEBUG org.servlet.ErrorServlet - 
javax.servlet.forward.servlet_path -> /jscalendar/jscalendar-DB/left1.gif
2005-06-10 10:55:40,298 DEBUG org.servlet.ErrorServlet - 
javax.servlet.forward.servlet_path -> /jscalendar/jscalendar-DB/left2.gif
2005-06-10 10:55:40,298 DEBUG org.servlet.ErrorServlet - 
javax.servlet.forward.path_info -> /errorServlet
2005-06-10 10:55:40,298 DEBUG org.servlet.ErrorServlet - 
javax.servlet.forward.path_info -> /errorServlet
2005-06-10 10:55:40,298 DEBUG org.servlet.ErrorServlet - 
javax.servlet.error.message -> /webapp/jscalendar/jscalendar-DB/left1.gif
2005-06-10 10:55:40,298 DEBUG org.servlet.ErrorServlet - 
javax.servlet.error.servlet_name -> default
2005-06-10 10:55:40,376 DEBUG org.servlet.ErrorServlet - 
javax.servlet.error.request_uri -> /webapp/jscalendar/jscalendar-DB/left1.gif
2005-06-10 10:55:40,376 DEBUG org.servlet.ErrorServlet - 
javax.servlet.error.message -> /webapp/jscalendar/jscalendar-DB/left2.gif
2005-06-10 10:55:40,376 DEBUG org.servlet.ErrorServlet - 
javax.servlet.error.status_code -> 404
2005-06-10 10:55:40,392 DEBUG org.servlet.ErrorServlet - 
javax.servlet.error.request_uri -> /webapp/jscalendar/jscalendar-DB/left2.gif
2005-06-10 10:55:40,392 DEBUG org.servlet.ErrorServlet - 
javax.servlet.error.servlet_name -> default
2005-06-10 10:55:40,392 DEBUG org.servlet.ErrorServlet - 
javax.servlet.error.status_code -> 404
2005-06-10 10:55:40,501 DEBUG org.servlet.ErrorServlet - 
javax.servlet.forward.request_uri -> /webapp/jscalendar/jscalendar-DB/right1.gif
2005-06-10 10:55:40,501 DEBUG org.servlet.ErrorServlet - 
javax.servlet.forward.context_path -> /webapp
2005-06-10 10:55:40,501 DEBUG org.servlet.ErrorServlet - 
javax.servlet.forward.servlet_path -> /jscalendar/jscalendar-DB/right1.gif
2005-06-10 10:55:40,501 DEBUG org.servlet.ErrorServlet - 
javax.servlet.forward.path_info -> /errorServlet
2005-06-10 10:55:40,501 DEBUG org.servlet.ErrorServlet - 
javax.servlet.error.servlet_name -> default
2005-06-10 10:55:40,501 DEBUG org.servlet.ErrorServlet - 
javax.servlet.error.message -> /webapp/jscalendar/jscalendar-DB/right1.gif
2005-06-10 10:55:40,501 DEBUG org.servlet.ErrorServlet - 
javax.servlet.error.request_uri -> /webapp/jscalendar/jscalendar-DB/right1.gif
2005-06-10 10:55:40,501 DEBUG org.servlet.ErrorServlet - 
javax.servlet.error.status_code -> 404
2005-06-10 10:55:40,532 DEBUG org.servlet.ErrorServlet - 
javax.servlet.forward.request_uri -> /webapp/jscalendar/jscalendar-DB/right2.gif
2005-06-10 10:55:40,548 DEBUG org.servlet.ErrorServlet - 
javax.servlet.forward.context_path -> /webapp
2005-06-10 10:55:40,563 DEBUG org.servlet.ErrorServlet - 
javax.servlet.forward.servlet_path -> /jscalendar/jscalendar-DB/right2.gif
2005-06-10 10:55:40,579 DEBUG org.servlet.ErrorServlet - 
javax.servlet.forward.path_info -> /errorServlet
2005-06-10 10:55:40,579 DEBUG org.servlet.ErrorServlet - 
javax.servlet.error.servlet_name -> default
2005-06-10 10:55:40,595 DEBUG org.servlet.ErrorServlet - 
javax.servlet.error.message -> /webapp/jscalendar/jscalendar-DB/right2.gif
2005-06-10 10:55:40,595 DEBUG org.servlet.ErrorServlet - 
javax.servlet.error.request_uri -> /webapp/jscalendar/jscalendar-DB/right2.gif
2005-06-10 10:55:40,610 DEBUG org.servlet.ErrorServlet - 
javax.servlet.error.status_code -> 404

that's all


regards

tomasz





> x:inputDate and popupCalendar problem
> -------------------------------------
>
>          Key: MYFACES-237
>          URL: http://issues.apache.org/jira/browse/MYFACES-237
>      Project: MyFaces
>         Type: Bug
>     Versions: 1.0.9 beta
>  Environment: win xp , jsdk 1.4.2_05
>     Reporter: Tomasz Bandura
>     Assignee: Martin Marinschek
>     Priority: Trivial

>
> When I use x:inputDate it looks good, popup works, calendar looks fine
>  but after popup it throws errors ( javax.servlet.error.status_code : 404 ) 
> 'javax.servlet.error.request_uri', for :
> <appname>/jscalendar/jscalendar-DB/drop2.gif
> <appname>/jscalendar/jscalendar-DB/drop1.gif
> <appname>/jscalendar/jscalendar-DB/left1.gif
> <appname>/jscalendar/jscalendar-DB/left2.gif
> <appname>/jscalendar/jscalendar-DB/right1.gif
> <appname>/jscalendar/jscalendar-DB/right2.gif
> I don't mind it but problem occures when i try to catch error 404 
> on page header there are :
> <link rel="stylesheet" 
> href="/<appname>/faces/myFacesExtensionResource/calendar.HtmlCalendarRenderer/1114410789000/WH/theme.css"
>  type="text/css"/>
> <link rel="stylesheet" 
> href="/<appname>/faces/myFacesExtensionResource/calendar.HtmlCalendarRenderer/1114410789000/DB/theme.css"
>  type="text/css"/>
> <script 
> src="/<appname>/faces/myFacesExtensionResource/calendar.HtmlCalendarRenderer/1114410789000/popcalendar.js"
>  type="text/javascript"></script>
> regards
> tomasz

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to