You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Martin Marinschek (JIRA)" <my...@incubator.apache.org> on 2005/10/04 19:22:48 UTC
[jira] Commented: (MYFACES-630) StartupServletContextListener should ignore missing web.xml
[ http://issues.apache.org/jira/browse/MYFACES-630?page=comments#action_12331288 ]
Martin Marinschek commented on MYFACES-630:
-------------------------------------------
Can you post the stack trace?
thanks,
Martin
> StartupServletContextListener should ignore missing web.xml
> -----------------------------------------------------------
>
> Key: MYFACES-630
> URL: http://issues.apache.org/jira/browse/MYFACES-630
> Project: MyFaces
> Type: Bug
> Components: Implementation
> Versions: 1.1.0
> Environment: any proper J2EE container
> Reporter: Thomas Timbul
> Priority: Critical
>
> When myfaces is placed on the container classpath, the Startup Listener is called for each web application.
> The listener fails (crashes and does not recover) with a NPE if the application does not have a web.xml file, although this is a perfectly legal J2EE configuration (e.g. html only web-app).
> Correct behaviour would be to ignore (skip) a context if no web.xml file can be found.
> Although I have no patch, it should be easy to fix by adding a simple check for whether the file is found or not before passing it to the xml parser.
--
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