Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Web Personality Module: no more web.xml?

  1. #11
    Join Date
    Jan 2006
    Location
    Zürich, Switzerland
    Posts
    423

    Default Web Personality Module: no more web.xml?

    Hi Michael,

    > can anybody pls describe how to configure HttpSessionAttributeListener,
    > HttpSessionActivationListener and ServletContextListener in MANIFEST.MF

    There's currently no support for configuring Servlet container listeners via manifest headers. So I've created a JIRA for that here:

    https://issuetracker.springsource.com/browse/PLATFORM-39

    Good catch!

    Thanks,

    Sam

  2. #12
    Join Date
    Oct 2008
    Posts
    0

    Default Web Personality Module: no more web.xml?

    thanks sam,

    what if i define them in web.xml ...do they get overridden..or are they simply ignored?

    thx

  3. #13
    Join Date
    Jan 2006
    Location
    Zürich, Switzerland
    Posts
    423

    Default Web Personality Module: no more web.xml?

    Hi Michael,

    > what if i define them in web.xml ...do they get overridden..
    > or are they simply ignored?

    If you are creating a web module, any existing web.xml will currently be overwritten. Thus, for beta1 and beta2, the only option for configuring web.xml is via the Web-* manifest headers.

    Note, however, that we are looking into providing support for web.xml "fragments" which would allow you to provide a partially complete web.xml. Such a fragment would then be augmented with elements that are auto-generated from the Web-* manifest headers.

    We hope to make the fragment support available in the coming weeks. So be on the lookout!

    - Sam

    p.s. As an aside, if you consult the newly released Form Tags sample application, you'll see that the Platform also provides support for Standard, Shared Libraries, and Shared Services WAR deployments. Thus you might find one of those a viable interim solution for configuring ServletContextListeners.

  4. #14
    Join Date
    Oct 2008
    Posts
    0

    Default Web Personality Module: no more web.xml?

    thank you,

    as an interim solution i will try to configure the listeners via an 'internal' tld which gets picked up.

    thx
    m

  5. #15
    Join Date
    Jan 2006
    Location
    Zürich, Switzerland
    Posts
    423

    Default Web Personality Module: no more web.xml?

    Update: in case you missed it, 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.

    - Sam

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •