Announcement Announcement Module
Collapse
No announcement yet.
some notes: got JSF (myfaces,tomahawk,orchestra) running on s2ap Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • some notes: got JSF (myfaces,tomahawk,orchestra) running on s2ap

    thinkz to consider if you want to run this jsf (myfaces,tomahawk,orchestra,trinidad) stack on s2ap:

    1. must checkout tomahawk,orchestra,trinidad maven projects and rebuild them all with the bnd plugin included (<_nouses>)
    1.1. dont know but tomahawk worked only without the dojo package..hm?
    ( <Export-Package>!org.apache.myfaces.custom.dojo.*,*</Export-Package>)
    2. must add tomahawk (snapshot) as Fragment-Host: com.springsource.org.apache.myfaces (contains split packages)
    3. /org/apache/myfaces/webapp/filter/ExtensionsFilter does not work out of the box because it depends on the init method to be called = s2 should provide a way to tell the autoconfigured DelegatingFilterProxy to call the Filter#init method (via MANIFEST.MF)
    4. org/apache/myfaces/shared/webapp/webxml/WebXml#getFacesExtensionsFilterMappings does not consider DelegatingFilterProxy as a valid ExtensionFilter
    5. missing javax.faces (CNFE for FacesException) import in com.springsource.org.apache.myfaces-1.2.2.jar bundle (15.5.2008..think they have patched this already)
    6. dont waste your time getting jsf 1.1 to work on s2ap (spring bundles nailed down jsf to provider="myfaces";version="[1.2.2, 2.0.0)")
    7. beware of the split packages in trinidad core and api (-> Fragment-Host)
    8. because s2ap (pre 1.0.4beta) has no possibility to configure ServletContextListeners via manifest so i have provided them via a tld file (listener element)

    maybe this helps a little bit

    michael clay
    http://salty.soup.io/

  • #2
    some notes: got JSF (myfaces,tomahawk,orchestra) running on s2ap

    Hi Michael,

    > 3. /org/apache/myfaces/webapp/filter/ExtensionsFilter does not work
    > out of the box because it depends on the init method to be called = s2
    > should provide a way to tell the autoconfigured DelegatingFilterProxy to
    > call the Filter#init method (via MANIFEST.MF)
    > 4. org/apache/myfaces/shared/webapp/webxml/WebXml#getFacesExtensionsFilterMappings
    > does not consider DelegatingFilterProxy as a valid ExtensionFilter

    S2AP beta5 introduces support for web.xml fragments. Basically, your web module can now provide a /WEB-INF/web.xml file with all of your custom configuration, and the Platform will augment the existing web.xml with elements generated from web manifest headers.

    So, for you example, you'd want to configure your filter directly in web.xml instead of via the web manifest headers. Please try out the beta5 release and let us know if that solves your issues.

    > 8. because s2ap (pre 1.0.4beta) has no possibility to configure ServletContextListeners
    > via manifest so i have provided them via a tld file (listener element)

    Actually, beginning with beta4 the S2AP supports a Web-ServletContextListeners manifest header which, as the name implies, allows you to configure ServletContextListeners in a web module's manifest.

    Regards,

    Sam

    Comment

    Working...
    X