You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org> on 2010/02/28 12:42:05 UTC

[jira] Commented: (MYFACES-2579) Support the dynamic adding of servlets and servlet-mappings on Servlet API 3.0 to make web.xml entries for Faces Servlet not mandatory

    [ https://issues.apache.org/jira/browse/MYFACES-2579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839413#action_12839413 ] 

Jakob Korherr commented on MYFACES-2579:
----------------------------------------

It seems if we want to solve this one, we have to create another impl (sub-)module (e.g. impl-servlet30) which has other maven dependencies (to Servlet API 3.0 instead of 2.5) and include the build of this (sub-)module in the build of the "normal" impl module. In this way the servlet 2.5 conform classes on myfaces-impl would not be able to access the servlet 3.0 conform classes, but they would be there in the build.

Then we could use the new services mechanism of Java EE 6 to get the EE6-container to call our initializer via a service definition of javax.servlet.ServletContainerInitializer.

Another way (without creating another submodule) would be to set the version of the Servlet API dependency on myfaces-impl to 3.0, but to add another compile task with other dependencies (to Servlet 2.5) and to exclude the Servlet 3.0-conform classes in this task. This way we would have Servlet API 3.0 available in the whole myfaces-impl module, but the build will fail if we use it in other than the pre-specified classes (like e.g. an implementation of javax.servlet.ServletContainerInitializer). However I'm not sure if this would really work...

Opinions and suggestions are welcome!

> Support the dynamic adding of servlets and servlet-mappings on Servlet API 3.0 to make web.xml entries for Faces Servlet not mandatory
> --------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MYFACES-2579
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2579
>             Project: MyFaces Core
>          Issue Type: New Feature
>    Affects Versions: 2.0.0-beta-3
>         Environment: Environment with Servlet API 3.0 available.
>            Reporter: Jakob Korherr
>
> This would be a really cool new feature, because we could use the new Servlet API to add the entries for Faces Servlet dynamically at startup and so the user does not have to configure it anymore in web.xml.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.