After we, indeed you, solved the double action's method invocation
problem, I post a very similar problem:

all listener defined in my application (the tiles listener and a
custom listener) although correctly defined in my web.xml, are viewed
twice by the web container during the application startup.



This is from my Tomcat log, printed during the deploy of the application:

[...]
19-set-2008 18.50.39 org.apache.catalina.core.StandardContext
addApplicationListener
INFO: The listener "org.apache.struts2.tiles.StrutsTilesListener" is
already configured for this context. The duplicate definition has been
ignored.
19-set-2008 18.50.39 org.apache.catalina.core.StandardContext
addApplicationListener
INFO: The listener "org.almayer.web.listener.AlmayerListener" is
already configured for this context. The duplicate definition has been
ignored.
[...]

This is my simple web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>

    <display-name>AlmayerWeb-10.1</display-name>

    <context-param>
        <param-name>tilesDefinitions</param-name>
        <param-value>/WEB-INF/tiles.xml</param-value>
    </context-param>

    <filter>
        <filter-name>struts-cleanup</filter-name>
        
<filter-class>org.apache.struts2.dispatcher.ActionContextCleanUp</filter-class>
    </filter>

    <filter>
        <filter-name>struts</filter-name>
        
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
        <init-param>
                <param-name>actionPackages</param-name>
                <param-value>org.almayer.web.action</param-value>
        </init-param>
    </filter>

    <filter-mapping>
        <filter-name>struts-cleanup</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

    <filter-mapping>
        <filter-name>struts</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

    <listener>
        
<listener-class>org.apache.struts2.tiles.StrutsTilesListener</listener-class>
    </listener>

    <listener>
        <description>ServletContextListener, HttpSessionListener</description>
        
<listener-class>org.almayer.web.listener.AlmayerListener</listener-class>
    </listener>

    <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>

</web-app>



Any ideas?

Thank you in advance, guys.

Gianluca

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to