tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lajos Moczar <lm...@galatea.com>
Subject Re: troubleshooting web.xml
Date Mon, 13 Jan 2003 19:06:52 GMT
Someone may correct me, but AFAIK, a reload does not mean a re-read of 
web.xml. At least that has been my experience with 4.0.x versions.

Regards,

Lajos


Erik Price wrote:
> Lajos --
> 
> I take it all back.  It appears that fully stopping my webapp and then 
> starting it again has done the trick.  I didn't think that this was 
> required, I thought a reload should do it.  Can anyone please confirm 
> that this is the expected behavior?
> 
> 
> Thanks!
> 
> 
> Erik
> 
> 
> 
> Erik Price wrote:
> 
>>
>>
>> Lajos Moczar wrote:
>>
>>> Erik -
>>>
>>> I presume the action for your form is "login" and not "/login"? 
>>> Perhaps you can show use your form as well.
>>>
>>> Lajos
>>
>>
>>
>> Hi Lajos,
>>
>> Yes, the action of the form is "login" -- good point, I should have 
>> posted it earlier:
>>
>> <div class="main">
>>   <h2>Please log in:</h2>
>>   <form method="post" action="login">
>>     <table>
>>       <tr><td>Name:</td>
>>           <td><input name="name" type="text" /></td></tr>
>>
>>       <tr><td>Password:</td>
>>           <td><input name="password" type="password" /></td></tr>
>>
>>       <tr><td><input type="submit" name="submit" value="Log In"
>>               /></td><td></td></tr>
>>     </table>
>>   </form>
>> </div>
>>
>> Not sure if this helps any, though.  I saw one person earlier posting 
>> with 404 problems w/Tomcat as well, and that person had mentioned 
>> altering the server.xml file -- do I need to do this?  I have no 
>> problem displaying the JSPs so I think that my context is configured 
>> correctly...
>>
>> Thanks!
>>
>>
>> Erik
>>
>>
>>
>>
>>
>>> Erik Price wrote:
>>>
>>>> I've got a JSP in the top level of my webapp which has a form that 
>>>> submits to this URI:  "login".  In my web.xml, I have the following, 
>>>> based off of the default web.xml:
>>>>
>>>>     <servlet>
>>>>       <servlet-name>LoginServlet</servlet-name>
>>>>       <description>
>>>>         This servlet is submitted to by index.jsp's login form.
>>>>         It performs the task of instantiating the user bean and
>>>>         storing it in the session, and redirects to main.jsp.
>>>>       </description>
>>>>       <servlet-class>LoginServlet</servlet-class>
>>>>       <!-- Load this servlet at server startup time -->
>>>>       <load-on-startup>5</load-on-startup>
>>>>     </servlet>
>>>>
>>>>     <servlet-mapping>
>>>>       <servlet-name>LoginServlet</servlet-name>
>>>>       <url-pattern>/login</url-pattern>
>>>>     </servlet-mapping>
>>>>
>>>> I have deployed my webapp successfully per the AppDev instructions 
>>>> in the Tomcat docs using "ant deploy" (I modeled my ant script after 
>>>> the default one too), and reloaded the webapp from the /manager 
>>>> app.  But when I submit the form from index.jsp, I am shown the 
>>>> message:
>>>>
>>>> Apache Tomcat/4.0.6 - HTTP Status 404 - /login
>>>>
>>>> type Status report
>>>>
>>>> message /login
>>>>
>>>> description The requested resource (/login) is not available.
>>>>
>>>>
>>>> Can anyone suggest what I might have missed?
>>>>
>>>> Thank you,
>>>>
>>>>
>>>> Erik
>>>>
>>>>
>>>> -- 
>>>> To unsubscribe, e-mail:   
>>>> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>>>> For additional commands, e-mail: 
>>>> <mailto:tomcat-user-help@jakarta.apache.org>
>>>>
>>>>
>>>
>>>
>>
>>
>> -- 
>> To unsubscribe, e-mail:   
>> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>> For additional commands, e-mail: 
>> <mailto:tomcat-user-help@jakarta.apache.org>
>>
>>
> 
> 
> -- 
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:tomcat-user-help@jakarta.apache.org>
> 
> 


-- 
galatea.com
Cocoon training, consulting & support


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message