Hmm, we have another open issue about tiles failure with 2.0.1. The problem seems to be with the version of tiles that's being used. Unfortunately, since 2.0.1 was rolled with a snapshot, it's hard to figure out exactly what it should be. . .

Do you have a stack trace? there should be one in catalina.out. Can you send it along? thanks.

All of this should be fixed as soon as 2.0.2 comes out since we've got a versioned snapshot we rely on now.


Sorry for the frustration,

David

Jared Blitzstein wrote:
When I add:

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

to my web.xml, all my actions are 404's now. If I comment that line out, my actions go back to working. I set break points in the actions to make sure they're just not finding JSP's, but it's not hitting the actions. My config is below, any help would be appreciated.

struts jars:
struts2-api-2.0.1.jar
struts2-core-2.0.1.jar
struts2-tiles-plugin-2.0.1.jar

web.xml:

<display-name>My Test App</display-name>
    <filter>
        <filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>struts2</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
    <listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>
    <listener>
<listener-class>org.apache.struts2.tiles.StrutsTilesListener</listener-class> </listener> <context-param>
          <param-name>tilesDefinitions</param-name>
         <param-value>/WEB-INF/tiles-def.xml</param-value>
    </context-param>
    <welcome-file-list>
        <welcome-file>index.html</welcome-file>
    </welcome-file-list>

struts.xml
<struts>
    <include file="customer.xml"/>
</struts>

customer.xml
<struts>
<package name="customer" namespace="/customer" extends="struts-default">
        <result-types>
<result-type name="tiles" class="org.apache.struts2.views.tiles.TilesResult"/>
        </result-types>

<action name="*" class="net.blitzstein.struts2.test.Customer" method="{1}">
            <result name="list">/pages/customer/list.jsp</result>
            <result name="edit">/pages/customer/edit.jsp</result>
            <result name="test" type="tiles">tilesWorks</result>
        </action>

        <!-- Add actions here -->
    </package>
</struts>

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

Reply via email to