[XDoclet-JIRA] Created: (XDT-1495) Duplicate listener declaration (in web.xml and .tld)

[email protected]
Newsgroups gmane.comp.java.xdoclet.devel
Message-ID <[email protected]>
Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1495

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-1495
    Summary: Duplicate listener declaration (in web.xml and .tld)
       Type: Bug

     Status: Open
   Priority: Major

 Original Estimate: 1 hour
 Time Spent: Unknown
  Remaining: 1 hour

    Project: XDoclet
 Components: 
             Web Module
   Versions:
             1.2.3

   Assignee: xdoclet-devel (Use for new issues)
   Reporter: Andrey Grebnev

    Created: Sat, 6 Aug 2005 2:25 AM
    Updated: Sat, 6 Aug 2005 2:25 AM
Environment: Windows XP, JDK1.4.2
WebLogic 9 or Websphere 6

Description:
In file taglib_tld.xdt we have declaration

  <XDtClass:forAllClasses type="javax.servlet.http.HttpSessionActivationListener,javax.servlet.http.HttpSessionAttributeListener,javax.servlet.http.HttpSessionBindingListener,javax.servlet.http.HttpSessionListener,javax.servlet.ServletContextAttributeListener,javax.servlet.ServletContextListener" abstract="false">
   <listener>
      <listener-class><XDtClass:fullClassName/></listener-class>
   </listener>
  </XDtClass:forAllClasses>

It means if I have listener as result I will have listener definition both in web.xml file and in my .tld file. It will work correctly for Tomcat and Resin, but it will not work correctly for Weblogic or Websphere. Latter will initialize the same listener two times.

I think we should have some marker which will determine where we should have listener declaration (in web.xml or in .tld).


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.