I'm still trying to get Struts 2.1.6 deployed on WAS 6.1.  I'm fighting
a couple of related issues.  Index.jsp forwards to
/MyContext/myNamespace/myAction.action, but gets this error:

    There is no Action mapped for namespace / and action name . -
[unknown location]

If I type http://myServer/myContext/myNamespace/myAction.action in the
browser I get to my log-in page decorated by SiteMesh.  If I submit the
login page I get this error:

    There is no Action mapped for namespace / and action name
j_security_check

The site works fine on Tomcat 5.5.

WebSphere 6.1 is fully patched, is using reverse class loading, and we
have set the following property:

    com.ibm.ws.webcontainer.invokeFiltersCompatibility = true

Here are the filters that we are using:

<filter>
    <filter-name>struts2-prepare</filter-name>
    <filter-class>
        org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter
    </filter-class>
</filter>
<filter>
    <filter-name>sitemesh</filter-name>
    <filter-class>
        com.opensymphony.module.sitemesh.filter.PageFilter
    </filter-class>
    </filter>
<filter>
    <filter-name>struts2-execute</filter-name>
    <filter-class>
        org.apache.struts2.dispatcher.ng.filter.StrutsExecuteFilter
    </filter-class>
</filter>

The security looks like this:

<security-constraint>
    <web-resource-collection>
        <web-resource-name>My Secure Stuff</web-resource-name>
        <url-pattern>/MyNamespace/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
        <role-name>MyRole</role-name>
    </auth-constraint>
</security-constraint>
<login-config>
    <auth-method>FORM</auth-method>
    <form-login-config>
        <form-login-page>/security/login.jsp</form-login-page>
        <form-error-page>/security/login_error.jsp</form-error-page>
    </form-login-config>
</login-config>
<security-role>
    <description>My Role</description>
    <role-name>MyRole</role-name>
</security-role>

Thoughts?

Steve Mitchell
http://www.ByteworksInc.com

------------------------------------------------------------------------------
NOTICE:  This electronic mail message and any attached files are confidential.  
The information is exclusively for the use of the individual or entity intended 
as the recipient.  If you are not the intended recipient, any use, copying, 
printing, reviewing, retention, disclosure, distribution or forwarding of the 
message or any attached file is not authorized and is strictly prohibited.  If 
you have received this electronic mail message in error, please advise the 
sender by reply electronic mail immediately and permanently delete the original 
transmission, any attachments and any copies of this message from your computer 
system. Thank you.

==============================================================================


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to