Hi,

I have spent 2 days trying different things to get a small example to work
on Orion 1.5.3.  I continue to get the error -  
"no mapping available for path /login"

Here is what I have:

In the jsp file located at WEB-INF/fundamentals/loginStruts.jsp I am not
using any struts custom tags. Only a regular form tag:

<form method="post" name="login" action="/servlet/login.do">

'servlet' is my application root.  (For this exercise I am changing the
servlet implementation of login screen into Struts implementation).

In the struts-config.xml I have the following:

//////////////////////////////
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts
Configuration 1.0//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>
<struts-config>
    <form-beans>
        <form-bean name="loginForm"
type="com.wiley.compBooks.ecommerce.LoginStrutsActionForm"/>

    </form-beans>

    <global-forwards>
        <forward name="/login" path="/fundamentals/loginStruts.jsp"/>
    </global-forwards>

    <action-mappings>
        <action path="/login"
                type="com.wiley.compBooks.ecommerce.LoginAction"
                name="loginForm"
                scope="request"
                input="/fundamentals/loginStruts.jsp"/>
    </action-mappings>
</struts-config>

////////////////////////////

In the web.xml file I have the following:

/////////////////////////////////
  <!-- STRUTS - Standard Action Servlet Configuration (with debugging) -->
  <servlet>
        <servlet-name>action</servlet-name>
        <display-name>action</display-name>
 
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
        <init-param>
                <param-name>debug</param-name>
                <param-value>2</param-value>
        </init-param>
        <init-param>
                <param-name>detail</param-name>
                <param-value>2</param-value>
        </init-param>
        <init-param>
                <param-name>validate</param-name>
                <param-value>false</param-value>
        </init-param>
        <init-param>
                <param-name>forward</param-name>
 
<param-value>org.apache.struts.action.ActionForward</param-value>
        </init-param>
        <init-param>
                <param-name>config</param-name>
                <param-value>/WEB-INF/struts-config.xml</param-value>
        </init-param>
        <init-param>
                <param-name>application</param-name>
 
<param-value>org.apache.struts.action.ActionResources</param-value>
        </init-param>
        <init-param>
                <param-name>mapping</param-name>
 
<param-value>org.apache.struts.action.ActionMappingBase</param-value>
        </init-param>
        <init-param>
                <param-name>nocache</param-name>
                <param-value>false</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
</servlet>

  <!-- STRUTS Standard Action Servlet Mapping -->
  <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
  </servlet-mapping>
////////////////////////////////


The whole URL requested after submitting my form is 
http://slorenc4/servlet/login.do

For this URL I get the following messages in the Orion's application log
file.

11/26/01 4:58 PM GUI: org.apache.struts.action.ActionServlet: Processing a
POST for /login
11/26/01 4:58 PM GUI: org.apache.struts.action.ActionServlet:  No mapping
available for path /login

The Orion log file has this http error message

10.10.72.206 - - [26/Nov/2001:16:58:00 -0600] "POST /servlet/login.do
HTTP/1.1" 400 126

I have tried many, many combinations of action path, action and other
parameters.  Sometimes I get HTTP 400 code and other times 404.  But always
'No mapping available for path...".  

Any help will be appreciated,

Thanks

Swavek Lorenc
Senior Software Engineer
SPSS, Inc,
312-651-3566
[EMAIL PROTECTED]


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

Reply via email to